TipTac Reborn

TipTac Reborn

1M Downloads

Error when mousing over other players

Bronsin opened this issue ยท 7 comments

commented

I get the below error when I mouse over other players. Happens on all characters, multiple classes. Just started happening today.
 
173x TipTac/ttStyle.lua:562: attempt to index a nil value
[string "@TipTac/ttStyle.lua"]:562: in function ModifyUnitTooltip' [string "@TipTac/ttStyle.lua"]:764: in function ?'
[string "@TipTac/libs/LibFroznFunctions-1.0-19/LibFroznFunctions-1.0.lua"]:1038: in function FireGroupEvent' [string "@TipTac/ttCore.lua"]:2814: in function SetUnitAppearanceToTip'
[string "@TipTac/ttCore.lua"]:2917: in function ?' [string "@TipTac/libs/LibFroznFunctions-1.0-19/LibFroznFunctions-1.0.lua"]:1038: in function FireGroupEvent'
[string "@TipTac/ttCore.lua"]:1640: in function SetCurrentDisplayParams' [string "@TipTac/ttCore.lua"]:1515: in function <TipTac/ttCore.lua:1514> [string "@TipTac/libs/LibFroznFunctions-1.0-19/LibFroznFunctions-1.0.lua"]:344: in function <...libs/LibFroznFunctions-1.0/LibFroznFunctions-1.0.lua:342> [string "=(tail call)"]: ? [string "=[C]"]: in function securecallfunction'
[string "@SharedXML/Tooltip/TooltipDataHandler.lua"]:162: in function <SharedXML/Tooltip/TooltipDataHandler.lua:157>
[string "@SharedXML/Tooltip/TooltipDataHandler.lua"]:182: in function <SharedXML/Tooltip/TooltipDataHandler.lua:178>
[string "@SharedXML/Tooltip/TooltipDataHandler.lua"]:218: in function <SharedXML/Tooltip/TooltipDataHandler.lua:208>
[string "=[C]"]: in function SetAttribute' [string "@SharedXML/Tooltip/TooltipDataHandler.lua"]:243: in function <SharedXML/Tooltip/TooltipDataHandler.lua:236> [string "@SharedXML/Tooltip/TooltipDataHandler.lua"]:389: in function <SharedXML/Tooltip/TooltipDataHandler.lua:339> [string "=[C]"]: in function securecallfunction'
[string "@SharedXML/Tooltip/TooltipDataHandler.lua"]:336: in function ProcessInfo' [string "@FrameXML/GameTooltip.lua"]:1094: in function SetWorldCursor'
[string "@FrameXML/UIParent.lua"]:1527: in function <FrameXML/UIParent.lua:1450>
[string "=[C]"]: ?

Locals:
self =

