Jump to content

Recommended Posts

Syssr:

0526 00:01:09827 ::   File "game.py", line 1407, in OnKeyUp

0526 00:01:09827 :: TypeError
0526 00:01:09827 :: : 
0526 00:01:09827 :: 'NoneType' object has no attribute '__getitem__'
0526 00:01:09827 :: 

close failed in file object destructor:
sys.excepthook is missing
lost sys.stderr

 

THX ❤️ mt2dev

Link to comment
https://metin2.dev/topic/30880-hello-i-need-help-getitem/
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

  • Active Member

Show your game.py file.

This error typically occurs when you try to get element in square bracket from variable that contains None value, for example:

my_list = None
print(my_list[0])  # Raises 'NoneType' object has no attribute '__getitem__' error

 

Link to comment
https://metin2.dev/topic/30880-hello-i-need-help-getitem/#findComment-157827
Share on other sites

On 5/27/2023 at 12:20 PM, jKing said:

Show your game.py file.

This error typically occurs when you try to get element in square bracket from variable that contains None value, for example:

my_list = None
print(my_list[0])  # Raises 'NoneType' object has no attribute '__getitem__' error

 

Game.py :  

This is the hidden content, please

 

the error appears when I open the game settings and it logs me out

  • Metin2 Dev 9
  • Good 2
  • Love 3
Link to comment
https://metin2.dev/topic/30880-hello-i-need-help-getitem/#findComment-157875
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.