BadiuAndrei 2 Posted October 2, 2023 Share Posted October 2, 2023 Hi, i have this error everytime i teleport or closing the client. I don't understand what's trigger it (i was using a teleport system and didn't have any problem with teleporting, but now i don't like it). Here's the error: networkModule.py(line:236) SetLoadingPhase networkModule.py(line:121) SetPhaseWindow networkModule.py(line:130) __ChangePhaseWindow game.py(line:360) Close interfaceModule.py(line:715) Close uiShop.py(line:182) Destroy uiShop.py(line:263) Close interfaceModule.py(line:2686) RefreshMarkInventoryBag uiInventory.py(line:873) RefreshBagSlotWindow networkModule.SetLoadingPhase - <type 'exceptions.AttributeError'>:'int' object has no attribute 'SetItemSlot' Link to comment Share on other sites More sharing options...
Contributor Amun 1924 Posted October 3, 2023 Contributor Share Posted October 3, 2023 Open uiInventory and go to line 873. If you don't know how to fix it, post the file or the function here(RefreshBagSlotWindow). You're basically trying to call SetItemSlot on an integer. Link to comment Share on other sites More sharing options...
BadiuAndrei 2 Posted October 3, 2023 Author Share Posted October 3, 2023 2 hours ago, Amun said: Open uiInventory and go to line 873. If you don't know how to fix it, post the file or the function here(RefreshBagSlotWindow). You're basically trying to call SetItemSlot on an integer. Here's uiinventory: https://pastebin.com/hvBVnFAd Link to comment Share on other sites More sharing options...
Contributor Amun 1924 Posted October 3, 2023 Contributor Share Posted October 3, 2023 (edited) You're calling it after the inventory has been destroyed. In uiInventory you'll find: def Destroy(self): ... self.wndItem = 0 ... Which would explain the method call on an integer. To fix it: InterfaceModule.py def RefreshMarkInventoryBag(self): if self.wndInventory and self.wndInventory.IsShow(): self.wndInventory.RefreshBagSlotWindow() Edited October 3, 2023 by Amun Link to comment Share on other sites More sharing options...
BadiuAndrei 2 Posted October 3, 2023 Author Share Posted October 3, 2023 2 hours ago, Amun said: You're calling it after the inventory has been destroyed. In uiInventory you'll find: def Destroy(self): ... self.wndItem = 0 ... Which would explain the method call on an integer. To fix it: InterfaceModule.py def RefreshMarkInventoryBag(self): if self.wndInventory and self.wndInventory.IsShow(): self.wndInventory.RefreshBagSlotWindow() I already have that function in interface def RefreshMarkInventoryBag(self): if self.wndInventory and self.wndInventory.IsShow(): self.wndInventory.RefreshBagSlotWindow() if app.ENABLE_SPECIAL_INVENTORY: if self.wndSpecialInventory and self.wndSpecialInventory.IsShow(): self.wndSpecialInventory.RefreshBagSlotWindow() So what's wrong? Is there a thing that i miss somewhere? Link to comment Share on other sites More sharing options...
Contributor Amun 1924 Posted October 3, 2023 Contributor Share Posted October 3, 2023 Well, then you're either calling "Destroy" on the inventory and don't invalidate it(inv = None), or you're calling Destroy somewhere else, in which case __LoadWindwo() ain't going to work because isLoaded = 1, or because of some other dumb shit that's happening because you fucked up. Try adding self.isLoaded = 0 in def Destroy(self). It'll allow __LoadWindow to run again and maybe that'll fix it(although I propose you look for what's causing it) Anyhow.. I can't check your entire client, good luck Link to comment Share on other sites More sharing options...
BadiuAndrei 2 Posted October 5, 2023 Author Share Posted October 5, 2023 On 10/3/2023 at 3:56 PM, Amun said: Well, then you're either calling "Destroy" on the inventory and don't invalidate it(inv = None), or you're calling Destroy somewhere else, in which case __LoadWindwo() ain't going to work because isLoaded = 1, or because of some other dumb shit that's happening because you fucked up. Try adding self.isLoaded = 0 in def Destroy(self). It'll allow __LoadWindow to run again and maybe that'll fix it(although I propose you look for what's causing it) Anyhow.. I can't check your entire client, good luck I tried adding self.isLoaded = 0, but it doesn't help. I don't know what caused it, i've tried compared all the py files with the og ones but i guess it's caused by the Dragon Soul (maybe) Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now