New WOW sod Patch 1.15.4 Broke UI
Zenruki opened this issue ยท 4 comments
Copypaste from BugSack with the errors:
8x ...ns/CharacterStatsClassic/CharacterStatsClassicUI.lua:198: attempt to call global 'InterfaceOptions_AddCategory' (a nil value)
[string "@CharacterStatsClassic/CharacterStatsClassicUI.lua"]:198: in function `SetupConfigInterface'
[string "@CharacterStatsClassic/CharacterStatsClassicUI.lua"]:132: in function `CreateMenu'
[string "@CharacterStatsClassic/CharacterStatsClassicUI.lua"]:320: in function <...ns/CharacterStatsClassic/CharacterStatsClassicUI.lua:316>
Locals:
self = <table> {
CharacterStatsPanel = Frame {
}
}
(*temporary) = nil
(*temporary) = CSC_InterfaceOptionsPanel {
name = "CharacterStatsClassic"
}
(*temporary) = "attempt to call global 'InterfaceOptions_AddCategory' (a nil value)"
CSC_ConfigFrame = CSC_InterfaceOptionsPanel {
name = "CharacterStatsClassic"
}
Another one (later part includes RuneReminder error too but kept it):
17x ...ns/CharacterStatsClassic/CharacterStatsClassicUI.lua:44: attempt to index field '?' (a nil value)
[string "@CharacterStatsClassic/CharacterStatsClassicUI.lua"]:44: in function <...ns/CharacterStatsClassic/CharacterStatsClassicUI.lua:36>
[string "@CharacterStatsClassic/CharacterStatsClassicUI.lua"]:80: in function `SetCharacterStats'
[string "@CharacterStatsClassic/CharacterStatsClassicUI.lua"]:139: in function `UpdateStats'
[string "@CharacterStatsClassic/CharacterStatsClassicUI.lua"]:249: in function <...ns/CharacterStatsClassic/CharacterStatsClassicUI.lua:245>
[string "=[C]"]: in function `ToggleCharacter'
[string "@RuneReminder/RuneReminder.lua"]:5242: in function <RuneReminder/RuneReminder.lua:5227>
Locals:
statFrames = <table> {
}
statFrameDefaultAlpha = 0
(for index) = 1
(for limit) = 5
(for step) = 1
i = 1
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index field '?' (a nil value)"
NUM_STATS_TO_SHOW = 5
Here is a fix you can do yourself.
Open CharacterStatsClassicUI.lua
with a text editor.
Delete line 198:
InterfaceOptions_AddCategory(CSC_ConfigFrame);
Replace it with the following instead:
local category, layout = Settings.RegisterCanvasLayoutCategory(CSC_ConfigFrame, CSC_ConfigFrame.name, CSC_ConfigFrame.name);
category.ID = CSC_ConfigFrame.name;
Settings.RegisterAddOnCategory(category);
It should look like this:
CSC_ConfigFrame.name = "CharacterStatsClassic";
local category, layout = Settings.RegisterCanvasLayoutCategory(CSC_ConfigFrame, CSC_ConfigFrame.name, CSC_ConfigFrame.name);
category.ID = CSC_ConfigFrame.name;
Settings.RegisterAddOnCategory(category);
-- Title and font
For some reason my addon manager isn't recognizing the update. Probably just a curseforge issue, as I've had that happen with some of my own addons as well. Removing and readding the adodn fixed it.
Cheers, thanks for the fix.