Closed Elnarfim closed 8 months ago
Could you post the actual error with the stacktrace?
I'm sorry I misunderstood what makes trouble 2 days ago Now I've found the solution. Just pass afflicted soul's aura ids in the code like below
local function addFromData(tooltip, data, kind)
if kind == kinds.unit and data.guid then
local id = tonumber(data.guid:match("-(%d+)-%x+$"), 10)
if id and data.guid:match("%a+") ~= "Player" then addLine(tooltip, id, kind) end
elseif data.id then
if kind == kinds.spell and (data.id == 409465 or data.id == 409470 or data.id == 409472) then
return
end
addLine(tooltip, data.id, kind)
end
end
Forget the first thing and I don't have its stacktrace because no longer errors for me now
Could you post the actual error with the stacktrace?
345x idTip/idTip.lua:55: calling 'GetName' on bad self (Usage: local name = self:GetName())
[string "=[C]"]: in function `GetName'
[string "@idTip/idTip.lua"]:55: in function
[string "@idTip/idTip.lua"]:117: in function
[string "@idTip/idTip.lua"]:134: in function
[string "=[C]"]: in function `securecallfunction'
[string "@SharedXML/Tooltip/TooltipDataHandler.lua"]:162: in function
[string "@SharedXML/Tooltip/TooltipDataHandler.lua"]:179: in function
[string "@SharedXML/Tooltip/TooltipDataHandler.lua"]:218: in function
[string "=[C]"]: in function `SetAttribute'
[string "@SharedXML/Tooltip/TooltipDataHandler.lua"]:243: in function
[string "@SharedXML/Tooltip/TooltipDataHandler.lua"]:389: in function
[string "=[C]"]: in function `securecallfunction'
[string "@SharedXML/Tooltip/TooltipDataHandler.lua"]:336: in function
[string "=[C]"]: in function `ProcessInfo'
[string "@SharedXML/Tooltip/TooltipDataHandler.lua"]:544: in function `setFunction'
[string "@Blizzard_NamePlates/Blizzard_NamePlates.lua"]:860: in function <...eBlizzard_NamePlates/Blizzard_NamePlates.lua:853>
Locals:
(*temporary) = NamePlateTooltip {
0 =
SetQuestPartyProgress = defined @SharedXML/Tooltip/TooltipDataHandler.lua:539
ProcessLineData = defined @SharedXML/Tooltip/TooltipDataHandler.lua:410
processingInfo = {
}
infoList =
{ }
SetPvpTalent = defined @SharedXML/Tooltip/TooltipDataHandler.lua:539
SetRuneforgeResultItem = defined @SharedXML/Tooltip/TooltipDataHandler.lua:539
HasDataInstanceID = defined @SharedXML/Tooltip/TooltipDataHandler.lua:514
SetUnit = defined @SharedXML/Tooltip/TooltipDataHandler.lua:539
SetAzeriteEssence = defined @SharedXML/Tooltip/TooltipDataHandler.lua:539
TinyHookScript = defined @TinyTooltip/Core.lua:523
SetTotem = defined @SharedXML/Tooltip/TooltipDataHandler.lua:539
SetVoidWithdrawalItem = defined @SharedXML/Tooltip/TooltipDataHandler.lua:539
style = Frame {
}
updateTooltipTimer = 0.200000
StatusBar = NamePlateTooltipStatusBar {
}
SetInfoBackdropStyle = defined @SharedXML/Tooltip/TooltipDataHandler.lua:492
SetBuybackItem = defined @SharedXML/Tooltip/TooltipDataHandler.lua:539
GetPrimaryTooltipData = defined @SharedXML/Tooltip/TooltipDataHandler.lua:499
SetSocketGem = defined @SharedXML/Tooltip/TooltipDataHandler.lua:539
TextRight1 = NamePlateTooltipTextRight1 {
}
SetEnhancedConduit = defined @SharedXML/Tooltip/TooltipDataHandler.lua:539
RefreshData = defined @FrameXML/GameTooltip.lua:1055
SetLootCurrency = defined @SharedXML/Tooltip/TooltipDataHandler.lua:539
SetSlottedKeystone = defined @SharedXML/Tooltip/TooltipDataHandler.lua:539
SetWorldCursor = defined @FrameXML/GameTooltip.lua:1074
SetLootItem = defined @SharedXML/Tooltip/TooltipDataHandler.lua:539
SetPetAction = defined @SharedXML/Tooltip/TooltipDataHandler.lua:539
GetSpell = defined @FrameXML/GameTooltip.lua:1112
SetOwnedItemByID = defined @SharedXML/Tooltip/TooltipDataHandler.lua:539
SetItemKey = defined @SharedXML/Tooltip/TooltipDataHandler.lua:539
SetQuestLogSpecialItem = defined @SharedXML/Tooltip/TooltipDataHandler.lua:539
supportsDataRefresh = true
SetEquipmentSet = defined @SharedXML/Tooltip/TooltipDataHandler.lua:539
SetRecipeReagentItem = defined @SharedXML/Tooltip/TooltipDataHandler.lua:539
SetQuestCurrency = defined @SharedXML/Tooltip/TooltipDataHandler.lua:539
SetTransmogrifyItem = defined @SharedXML/Tooltip/TooltipDataHandler.lua:539
SetWeeklyReward = defined @SharedXML/Tooltip/TooltipDataHandler.lua:539
SetMerchantItem = defined @SharedXML/Tooltip/TooltipDataHandler.lua:539
SetPvpBrawl = defined @SharedXML/Tooltip/TooltipDataHandler.lua:539
GetUnit = defined @FrameXML/GameTooltip.lua:1116
BottomOverlay = Texture {
}
SetSpellByID = defined @SharedXML/Tooltip/TooltipDataHandler.lua:539
OnLoad = defined @FrameXML/GameTooltip.lua:1049
SetSocketedRelic = defined @SharedXML/Tooltip/TooltipDataHandler.lua:539
ProcessInfo = defined =[C]:-1
ProcessLines = defined @SharedXML/Tooltip/TooltipDataHandler.lua:400
NineSlice = Frame {
}
SetInventoryItem = defined @SharedXML/Tooltip/TooltipDataHandler.lua:539
SetTalent = defined @SharedXML/Tooltip/TooltipDataHandler.lua:539
SetCompanionPet = defined @SharedXML/Tooltip/TooltipDataHandler.lua:539
SetLootRollItem = defined @SharedXML/Tooltip/Toolt
Message: Interface/AddOns/idTip/idTip.lua:55: calling 'GetName' on bad self (Usage: local name = self:GetName()) Time: Thu Feb 1 17:27:19 2024 Count: 2 Stack: Interface/AddOns/idTip/idTip.lua:55: calling 'GetName' on bad self (Usage: local name = self:GetName())
string "=[C]": in function `GetName' [string "@Interface/AddOns/idTip/idTip.lua"]:55: in function <Interface/AddOns/idTip/idTip.lua:49> [string "@Interface/AddOns/idTip/idTip.lua"]:117: in function <Interface/AddOns/idTip/idTip.lua:112> [string "@Interface/AddOns/idTip/idTip.lua"]:134: in function <Interface/AddOns/idTip/idTip.lua:123>
string "=[C]": in function securecallfunction' [string "@Interface/SharedXML/Tooltip/TooltipDataHandler.lua"]:162: in function <Interface/SharedXML/Tooltip/TooltipDataHandler.lua:157> [string "@Interface/SharedXML/Tooltip/TooltipDataHandler.lua"]:179: in function <Interface/SharedXML/Tooltip/TooltipDataHandler.lua:178> [string "@Interface/SharedXML/Tooltip/TooltipDataHandler.lua"]:218: in function <Interface/SharedXML/Tooltip/TooltipDataHandler.lua:208> [string "=[C]"]: in function
SetAttribute'
[string "@Interface/SharedXML/Tooltip/TooltipDataHandler.lua"]:243: in function <Interface/SharedXML/Tooltip/TooltipDataHandler.lua:236>
[string "@Interface/SharedXML/Tooltip/TooltipDataHandler.lua"]:389: in function <Interface/SharedXML/Tooltip/TooltipDataHandler.lua:339>
string "=[C]": in function `securecallfunction'
[string "@Interface/SharedXML/Tooltip/TooltipDataHandler.lua"]:336: in function <Interface/SharedXML/Tooltip/TooltipDataHandler.lua:335>
[string "@Interface/AddOns/Blizzard_NamePlates/Blizzard_NamePlates.lua"]:886: in function <...e/AddOns/Blizzard_NamePlates/Blizzard_NamePlates.lua:879>
Locals: (*temporary) =
https://github.com/silverwind/idTip/commit/454f4b8b77f4733860b5e812724098436b95c99f may or may not help, will try to test.
Won't be getting around to test it, but I assume https://github.com/silverwind/idTip/commit/454f4b8b77f4733860b5e812724098436b95c99f will have fixed it.
It is caused by Afflicted Soul's auras