Bagnon

Bagnon

122M Downloads

QuickKeybindTooltip error

Gnomexpress opened this issue ยท 3 comments

commented

Message: ...s/Bagnon/common/Wildpants/features/tooltipCounts.lua:34: QuickKeybindTooltip doesn't have a "OnTooltipSetItem" script
Time: Wed Nov 16 13:33:52 2022
Count: 1
Stack: ...s/Bagnon/common/Wildpants/features/tooltipCounts.lua:34: QuickKeybindTooltip doesn't have a "OnTooltipSetItem" script
[string "=[C]"]: in function HookScript' [string "@Interface/AddOns/Bagnon/common/Wildpants/features/tooltipCounts.lua"]:34: in function Hook'
[string "@Interface/AddOns/Bagnon/common/Wildpants/features/tooltipCounts.lua"]:25: in function ?' [string "@Interface/AddOns/Bagnon/common/Wildpants/libs/WildAddon-1.0/WildAddon-1.0.lua"]:20: in function <...ommon/Wildpants/libs/WildAddon-1.0/WildAddon-1.0.lua:18> [string "@Interface/AddOns/Bagnon/common/Wildpants/libs/WildAddon-1.0/WildAddon-1.0.lua"]:56: in function <...ommon/Wildpants/libs/WildAddon-1.0/WildAddon-1.0.lua:53> [string "=[C]"]: ? [string "@Interface/AddOns/AllTheThings/lib/CallbackHandler-1.0/CallbackHandler-1.0.lua"]:29: in function <...ings/lib/CallbackHandler-1.0/CallbackHandler-1.0.lua:25> [string "@Interface/AddOns/AllTheThings/lib/CallbackHandler-1.0/CallbackHandler-1.0.lua"]:64: in function Fire'
[string "@Interface/AddOns/Bagnon/common/Wildpants/libs/AceEvent-3.0/AceEvent-3.0.lua"]:120: in function <.../common/Wildpants/libs/AceEvent-3.0/AceEvent-3.0.lua:119>
[string "=[C]"]: in function LoadAddOn' [string "@Interface/FrameXML/UIParent.lua"]:536: in function UIParentLoadAddOn'
[string "@Interface/FrameXML/UIParent.lua"]:667: in function `TimeManager_LoadUI'
[string "@Interface/FrameXML/UIParent.lua"]:1482: in function <Interface/FrameXML/UIParent.lua:1362>

Locals:

commented

replacing the line with

TooltipDataProcessor.AddTooltipPostCall(Enum.TooltipDataType.Item, OnTooltipSetItem)

fixes that error, but then it complains about

hooksecurefunc(tip, 'SetQuestItem', self.OnQuest)

and the bag icons are all still fubar

commented

Thanks, that is really good to know! I'll keep that in mind next time I'm trying to self-patch.
I found this fan-update that sorted out all the bugs while we wait Jaliborc's return from IRL :)
https://www.curseforge.com/wow/addons/bagnon?page=2#c9505

commented

replacing the line with

TooltipDataProcessor.AddTooltipPostCall(Enum.TooltipDataType.Item, OnTooltipSetItem)

fixes that error, but then it complains about

hooksecurefunc(tip, 'SetQuestItem', self.OnQuest)

and the bag icons are all still fubar

That's because replacing the line with the TooltipDataProcessor is the first step, the OnTooltipSetItem referenced there is not a WoW function but a local function that needs to be defined. The call exposes a couple tables for each item that need to be analyzed and handled.