Tooltip not working
Aergernis opened this issue ยท 10 comments
the tooltip when hovering over nodes on map or minimap dosen't work correctly. it shows the node name within the tooltipframe, but the rest from last visited onward is not in the frame bur just plain text nearby the frame. it also shows lua error :
`1x GatherLite\methods.lua:459: attempt to index local 'classColor' (a nil value)
GatherLite\methods.lua:459: in function <GatherLite\methods.lua:440>
Locals:
classColor = nil
(*temporary) = defined =[C]:-1
(*temporary) = GatherLiteTooltip {
0 =
updateTooltip = 0.200000
needsReset = true
BottomOverlay = {
}
TopOverlay = {
}
}
(*temporary) = "Found by:"
(*temporary) = "|cffffffff30/08/2019 - 07:34:29|r"
(*temporary) =
(*temporary) = "/"
(*temporary) = "08"
(*temporary) = "/"
(*temporary) = "2019"
(*temporary) = " - "
(*temporary) = "07"
(*temporary) = ":"
(*temporary) = "34"
(*temporary) = ":"
(*temporary) = "29"
(*temporary) = "|r"
(*temporary) = "attempt to index local 'classColor' (a nil value)"
f = miningworldmap29 {
0 =
texture = {
}
}
GatherLite =
spellIDs =
}
drawWorldmap = defined @GatherLite\methods.lua:327
findSpell = defined @GatherLite\methods.lua:69
updateMiniMapPosition = defined @GatherLite\settings.lua:300
tablelength = defined @GatherLite\methods.lua:20
createWorldmapNode = defined @GatherLite\methods.lua:489
debug = defined @GatherLite\methods.lua:13
tooltip = GatherLiteTooltip {
}
RegisterCallback = defined @AtlasLootClassic\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:90
classColours =
}
gatherSpellRanges =
}
needMapUpdate = false
nodes =
}
insertDatabaseNode = defined @GatherLite\methods.lua:226
hideTooltip = defined @GatherLite\GatherLite.lua:64
TimeSinceLastUpdate = 0.663000
removeWorldmapNodes = defined @GatherLite\methods.lua:538
ParseSentData = defined @GatherLite\methods.lua:547
migrate = defined @GatherLite\methods.lua:606
IsNodeInRange = defined @GatherLite\methods.lua:89
callbacks =
}
checkNodePositions = defined @GatherLite\methods.lua:522
frames =
}
minimap = GatherLite_MinimapButton {
}
locale = defined @GatherLite\methods.lua:49
findSpellType = defined @GatherLite\methods.lua:54
createMinimapNode = defined @GatherLite\methods.lua:504
showTooltip = defined @GatherLite\GatherLite.lua:50
UpdateInterval = 1
createFrame = defined @GatherLite\methods.lua:471
findExistingNode = defined @GatherLite\methods.lua:99
leadingZeros = defined @GatherLite\methods.lua:430
defaultConfigs =
}
showingTooltip = false
version = "@Project-Version@"
updateDatabaseNode = defined @GatherLite\methods.lua:288
foundNode = defined @GatherLite\methods.lua:121
WorldMapOpen = true
isClassic = true
mainFrame = {
}
tracker =
}
createNodeTooltip = defined @GatherLite\methods.lua:439
print = defined @GatherLite\methods.lua:8
minimapFrame = {
}
CopyDefaults = defined @GatherLite\methods.lua:31
UnregisterCallback = defined @AtlasLootClassic\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:153
drawMinimap = defined @GatherLite\methods.lua:378
name = "GatherLite"
}
node =
GUID = "Player-4440-00B137A1"
type = "mining"
date =
}
player =
}
name = "Zinnvorkommen"
position =
}
target = "zinnvorkommen"
loot =
}
icon = 135235
spellID = 2576
}
lootTable = false
`
Tooltip looks different now from old and new data.
https://i.imgur.com/97dhGde.png
https://i.imgur.com/X9rX2qs.png
Yes, still a thing after /reload. Only for old nodes the tooltip is broken (gathered with old version installed).
as a quick fix i edited the gatherlite.lua in savedvariables for every node so that the player array has now class, race, name and realm not only realm.