Toxicom / toxiui

ToxiUI is a plugin for ElvUI in World of Warcraft
Other
24 stars 14 forks source link

Saturation boost causes lua error. Cannot be modified in 6.7.1 #107

Closed somegituser2023 closed 3 months ago

somegituser2023 commented 3 months ago

Description

The saturation boost option was enabled before I updated to 6.7.1, and since the update, I now login to these errors. I am unable to uncheck/change that setting in the ToxiUI window, the 'saturation boost' section is blank.

Lua error


1x ...ElvUI_ToxiUI/Modules/Options/Themes/GradientMode.lua:699: attempt to index field 'saturationBoost' (a boolean value)
[string "@ElvUI_ToxiUI/Modules/Options/Themes/GradientMode.lua"]:699: in function `member'
[string "@ElvUI_Libraries/Core/Ace3/AceConfig-3.0-3/AceConfigDialog-3.0-86/AceConfigDialog-3.0.lua"]:215: in function <...nfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua:164>
[string "@ElvUI_Libraries/Core/Ace3/AceConfig-3.0-3/AceConfigDialog-3.0-86/AceConfigDialog-3.0.lua"]:337: in function <...nfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua:310>
[string "@ElvUI_Libraries/Core/Ace3/AceConfig-3.0-3/AceConfigDialog-3.0-86/AceConfigDialog-3.0.lua"]:1157: in function <...nfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua:1153>
[string "@ElvUI_Libraries/Core/Ace3/AceConfig-3.0-3/AceConfigDialog-3.0-86/AceConfigDialog-3.0.lua"]:1180: in function <...nfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua:1153>
[string "@ElvUI_Libraries/Core/Ace3/AceConfig-3.0-3/AceConfigDialog-3.0-86/AceConfigDialog-3.0.lua"]:1755: in function `FeedGroup'
[string "@ElvUI_Libraries/Core/Ace3/AceConfig-3.0-3/AceConfigDialog-3.0-86/AceConfigDialog-3.0.lua"]:1680: in function <...nfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua:1664>
[string "=[C]"]: ?
[string "@ElvUI_Libraries/Core/Ace3/AceGUI-3.0-41/AceGUI-3.0.lua"]:66: in function <.../ElvUI_Libraries/Core/Ace3/AceGUI-3.0/AceGUI-3.0.lua:64>
[string "@ElvUI_Libraries/Core/Ace3/AceGUI-3.0-41/AceGUI-3.0.lua"]:300: in function `Fire'
[string "@ElvUI_Libraries/Core/Ace3/AceGUI-3.0-41/widgets/AceGUIContainer-TabGroup.lua"]:342: in function `SelectTab'
[string "@ElvUI_Libraries/Core/Ace3/AceGUI-3.0-41/widgets/AceGUIContainer-TabGroup.lua"]:200: in function <...Ace3/AceGUI-3.0/widgets/AceGUIContainer-TabGroup.lua:197>

