kaiquegames069 Posted October 10, 2017 at 12:27 AM Share Posted October 10, 2017 at 12:27 AM Toda vez que ativo o macro que implementei no jogo me da esse erro, alguém sabe o motivo? 1009 21:24:07088 :: File "game.py", line 1338, in OnKeyUp 1009 21:24:07088 :: TypeError 1009 21:24:07088 :: : 1009 21:24:07088 :: 'NoneType' object has no attribute '__getitem__' 1009 21:24:07088 :: Link to comment Share on other sites More sharing options...
Guest Ezrekith Posted October 15, 2017 at 12:46 AM Share Posted October 15, 2017 at 12:46 AM (edited) Hi. Replace the whole function with this: def OnKeyUp(self, key): try: self.onClickKeyDict[key]() except KeyError: pass except: raise return True There are some clients which use the old key function and yea thats kinda outdated i guess.. And check if you have this line: self.onClickKeyDict = None In your game.py in the Close definition (def Close(self):) If this does not fix your problem, please tell me when do you get this log so i can think about other stuffs, thanks! Edited October 15, 2017 at 12:49 AM by Ezrekith Im dumb lol.. Link to comment Share on other sites More sharing options...
kaiquegames069 Posted October 15, 2017 at 04:33 PM Author Share Posted October 15, 2017 at 04:33 PM Mine is that way and still keeps making mistakes. def OnKeyUp(self, key): try: self.onClickKeyDict[key]() except KeyError: pass except: raise return TRUE Link to comment Share on other sites More sharing options...
Guest Ezrekith Posted October 15, 2017 at 04:46 PM Share Posted October 15, 2017 at 04:46 PM And when do you get this error? I mean what you do when the syserr gives you this? Link to comment Share on other sites More sharing options...
Sinval Posted October 15, 2017 at 04:48 PM Share Posted October 15, 2017 at 04:48 PM 16 horas atrás, Shabba disse: Hi. Replace the whole function with this: def OnKeyUp(self, key): try: self.onClickKeyDict[key]() except KeyError: pass except: raise return True There are some clients which use the old key function and yea thats kinda outdated i guess.. And check if you have this line: self.onClickKeyDict = None In your game.py in the Close definition (def Close(self):) If this does not fix your problem, please tell me when do you get this log so i can think about other stuffs, thanks! Vi um rapaz com o mesmo problema, no servidor principal(no dedicado) ao abrir o armazém/item mall e sair correndo sem clicar no X, o cliente fecha e dá esse erro, já no servidor de testes (.vdi) não apresenta esse problema mas ambos possuem os mesmos arquivos files/cliente. Link to comment Share on other sites More sharing options...
horos Posted March 6, 2020 at 12:01 AM Share Posted March 6, 2020 at 12:01 AM thanks Link to comment Share on other sites More sharing options...
skristy96 Posted November 25, 2020 at 08:20 PM Share Posted November 25, 2020 at 08:20 PM thanks Link to comment Share on other sites More sharing options...
Signo Posted December 8, 2020 at 10:14 AM Share Posted December 8, 2020 at 10:14 AM Thanks Link to comment Share on other sites More sharing options...
Xelo Posted February 9, 2021 at 07:46 PM Share Posted February 9, 2021 at 07:46 PM Thank u Link to comment Share on other sites More sharing options...
lordgeo18 Posted March 5, 2021 at 05:44 PM Share Posted March 5, 2021 at 05:44 PM ty Link to comment Share on other sites More sharing options...
aeolus Posted March 23, 2021 at 03:15 PM Share Posted March 23, 2021 at 03:15 PM (edited) still getting the error Edited March 23, 2021 at 03:17 PM by aeolus Link to comment Share on other sites More sharing options...
Agorin Posted April 20, 2021 at 02:06 PM Share Posted April 20, 2021 at 02:06 PM 'NoneType' object has no attribute Link to comment Share on other sites More sharing options...
erlic2221 Posted May 9, 2021 at 02:58 AM Share Posted May 9, 2021 at 02:58 AM TY Link to comment Share on other sites More sharing options...
dzdev Posted June 15, 2021 at 07:00 PM Share Posted June 15, 2021 at 07:00 PM On 10/15/2017 at 12:46 AM, Guest Ezrekith said: Hi. Replace the whole function with this: Hidden Content Give reaction or reply to this topic to see the hidden content. There are some clients which use the old key function and yea thats kinda outdated i guess.. And check if you have this line: Hidden Content Give reaction or reply to this topic to see the hidden content. In your game.py in the Close definition (def Close(self):) If this does not fix your problem, please tell me when do you get this log so i can think about other stuffs, thanks! Link to comment Share on other sites More sharing options...
dani14 Posted November 2, 2021 at 03:25 PM Share Posted November 2, 2021 at 03:25 PM ty Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now