Jump to content

Chest Item Info bug with books


Recommended Posts

Hello guys, am using Chest Item Info by Mali: 

 

Am getting problem with books.
When you move mouse over the book, you get this error:
https://metin2.download/picture/nNo2r0IE18zvhWks4nQYD436is6Fv45l/.gif



 

Spoiler
SYSERR: Traceback (most recent call last):

SYSERR:   File "ui.py", line 1889, in OnOverInItem

SYSERR:   File "ui.py", line 90, in __call__

SYSERR:   File "ui.py", line 81, in __call__

SYSERR:   File "uiChestDropInfo.py", line 133, in OverInMainItemSlot

SYSERR:   File "uiToolTip.py", line 725, in SetItemToolTip

SYSERR:   File "uiToolTip.py", line 930, in AddItemData

SYSERR:   File "uiToolTip.py", line 238, in AppendDescription

SYSERR:   File "uiToolTip.py", line 254, in __AppendDescription_WesternLanguage

SYSERR:   File "uiToolTip.py", line 35, in SplitDescription

SYSERR: RuntimeError
SYSERR: :
SYSERR: skill.GetSkillName - Failed to find skill by 0

 

In uiToolTip.py/line 35 i have this:

Spoiler
def SplitDescription(desc, limit):
	total_tokens = desc.split()
	line_tokens = []
	line_len = 0
	lines = []
	for token in total_tokens:
		if "|" in token:
			sep_pos = token.find("|")
			line_tokens.append(token[:sep_pos])

			lines.append(" ".join(line_tokens))
			line_len = len(token) - (sep_pos + 1)
			line_tokens = [token[sep_pos+1:]]
		else:
			line_len += len(token)
			if len(line_tokens) + line_len > limit:
				lines.append(" ".join(line_tokens))
				line_len = len(token)
				line_tokens = [token]
			else:
				line_tokens.append(token)
	
	if line_tokens:
		lines.append(" ".join(line_tokens))

	return lines

 

In uiToolTip.py/line 725 i have this:

Spoiler
	def SetItemToolTip(self, itemVnum):
		self.ClearToolTip()
		metinSlot = []
		for i in xrange(player.METIN_SOCKET_MAX_NUM):
			metinSlot.append(0)
		attrSlot = []
		for i in xrange(player.ATTRIBUTE_SLOT_MAX_NUM):
			attrSlot.append((0, 0))

		self.AddItemData(itemVnum, metinSlot, attrSlot)

 

In uiToolTip.py/line 730 i have this:
 

Spoiler
	def AddItemData(self, itemVnum, metinSlot, attrSlot = 0, flags = 0, unbindTime = 0):
		self.itemVnum = itemVnum
		item.SelectItem(itemVnum)
		itemType = item.GetItemType()
		itemSubType = item.GetItemSubType()

		if app.ENABLE_SEND_TARGET_INFO:
			
			if 50026 == itemVnum:
				if 0 != metinSlot:
					name = item.GetItemName()
					if metinSlot[0] > 0:
						name += " "
						name += localeInfo.NumberToMoneyString(metinSlot[0])
					self.SetTitle(name)

					self.ShowToolTip()
				return


			elif 50300 == itemVnum and not self.isBook:
				if 0 != metinSlot and not self.isBook:
					self.__SetSkillBookToolTip(metinSlot[0], localeInfo.TOOLTIP_SKILLBOOK_NAME, 1)
					self.AppendDescription(item.GetItemDescription(), 26)
					self.AppendDescription(item.GetItemSummary(), 26, self.CONDITION_COLOR)
					self.ShowToolTip()
				elif self.isBook:
					self.SetTitle(item.GetItemName())
					self.AppendDescription(item.GetItemDescription(), 26)
					self.AppendDescription(item.GetItemSummary(), 26, self.CONDITION_COLOR)
					self.ShowToolTip()					
				return

 

In uiChestDropInfo.py/line 133 I have this:

Spoiler
	def OverInMainItemSlot(self, slotIndex):
		if self.tooltipitem:
			self.tooltipitem.SetItemToolTip(self.ItemVnum)

 

 

Can someone advise me what to do with it or whats mean that bug? Thank you 🙂

Sorry for my bad english.

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 5

      Effect weapons

    2. 3

      Crystal Metinstone

    3. 3

      Feeding game source to LLM

    4. 113

      Ulthar SF V2 (TMP4 Base)

    5. 3

      Feeding game source to LLM

    6. 0

      Target Information System

    7. 3

      Feeding game source to LLM

    8. 2

      anti exp explanation pls

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.