quest.ObjectiveData[ ].Id is unset for event and killcredit
Laumesis opened this issue · 2 comments
Quest 64845 Alliance War Effort
is missing objectives from DB / corrections.
Questie: [DEVELOP] [QuestieQuest:GetAllQuestObjectives] Error finding entry ID for objective 1 event Victory in a battleground match of questId: 64845
Dump: value=GetQuestLogTitle(20)
[1]="Alliance War Effort",
[2]=70,
[3]="PvP",
[4]=false,
[5]=false,
[7]=1,
[8]=64845,
[9]=true,
[10]=false,
[11]=false,
[12]=false,
[13]=false,
[14]=false,
[15]=false,
[16]=false,
[17]=false
Dump: value=C_QuestLog.GetQuestObjectives(64845)
[1]={
[1]={
type="event",
numRequired=1,
text="Victory in a battleground match",
finished=false,
numFulfilled=0
}
}
v6.9.1
Hmmm the data looks fine for me 🤔
Since it is an "event" objective type only a triggerEnd
is needed which is in the corrections.
The "error" is getting outputed for every objective of type event
or killcredit
(is there even such type?).
Seems other parts of code rely the id to exists, which might results some bugs.. I don't know if those are error-catch run parts.
.Id
assigned to quest.Objectives[ ].Id
:
Questie/Modules/Quest/QuestieQuest.lua
Lines 1065 to 1066 in 15d05ef
The "error" outputed few lines later:
Questie/Modules/Quest/QuestieQuest.lua
Lines 1084 to 1086 in 15d05ef
.Id
(not) assigned to quest.ObjectiveData[ ].Id
:
Questie/Database/QuestieDB.lua
Lines 753 to 827 in 15d05ef
All places that assume quest.Objectives[ ].Id
exists (edit: or quest.ObjectiveData[ ].Id
) :
Questie/Modules/Network/QuestieComms.lua
Line 259 in 15d05ef
Questie/Modules/Network/QuestieComms.lua
Line 291 in 15d05ef
Questie/Modules/Network/QuestieComms.lua
Line 770 in 15d05ef
Questie/Modules/Quest/QuestieQuest.lua
Line 669 in 15d05ef
Questie/Modules/QuestLinks/Link.lua
Line 195 in 15d05ef
I didn't look if icon.data.Id
may get assigned with this and zillion places where icon.data.Id
is used.