Hello I have an error in hyperlinkitem, does anyone know how to solve it? Thank you in advance.
0314 15:31:18540 :: Traceback (most recent call last):
0314 15:31:18540 :: File "game.py", line 1641, in OnMouseLeftButtonUp
0314 15:31:18540 :: File "interfaceModule.py", line 700, in MakeHyperlinkTooltip
0314 15:31:18541 :: File "uiToolTip.py", line 4475, in SetHyperlinkItem
0314 15:31:18541 :: ValueError
0314 15:31:18541 :: :
0314 15:31:18541 :: invalid literal for int() with base 10: 'f'
0314 15:31:18541 ::
Code
- def SetHyperlinkItem(self, tokens):
- min_length = 3 + 1 + 1
- if tokens and min_length <= len(tokens):
- vnum = int(tokens[1], 16)
- metinSlotCount = player.METIN_SOCKET_MAX_NUM + 3
- metinSlot = [int(slot, 16) for slot in tokens[3:metinSlotCount]]
- slotIndex = metinSlotCount
- if app.ENABLE_REFINE_ELEMENT:
- refineElement = int(tokens[slotIndex], 16)
- slotIndex += 1
- if app.ENABLE_CHANGE_LOOK_SYSTEM:
- changelookvnum = int(tokens[slotIndex], 16)
- slotIndex += 1
- if app.ENABLE_SOUL_BIND_SYSTEM:
- soulbind = int(tokens[slotIndex], 16)
- slotIndex += 1
- if app.ENABLE_APPLY_RANDOM:
- apply_random_list = []
- for _ in range(player.APPLY_RANDOM_SLOT_MAX_NUM): # Apply random count
- key, value = int(tokens[slotIndex], 16), int(tokens[slotIndex+1])
- apply_random_list.append((key, value))
- slotIndex += 2
- attrSlot = []
- tokens.reverse()
- attrs = tokens[:len(tokens)-slotIndex]
- while attrs:
- key = int(attrs.pop(), 16)
- val = int(attrs.pop())
- attrSlot.append((key, val))
- attrSlot += [(0, 0)] * (player.ATTRIBUTE_SLOT_MAX_NUM - len(attrSlot))
- self.ClearToolTip()
- self.AddItemData(vnum, metinSlot, attrSlot, None, 0, soulbind, player.INVENTORY, -1, None, apply_random_list, 0, changelookvnum, refineElement)
- if app.ENABLE_CHANGE_LOOK_SYSTEM:
- self.AppendChangeLookInfoItemVnum(changelookvnum)
- ItemToolTip.OnUpdate(self)