kemayo / wow-appearancetooltip

World of Warcraft addon: fancy tooltip for previewing item appearances
6 stars 1 forks source link

Lua error when open loot windoe #11

Closed gaveer closed 2 years ago

gaveer commented 2 years ago

@kemayo

4x Interface/AddOns/AppearanceTooltip/overlays.lua:392: attempt to call field 'RegisterCallback' (a nil value)
[string "@Interface/AddOns/AppearanceTooltip/overlays.lua"]:392: in function `?'
[string "@Interface/AddOns/AppearanceTooltip/overlays.lua"]:18: in function <Interface/AddOns/AppearanceTooltip/overlays.lua:16>
[string "=(tail call)"]: ?

Locals:
(*temporary) = nil
(*temporary) = "AppearanceTooltip"
(*temporary) = "LootWindowOpened"
(*temporary) = <function> defined @Interface/AddOns/AppearanceTooltip/overlays.lua:392
(*temporary) = "attempt to call field 'RegisterCallback' (a nil value)"
UpdateOverlay = <function> defined @Interface/AddOns/AppearanceTooltip/overlays.lua:58
ns = <table> {
 SLOT_WAIST = 6
 SLOT_TABARD = 19
 SLOT_OFFHAND = 17
 GetCameraID = <function> defined @Interface/AddOns/AppearanceTooltip/cameraids.lua:96
 always_remove = <table> {
 }
 SLOT_MAINHAND = 16
 db = <table> {
 }
 Debug = <function> defined @Interface/AddOns/AppearanceTooltip/addon.lua:694
 CanTransmogItem = <function> defined @Interface/AddOns/AppearanceTooltip/addon.lua:603
 Print = <function> defined @Interface/AddOns/AppearanceTooltip/addon.lua:691
 ColorTextByCompletion = <function> defined @Interface/AddOns/AppearanceTooltip/addon.lua:686
 SLOT_FEET = 8
 slot_removals = <table> {
 }
 UpdateSources = <function> defined @Interface/AddOns/AppearanceTooltip/addon.lua:571
 PlayerHasAppearance = <function> defined @Interface/AddOns/AppearanceTooltip/addon.lua:617
 ShowItem = <function> defined @Interface/AddOns/AppearanceTooltip/addon.lua:310
 SLOT_HANDS = 10
 SLOT_SHOULDER = 3
 SLOT_ROBE = -99
 ResetModel = <function> defined @Interface/AddOns/AppearanceTooltip/addon.lua:457
 modifiers = <table> {
 }
 slot_facings = <table> {
 }
 HideItem = <function> defined @Interface/AddOns/AppearanceTooltip/addon.lua:453
 SLOT_CHEST = 5
 ComputeTooltipAnchors = <function> defined @Interface/AddOns/AppearanceTooltip/addon.lua:199
 SLOT_SHIRT = 4
}
kemayo commented 2 years ago

That's an intensely weird error, because I think it could only happen if SilverDragon wasn't actually completely loaded when its ADDON_LOADED event fired. I assume you're setting it immediately when you log in?

gaveer commented 2 years ago

no idea :D , but i have SilverDragon addon yes

gaveer commented 2 years ago

@kemayo any fix for this isseu ?

gaveer commented 2 years ago

@kemayo i Think you might need to revert the changes , i found out that i had addon called SilverDragon not the SilverDragon you trying to hook overlaye , think this is identity theft where other addon has the same name and your addon trying to call back , my bad maybe we can hook the same addon id ? not the name

gaveer commented 2 years ago

i switched to Rare Dragon

kemayo commented 2 years ago

Ah, yup, that kind of confusion would definitely do it. 😂