Broker_Currency

501k Downloads

Lua Error Game Version 11.0.2

StanoRiga opened this issue · 4 comments

commented

I'm not very hopeful, but has anyone gotten this to work under 11.0.2?

4x Broker_Currency/Broker_Currency.lua:91: attempt to call global 'GetAddOnInfo' (a nil value)
[string "@Broker_Currency/Broker_Currency.lua"]:91: in main chunk

commented

Some API changes (https://warcraft.wiki.gg/wiki/Patch_11.0.2/API_changes)
In Broker_Currency.lua change:
Line 91: GetAddOnInfo → C_AddOns.GetAddOnInfo
Line 92 and 855: GetAddOnMetadata → C_AddOns.GetAddOnMetadata
I haven't tested thoroughly but works and it isn't throwing lua errors.

commented

Wow, that was fast.
Thank you. Works perfect.
Yes I saw the same error beeing thrown in multiple addons, so I assumes an API change. But I was not able to figure out what exactly changed here.
Thanks a lot!

commented

It doesn't open the settings to change values if you right click. By changing line 749

From:
_G.InterfaceOptionsFrame_OpenToCategory(Broker_Currency.menu)
To:
Settings.OpenToCategory(Broker_Currency.menu)

...it opens the settings window. Not the right window, mind you, just the settings window and you have to go to the right bit from there. But at least it doesn't error 😄

commented

Thank you again, mate.