留言

NORPG · 2024-08-15 15:44:16

197x QuestPlates/QuestPlates.lua:113: attempt to call field 'SurfaceArgs' (a nil value)
[string "@QuestPlates/QuestPlates.lua"]:113: in function `GetQuestProgress'
[string "@QuestPlates/QuestPlates.lua"]:260: in function <QuestPlates/QuestPlates.lua:247>
[string "@QuestPlates/QuestPlates.lua"]:326: in function `?'
[string "@QuestPlates/semlib/eve.lua"]:15: in function <QuestPlates/semlib/eve.lua:12>
[string "@QuestPlates/semlib/SemlarPlates.lua"]:61: in function `?'
[string "@QuestPlates/semlib/eve.lua"]:15: in function <QuestPlates/semlib/eve.lua:12>

Locals:
unitID = "nameplate1"
tooltipData = <table> {
 dataInstanceID = 178978
 type = 2
 guid = "Creature-0-4283-870-14-61818-00003DADE5"
 lines = <table> {
 }
 healthGUID = "Creature-0-4283-870-14-61818-00003DADE5"
}
progressGlob = nil
questType = nil
objectiveCount = 0
questTexture = nil
questLogIndex = nil
questID = nil
(for index) = 3
(for limit) = 7
(for step) = 1
i = 3
line = <table> {
 leftColor = <table> {
 }
 type = 0
 leftText = "人形生物"
}
(*temporary) = nil
(*temporary) = <table> {
 leftColor = <table> {
 }
 type = 0
 leftText = "人形生物"
}
(*temporary) = "attempt to call field 'SurfaceArgs' (a nil value)"
ActiveWorldQuests = <table> {
}
OurName = "波斯爾"
 

NORPG · 2024-08-15 16:15:14

後來我自己解決了,自從10.1.0之後TooltipInfo不用再Call SurfaceArgs了。

  • The C_TooltipInfo APIs now return data with all data and line arguments surfaced, removing the need to call TooltipUtil.SurfaceArgs().


source: https://wowpedia.fandom.com/wiki/Patch_10.1.0/API_changes