Closed Road-block closed 1 month ago
Ah I see what's the problem. _G.GetQuestTagInfo (the Cataclysm version of the API) returns a tuple. C_QuestLog.GetQuestTagInfo (the mainline version) returns an array.
There's no code to massage the data and make them conform between the two versions.
One way to fix the breaking error (not the only one, maybe not even the best one, but this is enough to illustrate)
local tagID, tagName = GetQuestTagInfo(questID)
if tagID then
if tagID == EQuestTag.Dungeon then
isDungeon = true
elseif tagID == EQuestTag.Legendary then
isLegendary = true
elseif tagID == EQuestTag.Raid or tagID == EQuestTag.Raid10 or tagID == EQuestTag.Raid25 then
isRaid = true
end
end
questData.tag = {tagID=tagID,tagName=tagName}
This will stop the tracker breaking before it finishes drawing.
With the changes above the tracker works but Scorpio complains that QUEST_TAG_ATLAS
does not exist.
It's not lying .. there's no such global in Cataclysm Classic live (4.4.0)
Adding this to /Cataclysm/Contents/Quests/QuestView.lua#L22 exports "solves" that last issue.
-- Wow API & Utils
QUEST_TAG_ATLAS = _G.QUEST_TAG_ATLAS or {
["COMPLETED"] = "questlog-questtypeicon-quest",
["COMPLETED_LEGENDARY"] = "questlog-questtypeicon-legendaryturnin",
["DAILY"] = "questlog-questtypeicon-daily",
["WEEKLY"] = "questlog-questtypeicon-weekly",
["FAILED"] = "questlog-questtypeicon-questfailed",
["STORY"] = "questlog-questtypeicon-story",
["ALLIANCE"] = "questlog-questtypeicon-alliance",
["HORDE"] = "questlog-questtypeicon-horde",
["EXPIRING_SOON"] = "questlog-questtypeicon-expiringsoon",
["EXPIRING"] = "questlog-questtypeicon-expiring",
[_G.Enum.QuestTag.Dungeon] = "questlog-questtypeicon-dungeon",
[_G.Enum.QuestTag.Scenario] = "questlog-questtypeicon-scenario",
[_G.Enum.QuestTag.Group] = "questlog-questtypeicon-group",
[_G.Enum.QuestTag.PvP] = "questlog-questtypeicon-pvp",
[_G.Enum.QuestTag.Heroic] = "questlog-questtypeicon-heroic",
-- same texture for all raids
[_G.Enum.QuestTag.Raid] = "questlog-questtypeicon-raid",
[_G.Enum.QuestTag.Raid10] = "questlog-questtypeicon-raid",
[_G.Enum.QuestTag.Raid25] = "questlog-questtypeicon-raid",
},
Hello,
Thank you for the very detailed posts.
Indeed, i had forgotten that QUEST_TAG_ATLAS
is a fairly recent constant. Before that, QUEST_TAG_TCOORDS
was used. I updated it, and everything should work in version 2.5.1
Curseforge is having a bad day so this didn't syndicate but I tested the 2.5.1 tag and it's indeed fixed, this can be closed.
Describe the bug A clear and concise description of what the bug is.
Do you have an error log of what happened? If you don't see any errors, make sure that error reporting is enabled (
/console scriptErrors 1
) or install BugSack.To Reproduce Steps to reproduce the behavior: I didn't do anything special. Entered ZG, picked up some quests Auto-tracking is enabled so they got tracked. Somewhere in that process I got spammed with the error.
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
What is the version of SylingTracker you use ? 2.5.0 (cataclysm package)
What are the versions of PLoop and Scorpio you use ?
Additional context Add any other context about the problem here.