Jump to content

Recommended Posts

I want to try ship defense but I got a problem with C++ source.

https://metin2.download/picture/4RK85sy60F7ezs0rfoy2By2sxH7mQG39/.png

What include I need to insert or what is wrong?

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
https://metin2.dev/topic/29752-ship-defense-game-source-problem/
Share on other sites

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

I got that error, someone know about it?

1030 22:49:17489 :: File "game.py", line 1516, in SetHPAllianceTargetBoard 1030 22:49:17489 :: AttributeError 1030 22:49:17489 :: : 1030 22:49:17489 ::

'Interface' object has no attribute 'IsHideUiMode' 1030 22:49:17489 ::

[10:50 PM]

1030 22:50:31734 :: File "game.py", line 1945, in OnKeyUp 1030 22:50:31734 :: TypeError 1030 22:50:31734 :: : 1030 22:50:31734 ::

'NoneType' object has no attribute 'getitem'

On 11/2/2022 at 12:38 AM, djstarxd said:

I got that error, someone know about it?

1030 22:49:17489 :: File "game.py", line 1516, in SetHPAllianceTargetBoard 1030 22:49:17489 :: AttributeError 1030 22:49:17489 :: : 1030 22:49:17489 ::

'Interface' object has no attribute 'IsHideUiMode' 1030 22:49:17489 ::

[10:50 PM]

1030 22:50:31734 :: File "game.py", line 1945, in OnKeyUp 1030 22:50:31734 :: TypeError 1030 22:50:31734 :: : 1030 22:50:31734 ::

'NoneType' object has no attribute 'getitem'

Show us whole game.py file.

Due to fact that IsHideUiMode is not defined in interface and it is just for hiding your UI, just remove this if statement:

if self.interface.IsHideUiMode == True:
    return

 


1103 17:06:52609 ::   File "game.py", line 1525, in SetHPAllianceTargetBoard

1103 17:06:52609 ::   File "uiTarget.py", line 1169, in SetHP

1103 17:06:52609 ::   File "ui.py", line 2330, in SetToolTipText

1103 17:06:52610 ::   File "ui.py", line 2333, in SetFormToolTipText

1103 17:06:52610 :: AttributeError
1103 17:06:52610 :: : 
1103 17:06:52610 :: 'Gauge' object has no attribute 'ToolTipText'
1103 17:06:52610 :: 
1103 17:06:09566 :: Traceback (most recent call last):

1103 17:06:09566 ::   File "game.py", line 1943, in OnKeyUp

1103 17:06:09566 :: TypeError
1103 17:06:09566 :: : 
1103 17:06:09566 :: 'NoneType' object has no attribute '__getitem__'
1103 17:06:09566 :: 

1103 17:06:05132 ::   File "game.py", line 1525, in SetHPAllianceTargetBoard

1103 17:06:05132 ::   File "uiTarget.py", line 1169, in SetHP

1103 17:06:05132 ::   File "ui.py", line 2330, in SetToolTipText

1103 17:06:05132 ::   File "ui.py", line 2333, in SetFormToolTipText

 

ui.py: https://pastebin.com/sDXmj8E1

uitarget.py: https://pastebin.com/tTncRYez

 

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.