mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-17 17:59:58 -04:00
Add a debug menu for testing Ocarina of Time: the game's flags by name, the game's speed, and a memory search, on F9.
With debug_menu = 1 (off by default; the Game tab has the switch) F9 opens a panel on the left edge in the performance overlay's look, with the game in view beside it. ui/menu.cpp lays it out in the settings menu's place, so its input and the game's blocked pad are the menu's own. Typed characters now reach the menu for its text fields. Flags: the game's 11,292 on/off flags are read from its game data manager, and a click changes one through the game's own function on the game's thread at its pad read (runtime/debug_tools.c dbg_tick), so the game applies it at its next update as it does its own changes. The game knows a flag by the hash of its name only; the names shown are found in the player's own event flow files, hashed and matched when the panel first opens (2,250 of them from 915 files in 0.2 s), and none is kept in the code. World: Link's position, and a speed factor from 0.05 to 8 that multiplies the step the runtime gives the game each frame (measured 0.50 at 0.5x). Memory: a search of the heap for a value of 1, 2 or 4 bytes or a float (about 2 s), narrowed by equals, changed, unchanged, went up or went down, with a value to set at a place or to hold there every frame. Tested through the window's own messages: F9 opened it, a click on a flag set that flag in the game, text typed into the filter narrowed the list, and F9 closed it; a scripted run set and held a value and put it back. Teleporting, a free camera and starting cutscenes are not in it: writing Link's position, or every copy of it in the heap, moved him back within three frames, so they need the game's own warp, scene-change and event functions. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -36,6 +36,15 @@ Draft notes for the release after 0.7.1. The version number is not decided yet.
|
||||
tested in this game yet**; on every other card it is version 3.1.6, which on an RX 7900 XT runs at the same frame
|
||||
rate as before and showed clean frames in a fast camera turn. It is off unless you set it, and when it fails the FSR
|
||||
3.1 library takes over. Please report how it looks on an RX 9000.
|
||||
- **A debug menu for testing** (off by default: Game tab, *Debug menu (F9)*, or `debug_menu = 1` in `nx2navi.ini`). F9
|
||||
opens a panel on the left edge, in the performance overlay's look, with the game in view beside it. It has three
|
||||
tabs. *Flags*: the game's 11,292 on/off flags with a search box, about 2,250 of them by name (the names are found in
|
||||
your own game's event files; the rest show their hash), each switched with a click through the game's own function,
|
||||
with the last changes listed to put back. *World*: Link's position and the game's speed, from 0.05x to 8x. *Memory*:
|
||||
a search of the game's memory for a number (1, 2 or 4 bytes, or a float), narrowed down by equals, changed,
|
||||
unchanged, went up or went down, with a value to set at a place or to hold there. Teleporting, a free camera and
|
||||
starting cutscenes are not in it yet: they need the game's own scene-change, warp and event functions. Changing
|
||||
flags or memory can break a save, so keep a copy first.
|
||||
- **Add to Steam** in Customize Launcher (Windows): adds the game to your Steam library as *The Legend of Zelda
|
||||
Ocarina of Time*, with Navi as its icon and the title screen's artwork and logo. Starting it from Steam starts the
|
||||
game. Steam restarts once while it is added.
|
||||
|
||||
Reference in New Issue
Block a user