Add teleporting and cutscene starting to the debug menu.

The Teleport tab lists every area of the game with its named start positions, read from the player's own game files: the warp songs' pads, both sides of the loading zones and the boss rooms among them. A click changes area the way the game's own doors do: during a short event of the game that only waits, the menu reserves the next area and start position in the game's data and asks the game's sequence for the change, so the area unloads and loads as in play, a first visit's cutscene plays and a boss room starts its fight.

The Cutscenes tab lists the game's event scripts by name and starts one through the game's event manager.

Tested from Hyrule Field to Kakariko Village, the Forest Temple, Kokiri Forest in the child's time, the bottom of Lake Hylia, Volvagia's room, and the pads of two warp songs, four of them in one run, with Link walking afterwards; the Kakariko arrival cutscene started by name.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
epicmeme546
2026-11-11 07:29:17 -05:00
parent 5a69bdc91f
commit fe3126e9a7
7 changed files with 434 additions and 27 deletions

View File

@@ -1264,9 +1264,10 @@ static void tab_game(float scale) {
opt_group_text("Testing");
const bool on = cfg_bool("NX2NAVI_DEBUG_MENU");
if (opt_toggle_text("debug_menu", "Debug menu (F9)",
"F9 opens a window for testing: the game's flags by name, the game's speed, and a search of "
"its memory with values to set and hold. Changing flags or memory can break a save: keep a "
"copy of the save first.", on))
"F9 opens a window for testing: the game's flags by name, a teleport to every area's start "
"positions, its cutscenes to start, the game's speed, and a search of its memory with values "
"to set and hold. All of these can break a save, and the game saves by itself after a change "
"of area: keep a copy of the save first.", on))
opt_apply("NX2NAVI_DEBUG_MENU", on ? "0" : "1");
}
opt_end();