GetWorldPosFromMapPos Error
Closed this issue ยท 13 comments
3x Arh/arh.lua:1148: Usage: local continentID, worldPosition = C_Map.GetWorldPosFromMapPos(uiMapID, mapPosition)
[string "=[C]"]: in function `GetWorldPosFromMapPos'
[string "@Arh/arh.lua"]:1148: in function `GetPos'
[string "@Arh/arh.lua"]:1189: in function `GetPosYards'
[string "@Arh/arh.lua"]:1772: in function `Arh_HudFrame_OnUpdate'
[string "@Arh/arh.lua"]:1864: in function <Arh/arh.lua:1860>
[string "=[C]"]: in function `Show'
[string "@Arh/arh.lua"]:99: in function <Arh/arh.lua:97>
[string "@Arh/arh.lua"]:175: in function `ToggleHUD'
[string "@Arh/arh.lua"]:1588: in function `Arh_MainFrame_Init'
[string "@Arh/arh.lua"]:1479: in function <Arh/arh.lua:1469>
[string "@Arh/arh.lua"]:1488: in function <Arh/arh.lua:1486>
Locals:
(*temporary) = 189
(*temporary) = nil
getting this lua error as well for some reason.
Originally posted by @Pocokk in #17 (comment)
@Pocokk
what addon release are you on?
at what point in time this error appears?
Does it happen when you do /reload
?
Where is your character located at when this happens?
Latest release available from here
it happened while I was inside a raid instance (ICC)
it went away after a while, not sure if I did a /reload or just finished the raid and left it altogether, but now I'm outdoor and farming the proff without any issue
Iirc that call isn't available in instances. Or was it in raids? Either way I thought there was built in protection against it running. I'll try to replicate issue by going to instance, though no promises.
I'll appreciate if you can catch exact set of conditions when it happens. So I can replicate it for testing possible workarounds.
All I remember is that I was inside ICC, just installed the addon, did a /reload and when I tried to left mouse-click on the mini-map icon, that error occurred.
Thanks for the report. I found the bug and it was exactly as i was expecting. Since a lot of calls don't work in instances. Trying to decide if i want to work around it or simply disable addon while in instance.
Another thing, I've found the mini-map icon left-click option (show/hide the main windows) doesn't work at all, even if I'm near/at a digsite (yet doesn't getting any lua error upon spam clicking it, so its weird).
Ah didn't know about that, sorry!
Yep, from now on its auto-toggle, but not everyone is aware of it and might cause issues to them in the future.
To prevent future bugreports, any chance to "block" the window in instance environment later perhaps?
I've made auto-toggle the default years ago. Which perhaps makes it slightly confusing for first time users as HUD doesn't show up when addon is loaded
Grab the latest https://github.com/ynazar1/Arh/blob/main/Arh.lua file, replace yours in addons directory and test please.
I've added back the rectangle frame and the addon errors in ICC/raid should be gone now. I think. It just doesn't quite operate in instances but the frame at least loads. Not that it ever operated in instances.