AKUROS 27 Posted October 31, 2020 Share Posted October 31, 2020 Hi, i have this crash syserr error: 1101 00:10:34518 :: Traceback (most recent call last): 1101 00:10:34518 :: File "game.py", line 1357, in OnMouseLeftButtonUp 1101 00:10:34518 :: AttributeError 1101 00:10:34519 :: : 1101 00:10:34519 :: 'NoneType' object has no attribute 'BUILD_OnMouseLeftButtonUp' 1101 00:10:34519 :: game.py def OnMouseLeftButtonUp(self): if self.interface.BUILD_OnMouseLeftButtonUp(): //1357 return if mouseModule.mouseController.isAttached(): attachedType = mouseModule.mouseController.GetAttachedType() attachedItemIndex = mouseModule.mouseController.GetAttachedItemIndex() attachedItemSlotPos = mouseModule.mouseController.GetAttachedSlotNumber() attachedItemCount = mouseModule.mouseController.GetAttachedItemCount() ## QuickSlot if player.SLOT_TYPE_QUICK_SLOT == attachedType: player.RequestDeleteGlobalQuickSlot(attachedItemSlotPos) elif player.SLOT_TYPE_INVENTORY == attachedType: if player.ITEM_MONEY == attachedItemIndex: self.__PutMoney(attachedType, attachedItemCount, self.PickingCharacterIndex) elif player.ITEM_CHEQUE == attachedItemIndex: self.__PutCheque(attachedType, attachedItemCount, self.PickingCharacterIndex) else: self.__PutItem(attachedType, attachedItemIndex, attachedItemSlotPos, attachedItemCount, self.PickingCharacterIndex) ## DragonSoul elif player.SLOT_TYPE_DRAGON_SOUL_INVENTORY == attachedType: self.__PutItem(attachedType, attachedItemIndex, attachedItemSlotPos, attachedItemCount, self.PickingCharacterIndex) elif player.SLOT_TYPE_INVENTORY == attachedType or\ player.SLOT_TYPE_SKILL_BOOK_INVENTORY == attachedType or\ player.SLOT_TYPE_UPGRADE_ITEMS_INVENTORY == attachedType or\ player.SLOT_TYPE_STONE_INVENTORY == attachedType or\ player.SLOT_TYPE_BOX_INVENTORY == attachedType or\ player.SLOT_TYPE_EFSUN_INVENTORY == attachedType or\ player.SLOT_TYPE_CICEK_INVENTORY == attachedType: self.__PutItem(attachedType, attachedItemIndex, attachedItemSlotPos, attachedItemCount, self.PickingCharacterIndex) mouseModule.mouseController.DeattachObject() else: hyperlink = ui.GetHyperlink() if hyperlink: if app.IsPressed(app.DIK_LALT): link = chat.GetLinkFromHyperlink(hyperlink) ime.PasteString(link) else: self.interface.MakeHyperlinkTooltip(hyperlink) return else: player.SetMouseState(player.MBT_LEFT, player.MBS_CLICK) #player.EndMouseWalking() return True interfacemodule.py def BUILD_OnMouseLeftButtonUp(self): if not self.wndGuildBuilding: return if not self.wndGuildBuilding.IsPreviewMode(): return True return False Could you help me solve this error? Thanks. Link to comment Share on other sites More sharing options...
Developer Ikarus_ 2428 Posted November 1, 2020 Developer Share Posted November 1, 2020 (edited) try by replacing this: if self.interface.BUILD_OnMouseLeftButtonUp(): //1357 return with this: if self.interface and self.interface.BUILD_OnMouseLeftButtonUp(): //1357 return It's strange to got an error where self.interface is None, you should invastigate to find the real cause of this. Edited November 2, 2020 by Ikarus_ 1 My youtube channel on which you can see my works here Link to comment Share on other sites More sharing options...
AKUROS 27 Posted November 2, 2020 Author Share Posted November 2, 2020 (edited) 2 hours ago, Ikarus_ said: try by replacing this: if self.interface.BUILD_OnMouseLeftButtonUp(): //1357 return with this: if self.interface and self.interface.BUILD_OnMouseLeftButtonUp(): //1357 return It's strange to got an error where self.interface is None, you should invastigate to find the real case of this. Thanks it works! how can i find the real problem? Edited November 2, 2020 by AKUROS Link to comment Share on other sites More sharing options...
Ulusan Yazilim 1 Posted May 19, 2022 Share Posted May 19, 2022 On 02.11.2020 at 04:30, AKUROS said: Teşekkürler, işe yarıyor! asıl sorunu nasıl bulabilirim? I added a new map. Only stones(mob) are missing in it so it gave this error. stone.txt m 451 198 10 10 0 0 5s 100 1 8068 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