Locals:
(*temporary) = <function> defined @ElvUI_ToxiUI/Modules/Options/Core.lua:216
(*temporary) = <table> {
 WunderBar_SubModules_Durability = <function> defined @ElvUI_ToxiUI/Modules/Options/WunderBar/SubModules/Durability.lua:5
 Contacts = <function> defined @ElvUI_ToxiUI/Modules/Options/Contacts/Core.lua:4
 EnableModule = <function> defined @Details/Libs/AceAddon-3.0/AceAddon-3.0.lua:328
 modules = <table> {
 }
 WunderBar_SubModules_MicroMenu_Buttons = <function> defined @ElvUI_ToxiUI/Modules/Options/WunderBar/SubModules/MicroMenu.lua:10
 IterateEmbeds = <function> defined @Details/Libs/AceAddon-3.0/AceAddon-3.0.lua:438
 WunderBar_Modules = <function> defined @ElvUI_ToxiUI/Modules/Options/WunderBar/Modules.lua:68
 Skins = <function> defined @ElvUI_ToxiUI/Modules/Options/Skins/Core.lua:4
 LogTrace = <function> defined @ElvUI_ToxiUI/Core/Functions/Log.lua:157
 GetAllFontOutlinesFunc = <function> defined @ElvUI_ToxiUI/Modules/Options/Core.lua:142
 WunderBar_General = <function> defined @ElvUI_ToxiUI/Modules/Options/WunderBar/General.lua:5
 WunderBar_SubModules_DataBar = <function> defined @ElvUI_ToxiUI/Modules/Options/WunderBar/SubModules/DataBar.lua:5
 WunderBar = <function> defined @ElvUI_ToxiUI/Modules/Options/WunderBar/Core.lua:4
 AddTinySpacer = <function> defined @ElvUI_ToxiUI/Modules/Options/Core.lua:333
 SetDefaultModulePrototype = <function> defined @Details/Libs/AceAddon-3.0/AceAddon-3.0.lua:405
 AddDesc = <function> defined @ElvUI_ToxiUI/Modules/Options/Core.lua:253
 defaultModuleState = true
 IsEnabled = <function> defined @Details/Libs/AceAddon-3.0/AceAddon-3.0.lua:447
 DisableModule = <function> defined @Details/Libs/AceAddon-3.0/AceAddon-3.0.lua:346
 ThrowError = <function> defined @ElvUI_ToxiUI/Core/Functions/Log.lua:85
 LogInfo = <function> defined @ElvUI_ToxiUI/Core/Functions/Log.lua:147
 GetOrder = <function> defined @ElvUI_ToxiUI/Modules/Options/Core.lua:342
 WunderBar_SubModules_Currency = <function> defined @ElvUI_ToxiUI/Modules/Options/WunderBar/SubModules/Currency.lua:9
 WunderBar_SubModules_Additional_Toggle = <function> defined @ElvUI_ToxiUI/Modules/Options/WunderBar/SubModules/Hearthstone.lua:11
 WunderBar_Modules_Select = <function> defined @ElvUI_ToxiUI/Modules/Options/WunderBar/Modules.lua:18
 GetEnabledState = <function> defined @ElvUI_ToxiUI/Modules/Options/Core.lua:195
 ToxiUI_Themes = <function> defined @ElvUI_ToxiUI/Modules/Options/Themes/Core.lua:4
 AddInlineDesc = <function> defined @ElvUI_ToxiUI/Modules/Options/Core.lua:265
 enabledState = <table> {
 }
 Skins_RaidRoleIcons = <function> defined @ElvUI_ToxiUI/Modules/Options/Skins/RaidRoleIcons.lua:4
 GetAllFontsFunc = <function> defined @ElvUI_ToxiUI/Modules/Options/Core.lua:136
 Plugins_AdditionalScaling = <function> defined @ElvUI_ToxiUI/Modules/Options/Misc/AdditionalScaling.lua:5
 IterateModules = <function> defined @Details/Libs/AceAddon-3.0/AceAddon-3.0.lua:433
 WunderBar_SubModules_Hearthstone = <function> defined @ElvUI_ToxiUI/Modules/Options/WunderBar/SubModules/Hearthstone.lua:71
 GetFontColorGetter = <function> defined @ElvUI_ToxiUI/Modules/Options/Core.lua:175
 AddInlineGroup = <function> defined @ElvUI_ToxiUI/Modules/Options/Core.lua:240
 Skins_GroupIcons = <function> defined @ElvUI_ToxiUI/Modules/Options/Skins/GroupIcons.lua:4
 SetEnabledState = <function> defined @Details/Libs/AceAddon-3.0/AceAddon-3.0.lua:420
 Enable = <function> defined @Details/Libs/AceAddon-3.0/AceAddon-3.0.lua:290
 NewModule = <function

and

2x ElvUI_ToxiUI/Core/Functions/Color.lua:77: attempt to index field 'saturationBoost' (a boolean value)
[string "@ElvUI_ToxiUI/Core/Functions/Color.lua"]:77: in function `GenerateCache'
[string "@ElvUI_ToxiUI/Modules/Themes/Gradients/Core.lua"]:103: in function `SettingsUpdate'
[string "@ElvUI_ToxiUI/Modules/Themes/Gradients/Core.lua"]:130: in function `Enable'
[string "@ElvUI_ToxiUI/Modules/Themes/Gradients/Core.lua"]:170: in function `callback'
[string "@ElvUI_ToxiUI/Core/Functions/Event.lua"]:312: in function `ContinueAfter'
[string "@ElvUI_ToxiUI/Core/Functions/Event.lua"]:351: in function `ContinueAfterElvUIUpdate'
[string "@ElvUI_ToxiUI/Modules/Themes/Gradients/Core.lua"]:163: in function `callback'
[string "@ElvUI_ToxiUI/Core/Functions/Event.lua"]:285: in function `ContinueOutOfCombat'
[string "@ElvUI_ToxiUI/Modules/Themes/Gradients/Core.lua"]:162: in function <...ddOns/ElvUI_ToxiUI/Modules/Themes/Gradients/Core.lua:153>
[string "=(tail call)"]: ?
[string "@ElvUI_ToxiUI/Core/Functions/Event.lua"]:252: in function <ElvUI_ToxiUI/Core/Functions/Event.lua:250>
[string "=[C]"]: ?
...
[string "@ElvUI_ToxiUI/Core/Core.lua"]:128: in function `callback'
[string "@ElvUI_ToxiUI/Core/Functions/Event.lua"]:312: in function `ContinueAfter'
[string "@ElvUI_ToxiUI/Core/Functions/Event.lua"]:351: in function `ContinueAfterElvUIUpdate'
[string "@ElvUI_ToxiUI/Core/Core.lua"]:104: in function <ElvUI_ToxiUI/Core/Core.lua:102>
[string "@ElvUI_ToxiUI/Core/Functions/Event.lua"]:379: in function <ElvUI_ToxiUI/Core/Functions/Event.lua:374>
[string "=[C]"]: ?
[string "@ElvUI_ToxiUI/Core/Functions/Event.lua"]:170: in function <ElvUI_ToxiUI/Core/Functions/Event.lua:169>
[string "=[C]"]: ?
[string "@ElvUI_ToxiUI/Core/Functions/Event.lua"]:173: in function `TriggerEvent'
[string "@ElvUI_ToxiUI/Core/Functions/Event.lua"]:388: in function <ElvUI_ToxiUI/Core/Functions/Event.lua:387>

Locals:
db = <table> {
 enabled = true
 castColorMap = <table> {
 }
 saturationBoost = true
 backgroundMultiplier = 0.350000
 interruptSoonEnabled = false
 colorHealth = <table> {
 }
 specialColorMap = <table> {
 }
 powerColorMap = <table> {
 }
 classColorMap = <table> {
 }
 textures = <table> {
 }
 reactionColorMap = <table> {
 }
 interruptCDEnabled = false
}
(for generator) = <function> defined =[C]:-1
(for state) = <table> {
 1 = "reactionColorMap"
 2 = "castColorMap"
 3 = "powerColorMap"
 4 = "specialColorMap"
 5 = "classColorMap"
 6 = "classResourceMap"
}
(for control) = 1
_ = 1
colorKey = "reactionColorMap"
colorMap = <table> {
 1 = <table> {
 }
 2 = <table> {
 }
}
(for generator) = <function> defined =[C]:-1
(for state) = <table> {
 1 = 2
 2 = 1
}
(for control) = 1
_ = 1
colorType = 2
modS = nil
modL = nil
(*temporary) = true
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index field 'saturationBoost' (a boolean value)"
F = <table> {
 GetMedia = <function> defined @ElvUI_ToxiUI/Core/Functions/Core.lua:625
 EventManagerUnregister = <function> defined @ElvUI_ToxiUI/Core/Functions/Core.lua:502
 EventManagerRegister = <function> defined @ElvUI_ToxiUI/Core/Functions/Core.lua:476
 IsContributor = <function> defined @ElvUI_ToxiUI/Core/Functions/Core.lua:599
 CreateInnerShadow = <function> defined @ElvUI_ToxiUI/Core/Functions/Core.lua:688
 GetFontPath = <function> defined @ElvUI_ToxiUI/Core/Functions/Core.lua:355
 DpiRaw = <function> defined @ElvUI_ToxiUI/Core/Functions/Core.lua:155
 ChooseForGradient = <function> defined @ElvUI_ToxiUI/Core/Functions/Core.lua:767
 FastColorGradient = <function> defined @ElvUI_ToxiUI/Core/Functions/Core.lua:268
 GetFontShadowOverride = <function> defined @ElvUI_ToxiUI/Core/Functions/Core.lua:288
 ResetTXUIProfile = <function> defined @ElvUI_ToxiUI/Core/Functions/Core.lua:53
 Enum = <function> defined @ElvUI_ToxiUI/Core/Functions/Core.lua:91
 Log = <table> {
 }
 CanInterruptEvaluation = <function> defined @ElvUI_ToxiUI/Core/Functions/Core.lua:846
 Color = <table> {
 }
 CalculateMultiplierColorArray = <function> defined @ElvUI_ToxiUI/Core/Functions/Core.lua:242
 Dpi = <function> defined @ElvUI_ToxiUI/Core/Functions/Core.lua:151
 EventManagerUnregisterAll = <function> defined @ElvUI_ToxiUI/Core/Functions/Core.lua:494
 SlowColorGradient = <function> defined @ElvUI_ToxiUI/Core/Functions/Core.lua:254
 ClampTo01 = <function> defined @ElvUI_ToxiUI/Core/Functions/Core.lua:178
 AlmostEqual = <function> defined @ElvUI_ToxiUI/Core/Functions/Core.lua:114
 GetContributorEntryName = <function> defined @ElvUI_ToxiUI/Core/Functions/Core.lua:592
 CreateSoftShadow = <function> defined @ElvUI_ToxiUI/Core/Functions/Core.lua:653
 Event = <table> {
 }
 SetFontFromDB = <function> defined @ElvUI_ToxiUI/Core/Functions/Core.lua:366
 FontStyleOverride = <function> defined @ElvUI_ToxiUI/Core/Functions/Core.lua:283
 Position = <function> defined @ElvUI_ToxiUI/Core/Functions/Core.lua:170
 CreateThrottleWrapper = <function> defined @ElvUI_ToxiUI/Core/Functions/Core.lua:399
 GetChatIcon = <function> defined @ElvUI_ToxiUI/Core/Functions/Core.lua:587
 GetFontColorFromDB = <function> defined @ElvUI_ToxiUI/Core/Functions/Core.lua:298
 BuildRoleCache = <function> defined @ElvUI_ToxiUI/Core/Functions/Core.lua:535
 FontSizeScaled = <function> defined @I

With /tx debug on:

Message: ...terface/AddOns/ElvUI_ToxiUI/Core/Functions/Color.lua:77: attempt to index field 'saturationBoost' (a boolean value)
Time: Mon Jul 15 09:11:22 2024
Count: 1
Stack: ...terface/AddOns/ElvUI_ToxiUI/Core/Functions/Color.lua:77: attempt to index field 'saturationBoost' (a boolean value)
[string "=[C]"]: ?
[string "@Interface/AddOns/ElvUI_ToxiUI/Core/Functions/Color.lua"]:77: in function `GenerateCache'
[string "@Interface/AddOns/ElvUI_ToxiUI/Modules/Themes/Gradients/Core.lua"]:103: in function `SettingsUpdate'
[string "@Interface/AddOns/ElvUI_ToxiUI/Modules/Themes/Gradients/Core.lua"]:130: in function `Enable'
[string "@Interface/AddOns/ElvUI_ToxiUI/Modules/Themes/Gradients/Core.lua"]:170: in function `callback'
[string "@Interface/AddOns/ElvUI_ToxiUI/Core/Functions/Event.lua"]:312: in function `ContinueAfter'
[string "@Interface/AddOns/ElvUI_ToxiUI/Core/Functions/Event.lua"]:351: in function `ContinueAfterElvUIUpdate'
[string "@Interface/AddOns/ElvUI_ToxiUI/Modules/Themes/Gradients/Core.lua"]:163: in function `callback'
[string "@Interface/AddOns/ElvUI_ToxiUI/Core/Functions/Event.lua"]:285: in function `ContinueOutOfCombat'
[string "@Interface/AddOns/ElvUI_ToxiUI/Modules/Themes/Gradients/Core.lua"]:162: in function <...ddOns/ElvUI_ToxiUI/Modules/Themes/Gradients/Core.lua:153>
[string "=(tail call)"]: ?
[string "@Interface/AddOns/ElvUI_ToxiUI/Core/Functions/Event.lua"]:252: in function <...terface/AddOns/ElvUI_ToxiUI/Core/Functions/Event.lua:250>
...
[string "@Interface/AddOns/ElvUI_ToxiUI/Core/Core.lua"]:128: in function `callback'
[string "@Interface/AddOns/ElvUI_ToxiUI/Core/Functions/Event.lua"]:312: in function `ContinueAfter'
[string "@Interface/AddOns/ElvUI_ToxiUI/Core/Functions/Event.lua"]:351: in function `ContinueAfterElvUIUpdate'
[string "@Interface/AddOns/ElvUI_ToxiUI/Core/Core.lua"]:104: in function <Interface/AddOns/ElvUI_ToxiUI/Core/Core.lua:102>
[string "@Interface/AddOns/ElvUI_ToxiUI/Core/Functions/Event.lua"]:379: in function <...terface/AddOns/ElvUI_ToxiUI/Core/Functions/Event.lua:374>
[string "=[C]"]: ?
[string "@Interface/AddOns/ElvUI_ToxiUI/Core/Functions/Event.lua"]:170: in function <...terface/AddOns/ElvUI_ToxiUI/Core/Functions/Event.lua:169>
[string "=[C]"]: ?
[string "@Interface/AddOns/ElvUI_ToxiUI/Core/Functions/Event.lua"]:173: in function `TriggerEvent'
[string "@Interface/AddOns/ElvUI_ToxiUI/Core/Functions/Event.lua"]:388: in function <...terface/AddOns/ElvUI_ToxiUI/Core/Functions/Event.lua:387>

Locals: (*temporary) = <function> defined =[C]:-1

ToxiUI Status Report

Type /tx status in game and paste a screenshot of it here. image

Screenshots

Screenshot 2024-07-15 090547

To reproduce

If this issue is describing a bug, include some steps to reproduce the behavior

  1. Enable Saturation boost before upgrading to 6.7.1
  2. Log in and see errors
Toxicom commented 3 months ago

Interesting, I wonder why it didn't break for me during development.. The reason this is happening because I changed the structure a bit, before it was:

{
  saturationBoost = true,
}

And now it's

{
  saturationBoost = {
    enabled = true,
  }
}

One way to fix it is to go to ToxiUI -> Reset and reset the ToxiUI settings. Another way would be to open your ElvUI_ToxiUI.lua file in SavedVariables and manually edit the config, but I don't recommend doing that.

Toxicom commented 3 months ago

Or you can wait till I release v6.7.2-beta.1 and see if that fixes the issue for you

somegituser2023 commented 3 months ago

I went ahead and hit the reset ( I havent done much at all customizing yet, just installed after 6 month break and new computer. ) the reset did work, the saturation Boost section is working and no more lua errors <3

Toxicom commented 3 months ago

Glad that fixed it. In case there are more users like that, I am releasing 6.7.2 that should correctly convert the saturationBoost to the new format in the database.