Tercioo / World-Quest-Tracker

Source code for the biggest world quest addon for World of Warcraft
22 stars 12 forks source link

[Bug] Errors on Icon Mouseover #62

Closed aurae-wow closed 1 year ago

aurae-wow commented 1 year ago

Both errors generated from multiple lines. Happens when mousing over any WQ icon on the Zone and World maps.

Message: ...dOns\WorldQuestTracker\WorldQuestTracker_ZoneMap.lua:196: attempt to call method 'SetScaleFrom' (a nil value)
Time: Sun Oct 16 22:30:04 2022
Count: 7
Stack: ...dOns\WorldQuestTracker\WorldQuestTracker_ZoneMap.lua:196: attempt to call method 'SetScaleFrom' (a nil value)
[string "=[C]"]: in function `SetScaleFrom'
[string "@Interface\AddOns\WorldQuestTracker\WorldQuestTracker_ZoneMap.lua"]:196: in function <...dOns\WorldQuestTracker\WorldQuestTracker_ZoneMap.lua:178>
[string "=[C]"]: ?
Message: ...Ons\WorldQuestTracker\WorldQuestTracker_WorldMap.lua:167: attempt to call method 'SetScaleFrom' (a nil value)
Time: Sun Oct 16 22:38:12 2022
Count: 39
Stack: ...Ons\WorldQuestTracker\WorldQuestTracker_WorldMap.lua:167: attempt to call method 'SetScaleFrom' (a nil value)
[string "=[C]"]: in function `SetScaleFrom'
[string "@Interface\AddOns\WorldQuestTracker\WorldQuestTracker_WorldMap.lua"]:167: in function <...Ons\WorldQuestTracker\WorldQuestTracker_WorldMap.lua:156>
[string "@Interface\AddOns\WorldQuestTracker\WorldQuestTracker_WorldMap.lua"]:206: in function <...Ons\WorldQuestTracker\WorldQuestTracker_WorldMap.lua:191>
jaychang85 commented 1 year ago

For UI object,

SetScaleFrom should be SetFromScale SetScaleTo should be SetToScale

https://wowpedia.fandom.com/wiki/Widget_API

aurae-wow commented 1 year ago

That's what they're set to in the October 9th v9.2.7.444 file, yes. These are Dragonflight changes for the addon, I'm not sure if it was meant to be pushed to the retail version or if something got mixed up in the push. Either way, downgrading to the previous version, or changing those functions will work.