Jump to content

Recommended Posts

Hello community, I'm trying to install the in-game itemshop in a project of mine, but I have some problems, I'd appreciate it if someone with a good heart can help.

Sysser.

1020 01:13:56307 :: Traceback (most recent call last):

1020 01:13:56308 ::   File "networkModule.py", line 247, in SetGamePhase

1020 01:13:56309 ::   File "game.py", line 188, in __init__

1020 01:13:56311 ::   File "uiitemshop.py", line 949, in __init__

1020 01:13:56312 ::   File "uiitemshop.py", line 964, in OpenMainCategoryPage

1020 01:13:56313 ::   File "uiitemshop.py", line 643, in __init__

1020 01:13:56314 ::   File "uiitemshop_comp.py", line 373, in NewButton

1020 01:13:56315 ::   File "uiitemshop_comp.py", line 44, in SetNormalImage

1020 01:13:56316 ::   File "uiitemshop_comp.py", line 82, in LoadImage

1020 01:13:56317 ::   File "uiitemshop_comp.py", line 85, in SetDiffuseColor

1020 01:13:56318 :: AttributeError
1020 01:13:56318 :: : 
1020 01:13:56319 :: type object 'ExpandedImageBox' has no attribute 'SetDiffuseColor'
1020 01:13:56319 :: 

 

Screenshot-2.png

 

Edited by Metin2 Dev International
Core X - External 2 Internal
Link to comment
https://metin2.dev/topic/31482-python-problem-installing-itemshop-ingame/
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

9 hours ago, Mt2BRASIL said:

Hello community, I'm trying to install the in-game itemshop in a project of mine, but I have some problems, I'd appreciate it if someone with a good heart can help.

Sysser.

1020 01:13:56307 :: Traceback (most recent call last):

1020 01:13:56308 ::   File "networkModule.py", line 247, in SetGamePhase

1020 01:13:56309 ::   File "game.py", line 188, in __init__

1020 01:13:56311 ::   File "uiitemshop.py", line 949, in __init__

1020 01:13:56312 ::   File "uiitemshop.py", line 964, in OpenMainCategoryPage

1020 01:13:56313 ::   File "uiitemshop.py", line 643, in __init__

1020 01:13:56314 ::   File "uiitemshop_comp.py", line 373, in NewButton

1020 01:13:56315 ::   File "uiitemshop_comp.py", line 44, in SetNormalImage

1020 01:13:56316 ::   File "uiitemshop_comp.py", line 82, in LoadImage

1020 01:13:56317 ::   File "uiitemshop_comp.py", line 85, in SetDiffuseColor

1020 01:13:56318 :: AttributeError
1020 01:13:56318 :: : 
1020 01:13:56319 :: type object 'ExpandedImageBox' has no attribute 'SetDiffuseColor'
1020 01:13:56319 :: 

 

Screenshot-2.png

 

you are missing setdiffusecolor inside ui in expandedimagebox class, add it.

  • 3 weeks later...

Try adding the line in:

ui.py 

 

Search  in function class ExpandedImageBox(ImageBox):

 

    def GetHeight(self):
        return wndMgr.GetWindowHeight(self.hWnd)

 

add below

    def SetDiffuseColor(self, r, g, b):
        wndMgr.SetDiffuseColor(self.hWnd, r, g, b)

 

https://metin2.download/picture/JzaoT3x7cDLN0YH6I1HIEzpOZe9ncC9M/.gif

Edited by Metin2 Dev International
Core X - External 2 Internal

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.