mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-16 09:39:58 -04:00
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:
@@ -25,6 +25,20 @@ const char *dbg_flag_name(int i); // NULL: no name found for it
|
||||
void dbg_flag_set(uint32_t hash, int on);
|
||||
int dbg_names(int *found); // 0 not started, 1 being read from the game's files, 2 read (*found of them)
|
||||
|
||||
// Teleporting and events. The places are the game's areas with their named start positions, and the events its event
|
||||
// files that hold a script: both lists come from the player's game files with the flag names (0 until dbg_names
|
||||
// answers 2). dbg_warp changes area as the game's own doors do; dbg_event_start starts an event by its name. One at a
|
||||
// time: nothing is taken while dbg_busy. dbg_status is the last thing that happened, in words.
|
||||
int dbg_places(void);
|
||||
const char *dbg_place_area(int i);
|
||||
const char *dbg_place_pos(int i); // "": the area's default start
|
||||
void dbg_warp(const char *area, const char *pos);
|
||||
int dbg_events(void);
|
||||
const char *dbg_event_name(int i);
|
||||
void dbg_event_start(const char *name);
|
||||
int dbg_busy(void);
|
||||
void dbg_status(char out[160]);
|
||||
|
||||
// Memory: values of 1, 2 or 4 bytes in the game's heap.
|
||||
int dbg_search_new(uint32_t value, int size); // returns the number of places
|
||||
int dbg_search_next(int mode, uint32_t value); // 0 equals value, 1 changed, 2 unchanged, 3 greater, 4 less
|
||||
|
||||
Reference in New Issue
Block a user