Jump to content

Metin2 - 4 Inventory Page


Recommended Posts

  • 6 months later...
  • 3 months later...
  • 1 year later...
  • 11 months later...
  • 1 year later...
  • 3 weeks later...

Hi!
Somebody pls can help me?
I try to make 4 inventory but i get those error.
Any solution? 

Quote

networkModule.py(line:208) SetSelectCharacterPhase
system.py(line:130) __pack_import
system.py(line:110) _process_result
introSelect.py(line:30) <module>
system.py(line:130) __pack_import
system.py(line:110) _process_result
interfaceModule.py(line:12) <module>
system.py(line:130) __pack_import

networkModule.SetSelectCharacterPhase - <type 'exceptions.IndentationError'>:unindent does not match any outer indentation level (uiInventory.py, line 313)

uiInventory.py: (300-350)

 

Quote

        try:
            wndItem = self.GetChild("ItemSlot")
            wndEquip = self.GetChild("EquipmentSlot")
            self.GetChild("TitleBar").SetCloseEvent(ui.__mem_func__(self.Close))
            self.wndMoney = self.GetChild("Money")
            self.wndMoneySlot = self.GetChild("Money_Slot")
            self.mallButton = self.GetChild2("MallButton")
            self.DSSButton = self.GetChild2("DSSButton")
            self.costumeButton = self.GetChild2("CostumeButton")
            
            self.inventoryTab = []
            self.inventoryTab.append(self.GetChild("Inventory_Tab_01"))
            self.inventoryTab.append(self.GetChild("Inventory_Tab_02"))
            self.inventoryTab.append(self.GetChild("Inventory_Tab_03"))
            self.inventoryTab.append(self.GetChild("Inventory_Tab_04"))

            self.equipmentTab = []
            self.equipmentTab.append(self.GetChild("Equipment_Tab_01"))
            self.equipmentTab.append(self.GetChild("Equipment_Tab_02"))

            if self.costumeButton and not app.ENABLE_COSTUME_SYSTEM:
                self.costumeButton.Hide()
                self.costumeButton.Destroy()
                self.costumeButton = 0

            # Belt Inventory Window
            self.wndBelt = None
            
            if app.ENABLE_NEW_EQUIPMENT_SYSTEM:
                self.wndBelt = BeltInventoryWindow(self)
            
        except:
            import exception
            exception.Abort("InventoryWindow.LoadWindow.BindObject")

        ## Item
        wndItem.SetSelectEmptySlotEvent(ui.__mem_func__(self.SelectEmptySlot))
        wndItem.SetSelectItemSlotEvent(ui.__mem_func__(self.SelectItemSlot))
        wndItem.SetUnselectItemSlotEvent(ui.__mem_func__(self.UseItemSlot))
        wndItem.SetUseSlotEvent(ui.__mem_func__(self.UseItemSlot))
        wndItem.SetOverInItemEvent(ui.__mem_func__(self.OverInItem))
        wndItem.SetOverOutItemEvent(ui.__mem_func__(self.OverOutItem))

        ## Equipment
        wndEquip.SetSelectEmptySlotEvent(ui.__mem_func__(self.SelectEmptySlot))
        wndEquip.SetSelectItemSlotEvent(ui.__mem_func__(self.SelectItemSlot))
        wndEquip.SetUnselectItemSlotEvent(ui.__mem_func__(self.UseItemSlot))
        wndEquip.SetUseSlotEvent(ui.__mem_func__(self.UseItemSlot))
        wndEquip.SetOverInItemEvent(ui.__mem_func__(self.OverInItem))
        wndEquip.SetOverOutItemEvent(ui.__mem_func__(self.OverOutItem))
 

 

Edited by SeraphimHU
Missing information
Link to comment
Share on other sites

  • 4 months later...

Someone help me please

This is my problem
 

0607 21:15:50559 :: 
uiInventory.py(line:313) __LoadWindow
ui.py(line:2704) GetChild

InventoryWindow.LoadWindow.BindObject - <type 'exceptions.KeyError'>:'Inventory_Tab_03'

0607 21:15:50560 :: ============================================================================================================
0607 21:15:50560 :: Abort!!!!

Link to comment
Share on other sites

8 hours ago, supra said:

Someone help me please

This is my problem
 

0607 21:15:50559 :: 
uiInventory.py(line:313) __LoadWindow
ui.py(line:2704) GetChild

InventoryWindow.LoadWindow.BindObject - <type 'exceptions.KeyError'>:'Inventory_Tab_03'

0607 21:15:50560 :: ============================================================================================================
0607 21:15:50560 :: Abort!!!!

You forgot to implement the locale/xx/ui/inventroywindow.py part.

  • Metin2 Dev 1
  • Good 1
Link to comment
Share on other sites

16 hours ago, covfefe said:

You forgot to implement the locale/xx/ui/inventroywindow.py part.

now this the problem
 

0608 22:38:17630 :: Traceback (most recent call last):

0608 22:38:17630 ::   File "networkModule.py", line 247, in SetGamePhase

0608 22:38:17630 ::   File "game.py", line 98, in __init__

0608 22:38:17630 ::   File "interfaceModule.py", line 286, in MakeInterface

0608 22:38:17630 ::   File "interfaceModule.py", line 170, in __MakeWindows

0608 22:38:17631 ::   File "uiInventory.py", line 262, in __init__

0608 22:38:17631 ::   File "uiInventory.py", line 399, in __LoadWindow

0608 22:38:17631 ::   File "uiInventory.py", line 464, in SetInventoryPage

0608 22:38:17631 :: AttributeError
0608 22:38:17631 :: : 
0608 22:38:17631 :: 'InventoryWindow' object has no attribute 'inventoryPageIndex'
0608 22:38:17631 :: 

Link to comment
Share on other sites

  • 3 weeks later...
  • 4 months later...

Maybe someone already answered to my problem but i can't find it.
I sucesfully implemented everything. It works finally even the belt slot etc. I can put everything in all 4 inventory pages but can't equip items only from page 1.
(Update: can equip from them but can't swap them if i got an item already equipped)

Edited by Crazor
Link to comment
Share on other sites

Announcements



×
×
  • 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.