Settings cannot be changed and addon is giving errors after prepatch
hianick opened this issue ยท 2 comments
The addon appears to work normally, except all of its settings are set to default, minus its position on the screen.
When you login this is the error you get.
1x LagBar/config.lua:137: attempt to call global 'InterfaceOptions_AddCategory' (a nil value)
[string "@LagBar/config.lua"]:137: in function <LagBar/config.lua:92>
[string "@LagBar/config.lua"]:144: in function `EnableConfig'
[string "@LagBar/LagBar.lua"]:154: in function `EnableAddon'
[string "@LagBar/LagBar.lua"]:28: in function <LagBar/LagBar.lua:17>
Locals:
about = LagBarAboutPanel {
name = "LagBar"
}
fields = <table> {
1 = "Version"
2 = "Author"
}
notes = "Displays a simple bar with some Latency Information."
title = FontString {
}
subtitle = FontString {
}
anchor = FontString {
}
(*temporary) = nil
(*temporary) = LagBarAboutPanel {
name = "LagBar"
}
(*temporary) = "attempt to call global 'InterfaceOptions_AddCategory' (a nil value)"
ADDON_NAME = "LagBar"
If you try to use a slash command to change the settings (the addons tab is missing from the addons section of the options) it gives this error. Particularly this error was from trying /lagbar fps.
1x LagBar/LagBar.lua:190: attempt to index field 'aboutPanel' (a nil value)
[string "@LagBar/LagBar.lua"]:190: in function `?'
[string "@Blizzard_ChatFrameBase/Mainline/ChatFrame.lua"]:5440: in function <Blizzard_ChatFrameBase/Mainline/ChatFrame.lua:5386>
[string "=[C]"]: in function `ChatEdit_ParseText'
[string "@Blizzard_ChatFrameBase/Mainline/ChatFrame.lua"]:5092: in function `ChatEdit_SendText'
[string "@Blizzard_ChatFrameBase/Mainline/ChatFrame.lua"]:5128: in function `ChatEdit_OnEnterPressed'
[string "*ChatFrame.xml:140_OnEnterPressed"]:1: in function <[string "*ChatFrame.xml:140_OnEnterPressed"]:1>
Locals:
cmd = "fps"
a = 1
b = 3
c = "fps"
(*temporary) = nil
(*temporary) = "fps"
(*temporary) = "fps"
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index field 'aboutPanel' (a nil value)"
L = <table> {
SlashScaleText = "LagBar Frame Scale"
SlashScaleSet = "LagBar: scale has been set to [|cFF20ff20%s|r]"
SlashFPSChkBtn = "Show the fps display."
SlashBG = "bg"
SlashTTOff = "LagBar: Hover Tooltip is now [|cFF99CC33HIDDEN|r]"
TooltipDragInfo = "[Hold Shift and Drag to move window.]"
SlashResetInfo = "Reset frame position."
SlashResetAlert = "LagBar: Frame position has been reset!"
SlashHomePing = "homeping"
SlashImpDisplayOn = "LagBar: Improved Ping Display is now [|cFF99CC33ON|r]"
SlashImpDisplayChkBtn = "Show the improved ping display."
SlashWorldPingOn = "LagBar: WorldPing is now [|cFF99CC33ON|r]"
SlashBGInfo = "Show the window background."
SlashScale = "scale"
SlashTT = "tt"
SlashBGOff = "LagBar: Background is now [|cFF99CC33HIDDEN|r]"
SlashFPS = "fps"
SlashImpDisplay = "impdisplay"
SlashScaleSetInvalid = "Scale invalid! Number must be from [0.5 - 5]. (0.5, 1, 3, 4.6, etc..)"
SlashHomePingOff = "LagBar: HomePing is now [|cFF99CC33OFF|r]"
SlashHomePingOn = "LagBar: HomePing is now [|cFF99CC33ON|r]"
SlashBGOn = "LagBar: Background is now [|cFF99CC33SHOWN|r]"
SlashMetricLabels = "metric"
World = "W"
Milliseconds = "ms"
SlashTTInfo = "Show the Tooltip when hovering over data."
Home = "H"
SlashWorldPingOff = "LagBar: WorldPing is now [|cFF99CC33OFF|r]"
SlashMetricLabelsOn = "LagBar: Metric labels are now [|cFF99CC33ON|r]"
AddonLoginMsg = "Show addon loaded announcement at login."
SlashWorldPingChkBtn = "Show the world ping display."
SlashMetricLabelsChkBtn = "Show metric labels in display."
SlashFPSOn = "LagBar: FPS is now [|cFF99CC33ON|r]"
SlashMetricLabelsOff = "LagBar: Metric labels are now [|cFF99CC33OFF|r]"
SlashScaleInfo = "Set the scale of the LootRollMover loot frames (0.5 - 5)."
SlashMetricLabelsInfo = "Toggles the display of metric labels (|cFF99CC33ON/OFF|r)."
SlashWorldPing = "worldping"
FPS = "fps"
SlashImpDisplayOff = "LagBar: Improved Ping Display is now [|cFF99CC33OFF|r]"
SlashImpDisplayInfo = "Toggles improved ping display (|cFF99CC33ON/OFF|r)."
SlashClampToScreenChkBtn = "Clamp the LagBar frame to the screen. |cFF99CC33(Prevents being dragged off screen)|r"
SlashReset = "reset"
SlashHomePingChkBtn = "Show the home ping display."
SlashWorldPingInfo = "Toggles world ping display (|cFF99CC33ON/OFF|r)."
SlashTTOn = "LagBar: Hover Tooltip is now [|cFF99CC33SHOWN|r]"
SlashHomePingInfo = "Toggles home ping display (|cFF99CC33ON/OFF|r)."
SlashFPSInfo = "Toggles fps display (|cFF99CC33ON/OFF|r)."
SlashFPSOff = "LagBar: FPS is now [|cFF99CC33OFF|r]"
}
addon = LagBar {
BottomLeftCorner = Texture {
}
TopLeftCorner = Texture {
}
RightEdge = Texture {
}
backdropInfo = <table> {
}
TopRightCorner = Texture {
}
Center = Texture {
}
BottomEdge = Texture {
}
TopEdge = Texture {
}
BottomRightCorner = Texture {
}
configFrame = LagBar_config_eventFrame {
}
LeftEdge = Texture {
}
}
ADDON_NAME = "LagBar"
Also, a separate issue, but the clamp option isnt in the slash command list.
Apparently the recent patch as well as the changes found in next expansion TWW, is causing a lot of bugs. I'll tackle these one at a time.