TipTac Reborn

TipTac Reborn

1M Downloads

Currency Typ Lua Error

Closed this issue ยท 5 comments

commented

Describe the bug

212x TipTacItemRef/ttItemRef.lua:1095: Usage:GetCurrencyLink(currencyType, currencyAmount)
[TipTacItemRef/ttItemRef.lua]:1095: in function <TipTacItemRef/ttItemRef.lua:1093>
[C]: in function 'SetCurrencyByID'
[Baganator/ItemViewCommon/CurrencyBar.lua]:119: in function <...faceBaganator/ItemViewCommon/CurrencyBar.lua:117>

Locals:
self = GameTooltip {
BottomLeftCorner = Texture {
}
owner = QuestieFrame1093 {
}
RightEdge = Texture {
}
questOrder =

{
}
manualOrder =
{
}
numMoneyFrames = 2
PixelSnapDisabled = true
ShownAsMapIcon = false
TopRightCorner = Texture {
}
backdropInfo =
{
}
ttIcon = Texture {
}
updateTooltip = 0.159000
TopEdge = Texture {
}
ttCount = FontString {
}
CIMI_tooltipWritten = false
LeftEdge = Texture {
}
BottomEdge = Texture {
}
npcAndObjectOrder =
{
}
miniMapIcon = false
ttWorkaroundForFirstMouseoverStatus = 0
hasMoney = 1
TopLeftCorner = Texture {
}
comparing = false
BottomOverlay = Texture {
}
TopOverlay = Texture {
}
NineSlice = Frame {
}
shoppingTooltips =
{
}
BottomRightCorner = Texture {
}
StatusBar = GameTooltipStatusBar {
}
Center = Texture {
}
needsReset = true
}
currencyID = 395
quantity = nil
cfg =
{
fontFace = "Fonts\FRIZQT
_.TTF"
classification_elite = "|rLevel %s (Elite)"
tipBackdropEdge = "Interface\Tooltips\UI-Tooltip-Border"
showMount = false
if_showKeystoneTimeLimit = false
powerBar = false
fontFlags = ""
showAuraCooldown = false
colorSameGuild =
{
}
tipBorderColor =
{
}
noCooldownCount = false
colorLevel =
{
}
classification_rare = "|rLevel %s (Rare)"
colorGuildByReaction = true
optionsBottom = 596.269714
t_talentFormat = 2
reactColoredBackdrop = false
classification_trivial = "|rLevel ~%s"
colorRace =
{
}
minimapConfig =
{
}
pixelPerfectBackdrop = false
if_showNpcId = false
if_showKeystoneRewardLevel = false
top = 338.253723
gradientTip = false
t_talentOnlyInParty = false
showGuildMemberNote = false
fontSizeDelta = 2
showCurrentUnitSpeed = false
t_showTalentIcon = false
iconFaction = false
overrideFade = false
optionsLeft = 354.769623
reactIcon = false
t_showTalents = true
tipBackdropBG = "Interface\Tooltips\UI-Tooltip-Background"
tipColor =
{
}
hideDefaultBar = false
t_gearScoreAlgorithm = 2
if_modifyKeystoneTips = false
classification_normal = "|rLevel %s"
t_showRoleIcon = false
reactColoredBorder = false
classification_minus = "|rLevel -%s"
iconCombat = false
fontSize = 12
if_showKeystoneAffixInfo = false
backdropEdgeSize = 16
enableBars = false
classification_worldboss = "|rLevel %s (Boss)"
hideWorldTips = false
auraSize = 20
classColoredBorder = false
showMinimapIcon = false
colorNameByClass = false
iconClass = false
t_enable = true
if_showSpellIdAndRank = true
modifyFonts = true
reactText = false
healthBar = false
version_TipTac_Config = "25.07.15"
showGuildOfficerNote = false
left = 1836.476318
classification_rareelite = "|rLevel %s (Rare Elite)"
backdropInsets = 5
manaBar = false
guildRankFormat = "title"
aurasAtBottom = false
}
tipDataAdded =
{
}
LinkTypeFuncs =
{
}

Steps to Reproduce

No response

Expected behavior

No response

Additional context

No response

Version of TipTac Reborn

25.07.15

Flavor/Version of WoW

5.5.0

commented

Getting the same error when hovering over any currency shown on bags (using a different bag addon than OP).

commented

Its to do with looting a Sigil of Power

1x TipTacItemRef/ttItemRef.lua:1095: Usage:GetCurrencyLink(currencyType, currencyAmount)
[TipTacItemRef/ttItemRef.lua]:1095: in function <TipTacItemRef/ttItemRef.lua:1093>
[C]: in function 'SetCurrencyByID'
[*LootFrame.xml:402_OnEnter]:2: in function <[string "*LootFrame.xml:402_OnEnter"]:1>

