Jump to content

Recommended Posts

Hello guys, after changing channel / relog i got this error:

syserr
 

Spoiler

0222 23:44:39732 :: Traceback (most recent call last):

0222 23:44:39732 ::   File "networkModule.py", line 247, in SetGamePhase

0222 23:44:39733 ::   File "game.py", line 100, in __init__

0222 23:44:39733 ::   File "interfaceModule.py", line 325, in MakeInterface

0222 23:44:39733 ::   File "interfaceModule.py", line 194, in __MakeWindows

0222 23:44:39733 ::   File "uiInventory.py", line 285, in __init__

0222 23:44:39733 ::   File "uiInventory.py", line 447, in __LoadWindow

0222 23:44:39733 ::   File "uiInventory.py", line 522, in SetInventoryPage

0222 23:44:39733 ::   File "uiInventory.py", line 709, in RefreshBagSlotWindow

0222 23:44:39733 ::   File "uiInventory.py", line 709, in <lambda>

0222 23:44:39733 ::   File "uiPrivateShopBuilder.py", line 555, in RefreshLockedSlot

0222 23:44:39733 :: AttributeError
0222 23:44:39733 :: : 
0222 23:44:39733 :: 'int' object has no attribute 'RefreshSlot'
0222 23:44:39733 :: 

HERE IS uiprivateshopbuilder.py with line 555: self.wndInventory.wndItem.RefreshSlot()

	def OnOverOutItem(self):

		if self.tooltipItem:
			self.tooltipItem.HideToolTip()

	if app.WJ_ENABLE_TRADABLE_ICON:
		def CantTradableItem(self, destSlotIndex, srcSlotIndex):
			itemInvenPage = srcSlotIndex / player.INVENTORY_PAGE_SIZE
			localSlotPos = srcSlotIndex - (itemInvenPage * player.INVENTORY_PAGE_SIZE)
			self.lockedItems[destSlotIndex] = (itemInvenPage, localSlotPos)
			if self.wndInventory.GetInventoryPageIndex() == itemInvenPage:
				self.wndInventory.wndItem.SetCantMouseEventSlot(localSlotPos)


		def RefreshLockedSlot(self):
			if self.wndInventory:
				for privatePos, (itemInvenPage, itemSlotPos) in self.lockedItems.items():
					if self.wndInventory.GetInventoryPageIndex() == itemInvenPage:
						self.wndInventory.wndItem.SetCantMouseEventSlot(itemSlotPos)

				self.wndInventory.wndItem.RefreshSlot()

		def BindInterface(self, interface):
			self.interface = interface

		def OnTop(self):
			if self.interface:
				self.interface.SetOnTopWindow(player.ON_TOP_WND_PRIVATE_SHOP)
				self.interface.RefreshMarkInventoryBag()

		def SetInven(self, wndInventory):
			from _weakref import proxy
			self.wndInventory = proxy(wndInventory)

 

Link to comment
https://metin2.dev/topic/30436-int-object-has-no-attribute-refreshslot/
Share on other sites

  • 1 month later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hey,

 

IDK if you resolved the error, but.. I had the same error and it was caused that I missed a part of code.

 

uiprivateshopbuilder.py

Spoiler
def Destroy(self):
	self.ClearDictionary()

    self.nameLine = None
    self.itemSlot = None
    self.btnOk = None
    self.btnClose = None
    self.titleBar = None
    self.priceInputBoard = None
    if app.WJ_ENABLE_TRADABLE_ICON:
        self.interface = None
        self.wndInventory = None
        self.lockedItems = {i:(-1,-1) for i in range(shop.SHOP_SLOT_COUNT)}

 

 

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.