raiderio-addon icon indicating copy to clipboard operation
raiderio-addon copied to clipboard

Error when initialize plugin - InterfaceOptions_AddCategory

Open o0sh4d0w0o opened this issue 5 months ago • 1 comments

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

o0sh4d0w0o avatar Sep 17 '24 16:09 o0sh4d0w0o