{
GenerateTargetLines = defined @TipTac/ttStyle.lua:203
OnTipResetCurrentDisplayParams = defined @TipTac/ttStyle.lua:767
OnConfigLoaded = defined @TipTac/ttStyle.lua:731
GenerateNpcLines = defined @TipTac/ttStyle.lua:452
GeneratePetLines = defined @TipTac/ttStyle.lua:420
OnTipSetCurrentDisplayParams = defined @TipTac/ttStyle.lua:737
GeneratePlayerLines = defined @TipTac/ttStyle.lua:341
ModifyUnitTooltip = defined @TipTac/ttStyle.lua:474
GenerateTargetedByLines = defined @TipTac/ttStyle.lua:229
OnTipStyle = defined @TipTac/ttStyle.lua:745
HighlightTipTacDeveloper = defined @TipTac/ttStyle.lua:261
RemoveUnwantedLinesFromTip = defined @TipTac/ttStyle.lua:151
}
tip = GameTooltip {
SetATTReferenceForTexture = defined @AllTheThings/src/UI/Game Tooltip.lua:272
ItemTooltip = Frame {
}
SetHyperlink = defined =[C]:-1
SetAzeriteEssence = defined =[C]:-1
SetVoidDepositItem = defined =[C]:-1
ClearATTReferenceTexture = defined @AllTheThings/src/UI/Game Tooltip.lua:265
AllTheThingsOnTooltipClearedHook = true
SetTraitEntry = defined @SharedXML/Tooltip/TooltipDataHandler.lua:539
ClearBackdrop = defined =[C]:-1
SetLootCurrency = defined @SharedXML/Tooltip/TooltipDataHandler.lua:539
SetWorldCursor = defined @FrameXML/GameTooltip.lua:1076
SetLootItem = defined =[C]:-1
GetSpell = defined @FrameXML/GameTooltip.lua:1114
SetQuestLogSpecialItem = defined @SharedXML/Tooltip/TooltipDataHandler.lua:539
SetRecipeReagentItem = defined @Altoholic/Services/Tooltip.lua:621
SetMerchantItem = defined =[C]:-1
BottomOverlay = Texture {
}
SetSocketedRelic = defined @SharedXML/Tooltip/TooltipDataHandler.lua:539
ProcessInfo = defined @SharedXML/Tooltip/TooltipDataHandler.lua:335
NineSlice = Frame {
}
SetInventoryItem = defined =[C]:-1
TopEdge = Texture {
}
SetUnitDebuffByAuraInstanceID = defined =[C]:-1
GetProcessingTooltipInfo = defined @SharedXML/Tooltip/TooltipDataHandler.lua:488
SetBackdropColor = defined =[C]:-1
LeftEdge = Texture {
}
AddLineDataText = defined @SharedXML/Tooltip/TooltipDataHandler.lua:429
AppendInfo = defined @SharedXML/Tooltip/TooltipDataHandler.lua:525
SetSpellBookItem = defined =[C]:-1
textLeft1Font = "GameTooltipHeaderText"
AppendInfoWithSpacer = defined @SharedXML/Tooltip/TooltipDataHandler.lua:531
SetShapeshift = defined @SharedXML/Tooltip/TooltipDataHandler.lua:539
SetArtifactPowerByID = defined @SharedXML/Tooltip/TooltipDataHandler.lua:539
textRight2Font = "GameTooltipText"
TopOverlay = Texture {
}
SetSocketedItem = defined @SharedXML/Tooltip/TooltipDataHandler.lua:539
SetUnitDebuff = defined =[C]:-1
SetWorldLootObject = defined @SharedXML/Tooltip/TooltipDataHandler.lua:539
SetMountBySpellID = defined =[C]:-1
SetBorderBlendMode = defined @SharedXML/Backdrop.lua:266
SetTrainerService = defined =[C]:-1
TextLeft1 = GameTooltipTextLeft1 {
}
GetTooltipData = defined @SharedXML/Tooltip/TooltipDataHandler.lua:505
IsTooltipType = defined @SharedXML/Tooltip/TooltipDataHandler.lua:509
OnBackdropSizeChanged = defined @SharedXML/Backdrop.lua:182
ClearHandlerInfo = defined @SharedXML/Tooltip/TooltipD

commented

It's indeed C_ChallengeMode.GetDungeonScoreRarityColor that now returns nil since today's update. I'm also trying to figure it out, in the meantime you only need to uncheck the option "Show Mythic+ Dungeon Score" option in General, no need to comment out the code

commented

Ran into the same issue. Looks like GetDungeonScoreRarityColor isnt working? Super weird

Anyway, in the interim I just disabled these lines in ttStyle.lua

commented

Thanks for reporting this! ๐Ÿ‘

It's now considered that C_ChallengeMode.GetDungeonScoreRarityColor() to determine the mythic+ dungeon score color may return nil:

if (mythicPlusDungeonScore > 0) then
local mythicPlusDungeonScoreColor = C_ChallengeMode.GetDungeonScoreRarityColor(mythicPlusDungeonScore) or TT_COLOR.text.default;
if (lineInfo:GetCount() > 0) then
lineInfo:Push("\n");
end
lineInfo:Push("|cffffd100");
lineInfo:Push(TT_MythicPlusDungeonScore:format(mythicPlusDungeonScoreColor:WrapTextInColorCode(mythicPlusDungeonScore) .. (mythicPlusBestRunLevel and " |cffffff99(+" .. mythicPlusBestRunLevel .. ")|r" or "")));
end

Will be included in the next release.

commented

uncheck this and everything will be back to normal
image

commented

"Save link as" doesn't work for downloading individual files. You have to navigate to "ttStyle.lua" and click on it (https://github.com/frozn/TipTac/blob/main/TipTac/modules/ttStyle.lua). On the screen now displaying the contents of "ttStyle.lua" you have to click on button "Download raw file":

image

commented

Awesome, thank you very much.

"Save link as" doesn't work for downloading individual files. You have to navigate to "ttStyle.lua" and click on it (https://github.com/frozn/TipTac/blob/main/TipTac/modules/ttStyle.lua). On the screen now displaying the contents of "ttStyle.lua" you have to click on button "Download raw file":

image

Awesome, thank you very much.

commented

Not sure if it makes a difference, I was getting the same error, but when I moused over items in my bag as well. I updated my ttStyle.lua file using a copy of the one above ("Save link as" and overwrote the one in the main directory) with what I assumed contained the fixes in it. I'm now getting the following errors when I log into the game. The addon seems to work fine, just keep getting errors if I log out to switch characters and such. Thanks.

1x TipTac/ttStyle.lua:7: unexpected symbol near '<'

Locals:

2x TipTac/ttStyle.lua:1 TipTac/ttStyle.lua:7: unexpected symbol near '<'