frozn / TipTac

WoW AddOn TipTac Reborn
GNU General Public License v3.0
118 stars 25 forks source link

LUA Error #332

Closed gkrzton closed 3 months ago

gkrzton commented 3 months ago

Describe the bug

Message: ...nterface/AddOns/TipTacItemRef/libs/LibItemString.lua:321: attempt to call field 'SurfaceArgs' (a nil value) Time: Wed Aug 14 22:05:42 2024 Count: 1 Stack: ...nterface/AddOns/TipTacItemRef/libs/LibItemString.lua:321: attempt to call field 'SurfaceArgs' (a nil value) [string "@Interface/AddOns/TipTacItemRef/libs/LibItemString.lua"]:321: in function <...nterface/AddOns/TipTacItemRef/libs/LibItemString.lua:316>

[string "@Interface/AddOns/TipTacItemRef/ttItemRef.lua"]:2417: in function `item' [string "@Interface/AddOns/TipTacItemRef/ttItemRef.lua"]:1282: in function <Interface/AddOns/TipTacItemRef/ttItemRef.lua:1271> [string "@Interface/AddOns/TipTac/libs/LibFroznFunctions-1.0/LibFroznFunctions-1.0.lua"]:389: in function <...libs/LibFroznFunctions-1.0/LibFroznFunctions-1.0.lua:387>

string "=[C]": in function securecallfunction' [string "@Interface/AddOns/Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua"]:61: in function <...lizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua:56> [string "@Interface/AddOns/Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua"]:81: in function <...lizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua:77> [string "@Interface/AddOns/Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua"]:117: in function <...lizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua:107> [string "=[C]"]: in functionSetAttribute' [string "@Interface/AddOns/Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua"]:142: in function <...lizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua:135> [string "@Interface/AddOns/Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua"]:288: in function <...lizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua:238> string "=[C]": in function `securecallfunction' [string "@Interface/AddOns/Blizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua"]:235: in function <...lizzard_SharedXMLGame/Tooltip/TooltipDataHandler.lua:234>

string "=[C]": in function SetAction' [string "@Interface/AddOns/Blizzard_ActionBar/Mainline/ActionButton.lua"]:1126: in functionSetTooltip' [string "@Interface/AddOns/Blizzard_ActionBar/Mainline/ActionButton.lua"]:1468: in function <.../AddOns/Blizzard_ActionBar/Mainline/ActionButton.lua:1463>

Locals: self =

{ ITEM_LEVEL_PATTERN = "Item Level (%d+)" ITEMSTRING_PROPERTY_INDEX =
{ } TIMEWARPED_LEVEL_ADJUST =
{ } UPGRADED_LEVEL_ADJUST =
{ } ITEMSTRING_PATTERN = "(item:[^|]+)" ScanTip = LibItemStringScanTip { } TOOLTIP_MAXLINE_LEVEL = 5 REVISION = 4 TIMEWARPED_WARFORGED_LEVEL_ADJUST =
{ } } itemLink = "[Refreshing Healing Potion |A:Professions-ChatIcon-Quality-Tier1:17:15::1|a]" tooltipData =
{ dataInstanceID = 6520 type = 0 isAzeriteEmpoweredItem = false isAzeriteItem = false id = 191378 hyperlink = "[Refreshing Healing Potion |A:Professions-ChatIcon-Quality-Tier1:17:15::1|a]" isCorruptedItem = false lines =
{ } } (temporary) = nil (temporary) =
{ dataInstanceID = 6520 type = 0 isAzeriteEmpoweredItem = false isAzeriteItem = false id = 191378 hyperlink = "[Refreshing Healing Potion |A:Professions-ChatIcon-Quality-Tier1:17:15::1|a]" isCorruptedItem = false lines =
{ } } (*temporary) = "attempt to call field 'SurfaceArgs' (a nil value)" LIS =
{ ITEM_LEVEL_PATTERN = "Item Level (%d+)" ITEMSTRING_PROPERTY_INDEX =
{ } TIMEWARPED_LEVEL_ADJUST =
{ } UPGRADED_LEVEL_ADJUST =
{ } ITEMSTRING_PATTERN = "(item:[^|]+)" ScanTip = LibItemStringScanTip { } TOOLTIP_MAXLINE_LEVEL = 5 REVISION = 4 TIMEWARPED_WARFORGED_LEVEL_ADJUST =
{ } }

Steps to Reproduce

No response

Expected behavior

No response

Additional context

No response

Version of TipTac Reborn

24.08.05

Flavor/Version of WoW

11.0.2

spectre013 commented 3 months ago

Turn of the ItemRef part and TipTac will work for now.

frozn commented 3 months ago

Thanks for reporting this! 👍

Calling TooltipUtil.SurfaceArgs() is obsolete (since df 10.1.0) and can be removed. The fix will be included in the next release.

Duplicate of #330.