Jump to content

Switchbot Button - On Inventar


Recommended Posts

  • Premium

Hello Dev's,

I'm having a problem adding a button to inventory.
The goal is to click on it and it opens the switchbot, I already configured the root / uiinventory.py, root / game.py and locale_xx / ui / inventorywindow.py
 
The problem is that it gives me this syserr:

0731 14:54:17650 :: CMapOutdoor::Load - LoadMonsterAreaInfo ERROR
0731 14:54:22403 :: Traceback (most recent call last):

0731 14:54:22403 ::   File "networkModule.py", line 239, in SetGamePhase

0731 14:54:22403 ::   File "game.py", line 114, in __init__

0731 14:54:22404 ::   File "interfaceModule.py", line 321, in MakeInterface

0731 14:54:22404 ::   File "interfaceModule.py", line 179, in __MakeWindows

0731 14:54:22404 ::   File "uiInventory.py", line 259, in __init__

0731 14:54:22404 ::   File "uiInventory.py", line 394, in __LoadWindow

0731 14:54:22404 :: NameError
0731 14:54:22404 :: : 
0731 14:54:22404 :: global name 'wndswitchbot' is not defined
0731 14:54:22404 :: 

0731 14:55:24080 :: Traceback (most recent call last):

0731 14:55:24080 ::   File "game.py", line 839, in RefreshInventory

0731 14:55:24081 ::   File "interfaceModule.py", line 631, in RefreshInventory

0731 14:55:24081 :: AttributeError
0731 14:55:24081 :: : 
0731 14:55:24081 :: 'NoneType' object has no attribute 'RefreshQuickSlot'
0731 14:55:24081 :: 

0731 14:55:24081 :: Traceback (most recent call last):

0731 14:55:24081 ::   File "game.py", line 839, in RefreshInventory

0731 14:55:24081 ::   File "interfaceModule.py", line 631, in RefreshInventory

0731 14:55:24082 :: AttributeError
0731 14:55:24082 :: : 
0731 14:55:24082 :: 'NoneType' object has no attribute 'RefreshQuickSlot'
0731 14:55:24082 :: 


I'll leave my code here for you to review.

game.py

uiinventory.py

inventorywindow.py


Hope you guys can give me some help :)

Best Regards,

Red

  • Metin2 Dev 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 4

      Feeding game source to LLM

    2. 0

      Quest 6/7 Problem

    3. 5

      Effect weapons

    4. 0

      [C++] Fix Core Downer Using Negative Number in GM Codes

    5. 3

      Crystal Metinstone

    6. 4

      Feeding game source to LLM

    7. 113

      Ulthar SF V2 (TMP4 Base)

    8. 4

      Feeding game source to LLM

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.