dandruff / xCT

A light weight scrolling combat text implementation.
53 stars 22 forks source link

[Bug]: LOA Error #234

Open rionshin opened 7 months ago

rionshin commented 7 months ago

Is there an existing issue for this?

WoW version

10.2.5.53007

xCT+ version

4.7.2.10.0.2

What happened?

When login LUA error is generated

Related Errors

2x xCT+/modules/combattext.lua:316: attempt to concatenate local 'resource' (a nil value)
[string "@xCT+/modules/combattext.lua"]:316: in function <xCT+/modules/combattext.lua:308>
[string "@xCT+/modules/combattext.lua"]:1836: in function `SpellEnergize'
[string "@xCT+/modules/combattext.lua"]:1966: in function `func'
[string "@xCT+/libs/xCombatParser-1.0-2/xCombatParser-1.0.lua"]:365: in function <...ns/xCT+/libs/xCombatParser-1.0/xCombatParser-1.0.lua:205>

Locals:
resource = nil
amount = 1
(*temporary) = <table> {
 fontShadowOffsetX = 2
 megaDamage = true
 scrollableLines = 10
 disableResource_FURY = false
 enableFontShadow = true
 disableResource_PAIN = false
 secondaryFrame = 0
 fontOutline = "2OUTLINE"
 enableScrollable = false
 disableResource_RUNES = true
 disableResource_RAGE = false
 Width = 128
 fontJustify = "CENTER"
 font = "2002"
 enableFade = true
 showEnergyType = true
 disableResource_HOLY_POWER = false
 fontSize = 17
 disableResource_RUNIC_POWER = false
 disableResource_MAELSTROM_POWER = true
 customColor = false
 visibilityTime = 5
 disableResource_SOUL_SHARDS = false
 disableResource_LUNAR_POWER = true
 enabledFrame = false
 disableResource_ENERGY = false
 fontColor = <table> {
 }
 disableResource_ARCANE_CHARGES = false
 scrollableInCombat = false
 fontShadowColor = <table> {
 }
 insertText = "bottom"
 disableResource_INSANITY_POWER = false
 enableCustomFade = true
 disableResource_MANA = false
 fadeTime = 0.300000
 alpha = 100
 disableResource_CHI_POWER = true
 Y = 368
 X = -364
 colors = <table> {
 }
 showEnergyGains = true
 Height = 96
 fontShadowOffsetY = -2
 disableResource_FOCUS = false
 showPeriodicEnergyGains = true
}
(*temporary) = "disableResource_"
(*temporary) = nil
(*temporary) = "attempt to concatenate local 'resource' (a nil value)"
x = <table> {
 SetDefaultModuleLibraries = <function> defined @AutoCombatLogger/Libs/AceAddon-3.0/AceAddon-3.0.lua:363
 runeIcons = <table> {
 }
 UpdateComboPointOptions = <function> defined @xCT+/core.lua:872
 OnSpamUpdate = <function> defined @xCT+/modules/frames.lua:602
 CombatStateChanged = <function> defined @xCT+/core.lua:1712
 MigratePrint = <function> defined @xCT+/core.lua:260
 EnableModule = <function> defined @AutoCombatLogger/Libs/AceAddon-3.0/AceAddon-3.0.lua:328
 RestoreAllDefaults = <function> defined @xCT+/modules/frames.lua:1266
 baseName = "xCT+"
 IterateEmbeds = <function> defined @AutoCombatLogger/Libs/AceAddon-3.0/AceAddon-3.0.lua:438
 EndConfigMode = <function> defined @xCT+/modules/frames.lua:917
 Clear = <function> defined @xCT+/modules/frames.lua:309
 Printf = <function> defined @AutoCombatLogger/Libs/AceConsole-3.0/AceConsole-3.0.lua:65
 CombatLogEvent = <function> defined @xCT+/modules/combattext.lua:1938
 SetDefaultModulePrototype = <function> defined @AutoCombatLogger/Libs/AceAddon-3.0/AceAddon-3.0.lua:405
 player = <table> {
 }
 defaultModuleState = true
 EndTestMode = <function> defined @xCT+/modules/frames.lua:1253
 GenerateColorOptions = <function> defined @xCT+/core.lua:1542
 DisableModule = <function> defined @AutoCombatLogger/Libs/AceAddon-3.0/AceAddon-3.0.lua:346
 Abbreviate = <function> defined @xCT+/modules/frames.lua:336
 GetArgs = <function> defined @AutoCombatLogger/Libs/AceConsole-3.0/AceConsole-3.0.lua:140
 spellCache = <table> {
 }
 FrameTitles = <table> {
 }
 LoadAlignmentGrid = <function> defined @xCT+/modules/grid.lua:23
 db = <table> {
 }
 ToggleConfigMode = <function> defined @xCT+/modules/frames.lua:990
 QuickClassFrameUpdate = <function> defined @xCT+/modules/combattext.lua:725
 SetEnabledState = <function> defined @AutoCombatLogger/Libs/AceAddon-3.0/AceAddon-3.0.lua:420
 enabledState = true
 UpdateCombatTextEvents = <function> defined @xCT+/modules/combattext.lua:139
 EnableFrameScrolling = <function> defined @xCT+/modules/frames.lua:287
 OnCombatTextEvent = <function> defined @xCT+/modules/combattext.lua:540
 UpdatePlayer = <function> defined @xCT+/modules/combattext.lua:111
 IterateModules = <function> defined @AutoCombatLogger/Libs/AceAddon-3.0/AceAddon-3.0.lua:433
 events = <table> {
 }
 UpdateSpamSpells = <functi
Cimplex commented 5 months ago

Looking at it further, but this is gonna help solve it: https://github.com/Gethe/wow-ui-source/blob/6290f500a1795e13128c1983ea96efbfc2acd293/Interface/AddOns/Blizzard_CombatText/Blizzard_CombatText.lua#L288