Jump to content

AUTO REFINE SYSTEM SYSERR


Recommended Posts

Hİ. i have a problem help pls.

0626 10:22:15288 :: Traceback (most recent call last):

0626 10:22:15289 ::   File "networkModule.py", line 245, in SetGamePhase

0626 10:22:15289 ::   File "system.py", line 130, in __pack_import

0626 10:22:15289 ::   File "
0626 10:22:15289 :: game.py
0626 10:22:15289 :: ", line
0626 10:22:15289 :: 1327
0626 10:22:15289 ::

0626 10:22:15289 ::     
0626 10:22:15289 :: if app.ENABLE_REFINE_RENEWAL:

0626 10:22:15289 ::     
0626 10:22:15289 :: 
0626 10:22:15289 :: ^

0626 10:22:15289 :: IndentationError
0626 10:22:15289 :: :
0626 10:22:15289 :: expected an indented block
0626 10:22:15289 ::
    def __PutItem(self, attachedType, attachedItemIndex, attachedItemSlotPos, attachedItemCount, dstChrID):
        if player.SLOT_TYPE_INVENTORY == attachedType or player.SLOT_TYPE_DRAGON_SOUL_INVENTORY == attachedType:
            attachedInvenType = player.SlotTypeToInvenType(attachedType)
            if True == chr.HasInstance(self.PickingCharacterIndex) and player.GetMainCharacterIndex() != dstChrID:
                if player.IsEquipmentSlot(attachedItemSlotPos) and player.SLOT_TYPE_DRAGON_SOUL_INVENTORY != attachedType:
                    self.stream.popupWindow.Close()
                    self.stream.popupWindow.Open(localeInfo.EXCHANGE_FAILURE_EQUIP_ITEM, 0, localeInfo.UI_OK)
                else:
                    if chr.IsNPC(dstChrID):
                    if app.ENABLE_REFINE_RENEWAL:
                        constInfo.AUTO_REFINE_TYPE = 2
                        constInfo.AUTO_REFINE_DATA["NPC"][0] = dstChrID
                        constInfo.AUTO_REFINE_DATA["NPC"][1] = attachedInvenType
                        constInfo.AUTO_REFINE_DATA["NPC"][2] = attachedItemSlotPos
                        constInfo.AUTO_REFINE_DATA["NPC"][3] = attachedItemCount
                    else:
                        net.SendExchangeStartPacket(dstChrID)
                        net.SendExchangeItemAddPacket(attachedInvenType, attachedItemSlotPos, 0)
            else:
                self.__DropItem(attachedType, attachedItemIndex, attachedItemSlotPos, attachedItemCount)

 

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

10 minutes ago, lastone122 said:

0626 10:22:15289 :: expected an indented block 

In python. Be careful with tabs. 

0626 13:59:29951 :: Traceback (most recent call last):

0626 13:59:29951 ::   File "game.py", line 753, in OpenRefineDialog

0626 13:59:29951 ::   File "interfaceModule.py", line 816, in OpenRefineDialog

0626 13:59:29951 ::   File "uiRefine.py", line 394, in Open

0626 13:59:29952 ::   File "uiRefine.py", line 329, in __LoadScript

0626 13:59:29952 :: AttributeError
0626 13:59:29952 :: : 
0626 13:59:29952 :: 'RefineDialogNew' object has no attribute 'AutoRefine'
0626 13:59:29952 :: 

https://pastebin.com/YKTuHsRY --> uirefine.py

Link to comment
Share on other sites

  • 1 month later...

you are calling function which is not defined in class RefineDialogNew. You need to add function AutoRefine like you have defined in upper class RefineDialog

the error is in here lines 329,330

            self.checkBox.SetEvent(ui.__mem_func__(self.AutoRefine), "ON_CHECK", True)
            self.checkBox.SetEvent(ui.__mem_func__(self.AutoRefine), "ON_UNCKECK", False)

 

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



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