From 70e48640d8b8d21efe943e7612371aacd0d51b2a Mon Sep 17 00:00:00 2001 From: Kelsi Date: Wed, 6 May 2026 04:54:51 -0700 Subject: [PATCH] feat(editor): surface quest-chain validation issues to user via toast validateChains warnings were only going to the log file. Most users don't tail the log while editing, so a broken chain (quest pointing at a deleted nextQuestId, circular dependency) would only be discovered when testing in-game. Now also shows a 5s toast with the issue count. --- tools/editor/editor_app.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/editor/editor_app.cpp b/tools/editor/editor_app.cpp index 24cba29c..880270fc 100644 --- a/tools/editor/editor_app.cpp +++ b/tools/editor/editor_app.cpp @@ -1105,6 +1105,10 @@ void EditorApp::exportZone(const std::string& outputDir) { if (!questEditor_.validateChains(chainErrors)) { for (const auto& err : chainErrors) LOG_WARNING("Quest chain issue: ", err); + // Surface chain issues to the user — silently logging means most + // users won't notice a broken chain until they test in-game. + showToast("Quest chains have " + std::to_string(chainErrors.size()) + + " issue(s) — see log", 5.0f); } }