RaiderIO / raiderio-addon

RaiderIO AddOn
https://raider.io/addon
Other
41 stars 22 forks source link

Error when initialize plugin - InterfaceOptions_AddCategory #294

Open o0sh4d0w0o opened 2 months ago

o0sh4d0w0o commented 2 months ago

Description :

When launching game with retail expension (The War Within v11.0.2 - 56513 - x64 - Sep 5 2024) we got LUA error on addon initialization.

Error stack :

Message: Interface/AddOns/RaiderIO/core.lua:13339: attempt to call global 'InterfaceOptions_AddCategory' (a nil value)
Time: Tue Sep 17 18:02:11 2024
Count: 1
Stack: Interface/AddOns/RaiderIO/core.lua:13339: attempt to call global 'InterfaceOptions_AddCategory' (a nil value)
[string "@Interface/AddOns/RaiderIO/core.lua"]:13339: in function `CreateInterfacePanel'
[string "@Interface/AddOns/RaiderIO/core.lua"]:13439: in main chunk

Suggestion :

Change line 13339 :

InterfaceOptions_AddCategory(panel, true)

By :

if InterfaceOptions_AddCategory then
    InterfaceOptions_AddCategory(panel, true)
else
    local category, layout = _G.Settings.RegisterCanvasLayoutCategory(panel, panel.name)
    _G.Settings.RegisterAddOnCategory(category)
end
Vladinator commented 2 months ago

Something looks odd, because the error occurs on older version of the addon, which was fixed some weeks ago.

It might be that something went wrong with addon updating, or the RIO client failed to update the addon, failing to locale the game installation, etc.

If you could manually control and check that the addon is updated, the error should then go away.