From 9771a538696f9f9086b96ad46699452384e452ff Mon Sep 17 00:00:00 2001 From: Xurkon <36556990+Xurkon@users.noreply.github.com> Date: Sat, 21 Feb 2026 00:08:33 -0600 Subject: [PATCH] Fix spurious 'Missing event data' error for triggerEnd objectives with no coordinates QuestieQuestPrivates.lua: event handler now returns nil silently when Coordinates is nil, instead of logging a visible error. Nil coordinates are valid for server-tracked objectives (complete N quests in zone) that have no map pin. --- CHANGELOG.md | 5 +++++ Modules/Quest/QuestieQuestPrivates.lua | 4 ++-- Questie-335.toc | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a85760d..0d3ad0d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## v9.7.7 + +### Fixes +- **[Quest]** Fixed "Missing event data for Objective" error appearing in chat for all `triggerEnd` quests with no map coordinates (e.g., "complete N quests in zone" types). Nil coordinates are valid for server-tracked objectives with no pin — the handler now returns silently instead of logging a visible error. + ## v9.7.6 ### Fixes diff --git a/Modules/Quest/QuestieQuestPrivates.lua b/Modules/Quest/QuestieQuestPrivates.lua index 4283978..d2801ea 100644 --- a/Modules/Quest/QuestieQuestPrivates.lua +++ b/Modules/Quest/QuestieQuestPrivates.lua @@ -170,8 +170,8 @@ end event = function(eventId, objective) local spawns = objective.Coordinates if (not spawns) then - Questie:Error("Missing event data for Objective:", objective.Description, "id:", eventId) - spawns = {} + Questie:Debug(Questie.DEBUG_DEVELOP, "No coordinates for event objective:", objective.Description, "id:", eventId) + return nil end ---@type SpawnListEvent diff --git a/Questie-335.toc b/Questie-335.toc index 92ba44b..12928bb 100644 --- a/Questie-335.toc +++ b/Questie-335.toc @@ -6,7 +6,7 @@ ## Notes-esES: Ayundante de misión ## Notes-ptBR: Ajudante de missão ## Notes-frFR: Assistant de quête -## Version: 9.7.6 +## Version: 9.7.7 ## RequiredDeps: ## OptionalDeps: Ace3, CallbackHandler-1.0, HereBeDragons, LibDataBroker-1.1, LibDBIcon-1.0, LibSharedMedia-3.0, LibStub, LibUIDropDownMenu ## SavedVariables: QuestieConfig