TipTac Reborn

TipTac Reborn

1M Downloads

lua error regarding buffs

frozn opened this issue ยท 1 comments

commented

From: WashedUpHasBeen

Thanks for the update attempts, still getting a few errors.

Message: Interface/AddOns/TipTac/ttStyle.lua:428: attempt to index local 'unitAuraInfo' (a nil value)
Time: Thu May  4 14:04:05 2023
Count: 1
Stack: Interface/AddOns/TipTac/ttStyle.lua:428: attempt to index local 'unitAuraInfo' (a nil value)
[string "@Interface/AddOns/TipTac/ttStyle.lua"]:428: in function `func'
[string "@Interface/FrameXML/AuraUtil.lua"]:46: in function 
[string "@Interface/FrameXML/AuraUtil.lua"]:65: in function `ForEachAura'
[string "@Interface/AddOns/TipTac/libs/LibFroznFunctions-1.0/LibFroznFunctions-1.0.lua"]:2092: in function `ForEachAura'
[string "@Interface/AddOns/TipTac/ttStyle.lua"]:425: in function `ModifyUnitTooltip'
[string "@Interface/AddOns/TipTac/ttStyle.lua"]:601: in function `?'
[string "@Interface/AddOns/TipTac/libs/LibFroznFunctions-1.0/LibFroznFunctions-1.0.lua"]:870: in function `FireGroupEvent'
[string "@Interface/AddOns/TipTac/ttCore.lua"]:2543: in function `SetUnitAppearanceToTip'
[string "@Interface/AddOns/TipTac/ttCore.lua"]:2646: in function `?'
[string "@Interface/AddOns/TipTac/libs/LibFroznFunctions-1.0/LibFroznFunctions-1.0.lua"]:870: in function `FireGroupEvent'
[string "@Interface/AddOns/TipTac/ttCore.lua"]:1407: in function `SetCurrentDisplayParams'
[string "@Interface/AddOns/TipTac/ttCore.lua"]:1294: in function 
...
[string "@Interface/SharedXML/Tooltip/TooltipDataHandler.lua"]:218: in function 
[string "=[C]"]: in function `SetAttribute'
[string "@Interface/SharedXML/Tooltip/TooltipDataHandler.lua"]:243: in function 
[string "@Interface/SharedXML/Tooltip/TooltipDataHandler.lua"]:389: in function 
[string "=[C]"]: in function `securecallfunction'
[string "@Interface/SharedXML/Tooltip/TooltipDataHandler.lua"]:336: in function 
[string "=(tail call)"]: ?
[string "=[C]"]: in function `SetUnit'
[string "@Interface/FrameXML/UnitFrame.lua"]:487: in function `UnitFrame_UpdateTooltip'
[string "@Interface/FrameXML/UnitFrame.lua"]:477: in function 
 