Locals:
self = GameTooltip {
 BottomLeftCorner = Texture {
 }
 NRCSeparator = Texture {
 }
 ttWorkaroundForFirstMouseoverStatus = 0
 RightEdge = Texture {
 }
 RatingBusterKeybindHooked = true
 NRCSeparator2 = Texture {
 }
 numMoneyFrames = 1
 ttIcon = Texture {
 }
 RatingBusterOnHideEnabled = false
 updateTooltip = 0.014000
 TopEdge = Texture {
 }
 ttCount = FontString {
 }
 BottomRightCorner = Texture {
 }
 LeftEdge = Texture {
 }
 hasMoney = 1
 TopLeftCorner = Texture {
 }
 comparing = false
 TopOverlay = Texture {
 }
 TopRightCorner = Texture {
 }
 NineSlice = Frame {
 }
 shoppingTooltips = <table> {
 }
 NITSeparator2 = Texture {
 }
 __hasCounters = false
 NITSeparator = Texture {
 }
 BottomOverlay = Texture {
 }
 Center = Texture {
 }
 backdropInfo = <table> {
 }
 needsReset = true
 BottomEdge = Texture {
 }
}
currencyID = 697
quantity = nil
cfg = <table> {
 nameType = "normal"
 showRealm = "none"
 classification_elite = "+%s "
 if_showCurrencyId = false
 tipBackdropEdge = "Interface\AddOns\Quartz\textures\Tooltip-BigBorder"
 aurasAtBottom = true
 backdropEdgeSize = 4
 showMountText = false
 hideFactionText = true
 powerBar = false
 tipBorderColor = <table> {
 }
 showMountSpeed = true
 enableColorFaction = false
 if_iconAnchor = "TOPRIGHT"
 if_runeforgePowerColoredBorder = false
 if_transmogSetQualityBorder = false
 if_showItemId = true
 enableChatHoverTips = true
 left = 1416.501587
 hideAllTipsInCombat = false
 enableCustomClassColors = false
 manaBar = false
 gradientColor = <table> {
 }
 minimapConfig = <table> {
 }
 if_showNpcId = false
 targetYouText = "<<YOU>>"
 if_conduitQualityBorder = false
 top = 859.644409
 gradientTip = true
 if_transmogAppearanceItemQualityBorder = false
 optionsBottom = 352.787811
 anchorFrameUnitType = "normal"
 if_battlePetAbilityColoredBorder = false
 hidePvpText = true
 version_TipTac_Config = "25.07.15"
 showCurrentUnitSpeed = false
 classification_trivial = "~%s "
 showMount = false
 if_currencyQualityBorder = false
 modifyFonts = true
 selfAurasOnly = true
 reactText = false
 optionsLeft = 733.155579
 hideUFTipsInCombat = false
 if_showSpellIdAndRank = true
 showTarget = "none"
 if_smartIcons = false
 tipBackdropBG = "Interface\Buttons\WHITE8X8"
 t_gearScoreAlgorithm = 2
 if_iconOffsetX = -3.500000
 hideDefaultBar = true
 healthBar = false
 if_battlePetQualityBorder = false
 if_modifyKeystoneTips = false
 if_showItemEnchantInfo = false
 mouseOffsetY = 5
 classification_normal = "%s "
 tipColor = <table> {
 }
 classification_rareelite = "+%s|r (Rare) "
 showHiddenTipsOnShift = true
 if_iconSize = 24
 factionText = false
 showTTguildAfter = false
 if_iconTooltipAnchor = "TOPRIGHT"
 if_borderlessIcons = true
 enableBackdrop = true
 fontSize = 10
 anchorWorldTipType = "normal"
 if_showKeystoneTimeLimit = false
 backdropInsets = 1
 showBuffs = false
 iconRaid = false
 showTargetedBy = false
 enableAnchorOverrideFrameTipInCombat = true
 classification_minus = "-%s "
 anchorFrameTipType = "mouse"
 if_showIcon = true
 classification_worldboss = "%s|r (Boss) "
 if_showKeystoneAffixInfo = false
 iconAnchor = "TOPLEFT"
 showMountIcon = false
 showMinimapIcon = false
 colorNameByClass = true
 iconClass = false
 t_enable = false
 classification_rare = "%s|r (Rare) "
 if_showKeystoneRewardLevel = false
 mouseOffsetX = 5
 if_showItemLevel = true
 showGuildRank = true
 if_enable = true
 if_transmogIllusionColoredBorder = false
 anchorFrameTipPoint = "BOTTOMLEFT"
 if_showAuraSpellIdAndRank = true
 showDebuffs = false
 guildRankFormat = "title"
 if_azeriteEssenceQualityBorder = false
}
tipDataAdded = <table> {
}
LinkTypeFuncs = <table> {
}
commented

Its to do with looting a Sigil of Power

Nothing to do with that specific item or looting. The error pops every time a tooltip should be generated for any currency outside the Currency tab (e.g. shown on backpack).

commented

Thanks for reporting this issue! ๐Ÿ‘

It seems that an empty currencyAmount when calling function GetCurrencyLink(currencyID, currencyAmount) won't be interpreted as currencyAmount = 0 any longer:

TWW: /run print(C_CurrencyInfo.GetCurrencyLink(697, nil)) โ†’ works
MoPC: /run print(GetCurrencyLink(697, nil)) โ†’ doesn't work, has to be /run print(GetCurrencyLink(697, 0)) instead

Fix will be included in the next release.

commented

I was getting this error on Retail until 11.2 but it seems to have stopped so I guess they fixed something there.