Locals: unitAuraInfo = nil
(*temporary) = 3
(*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 local 'unitAuraInfo' (a nil value)"
index = 3
LibFroznFunctions =  {
 CreateTextureMarkupWithAspectRatio =  defined @Interface/AddOns/TipTac/libs/LibFroznFunctions-1.0/LibFroznFunctions-1.0.lua:1772
 MixinDifferingObjects =  defined @Interface/AddOns/TipTac/libs/LibFroznFunctions-1.0/LibFroznFunctions-1.0.lua:763
 FormatText =  defined @Interface/AddOns/TipTac/libs/LibFroznFunctions-1.0/LibFroznFunctions-1.0.lua:420
 GetDifficultyColorForQuest =  defined @Interface/AddOns/TipTac/libs/LibFroznFunctions-1.0/LibFroznFunctions-1.0.lua:1194
 GetItemQualityColor =  defined @Interface/AddOns/TipTac/libs/LibFroznFunctions-1.0/LibFroznFunctions-1.0.lua:1160
 RegisterNewSlashCommands =  defined @Interface/AddOns/TipTac/libs/LibFroznFunctions-1.0/LibFroznFunctions-1.0.lua:1020
 IsTableEmpty =  defined @Interface/AddOns/TipTac/libs/LibFroznFunctions-1.0/LibFroznFunctions-1.0.lua:444
 CreateMarkupForClassIcon =  defined @Interface/AddOns/TipTac/libs/LibFroznFunctions-1.0/LibFroznFunctions-1.0.lua:1238
 GetDifficultyColorForUnit =  defined @Interface/AddOns/TipTac/libs/LibFroznFunctions-1.0/LibFroznFunctions-1.0.lua:1168
 UpdateUnitRecord =  defined @Interface/AddOns/TipTac/libs/LibFroznFunctions-1.0/LibFroznFunctions-1.0.
 
 
------------------------------------
 
Message: Interface/AddOns/TipTac/ttStyle.lua:428: attempt to index local 'unitAuraInfo' (a nil value)
Time: Thu May  4 14:04:08 2023
Count: 1
Stack: Interface/AddOns/TipTac/ttStyle.lua:428: attempt to index local 'unitAuraInfo' (a nil value)
[string "@Interface/AddOns/TipTac/ttStyle.lua"]:428: in function `func'
[string "@Interface/FrameXML/AuraUtil.lua"]:46: in function 
[string "@Interface/FrameXML/AuraUtil.lua"]:65: in function `ForEachAura'
[string "@Interface/AddOns/TipTac/libs/LibFroznFunctions-1.0/LibFroznFunctions-1.0.lua"]:2092: in function `ForEachAura'
[string "@Interface/AddOns/TipTac/ttStyle.lua"]:425: in function `ModifyUnitTooltip'
[string "@Interface/AddOns/TipTac/ttStyle.lua"]:601: in function `?'
[string "@Interface/AddOns/TipTac/libs/LibFroznFunctions-1.0/LibFroznFunctions-1.0.lua"]:870: in function `FireGroupEvent'
[string "@Interface/AddOns/TipTac/ttCore.lua"]:2543: in function `SetUnitAppearanceToTip'
[string "@Interface/AddOns/TipTac/ttCore.lua"]:2646: in function `?'
[string "@Interface/AddOns/TipTac/libs/LibFroznFunctions-1.0/LibFroznFunctions-1.0.lua"]:870: in function `FireGroupEvent'
[string "@Interface/AddOns/TipTac/ttCore.lua"]:1407: in function `SetCurrentDisplayParams'
[string "@Interface/AddOns/TipTac/ttCore.lua"]:1294: in function 
...
[string "@Interface/SharedXML/Tooltip/TooltipDataHandler.lua"]:162: in function 
[string "@Interface/SharedXML/Tooltip/TooltipDataHandler.lua"]:182: in function 
[string "@Interface/SharedXML/Tooltip/TooltipDataHandler.lua"]:218: in function 
[string "=[C]"]: in function `SetAttribute'
[string "@Interface/SharedXML/Tooltip/TooltipDataHandler.lua"]:243: in function 
[string "@Interface/SharedXML/Tooltip/TooltipDataHandler.lua"]:389: in function 
[string "=[C]"]: in function `securecallfunction'
[string "@Interface/SharedXML/Tooltip/TooltipDataHandler.lua"]:336: in function `ProcessInfo'
[string "@Interface/FrameXML/GameTooltip.lua"]:1092: in function `SetWorldCursor'
[string "@Interface/FrameXML/UIParent.lua"]:1498: in function 
 
Locals: unitAuraInfo = nil
(*temporary) = 3
(*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 local 'unitAuraInfo' (a nil value)"
index = 3
LibFroznFunctions = 
 {
 CreateTextureMarkupWithAspectRatio =  defined @Interface/AddOns/TipTac/libs/LibFroznFunctions-1.0/LibFroznFunctions-1.0.lua:1772
 MixinDifferingObjects =  defined @Interface/AddOns/TipTac/libs/LibFroznFunctions-1.0/LibFroznFunctions-1.0.lua:763
 FormatText =  defined @Interface/AddOns/TipTac/libs/LibFroznFunctions-1.0/LibFroznFunctions-1.0.lua:420
 GetDifficultyColorForQuest =  defined @Interface/AddOns/TipTac/libs/LibFroznFunctions-1.0/LibFroznFunctions-1.0.lua:1194
 GetItemQualityColor =  defined @Interface/AddOns/TipTac/libs/LibFroznFunctions-1.0/LibFroznFunctions-1.0.lua:1160
 RegisterNewSlashCommands =  defined @Interface/AddOns/TipTac/libs/LibFroznFunctions-1.0/LibFroznFunctions-1.0.lua:1020
 IsTableEmpty =  defined @Interface/AddOns/TipTac/libs/LibFroznFunctions-1.0/LibFroznFunctions-1.0.lua:444
 CreateMarkupForClassIcon =  defined @Interface/AddOns/TipTac/libs/LibFroznFunctions-1.0/LibFroznFunctions-1.0.lua:1238
 GetDifficultyColorForUnit =  defined @Interface/AddOns/TipTac/libs/LibFroz

Source: https://legacy.curseforge.com/wow/addons/tiptac-reborn?comment=291

commented

Even though I haven't encountered this error yet, I have added a check when processing the buffs in case there is no information about it. So should be fixed now and will be included in the next release.