Skip to content

Ocarina of Time: a map select cheat (instantly warp to any area) - #1963

Closed
UserDerezzed wants to merge 7 commits into
seedds:mainfrom
UserDerezzed:oot-map-select
Closed

UserDerezzed wants to merge 7 commits into
seedds:mainfrom
UserDerezzed:oot-map-select

Conversation

@UserDerezzed

@UserDerezzed UserDerezzed commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

What and why

Ocarina of Time (0400486024DEC000, v131072) gets a map select by @UserDerezzed: 48 Warp now rows, one per area the game's loading zones lead to (every overworld area as child and as adult, the dungeons, Ganon's Castle), in three sections of the Cheats menu or panel: child Link, adult Link, and dungeons and castles.

Apply on a row warps Link there at once, as a loading zone does, and the row turns itself off. There's no door to walk through and nothing left armed afterwards. The rows patch code, so they run on the Mac only.

This depends on #2023, which lets a code cheat be applied once (once = true gives it the panel's Apply button). That commit is included here so this branch compiles on its own. Whichever of the two merges first, the other drops it.

How it works (the game note's new Cheats section has the addresses and the recordings):

  • The game's own change. When Link enters an exit, the game writes four String64 game-data records: arrival event (32), start position (33 / 35), next banc (34). A few frames later it switches the current banc (31), and the arrival event finishes the change.
  • The request. A loading zone's AI builds an EventRequestArg for Dm_SY_BancChangeGo with NextBanc, NextStartPos, NextStartPosAir and BootEventName and passes it to EventMgr::requestEvent (main+0xD7A820). The Sequence's own Navi-hint request (main+0x32DB1A0) shows this works without an actor. The event then writes records 32–35 exactly as a door does.
  • A row. Each row copies one real entrance into its area: its banc, start position and arrival event, picked from all 161 entrance placements, preferring the main overworld entrance. The arrival event has to run, or the game reloads the area forever. In its one pass the row writes those strings into the unused end of .bss (main+0x4E9FF20–0x4E9FFBF), a cave into the text's zero padding, a branch from the first word of the Main sequence's per-frame update (main+0x3303CA0) to the cave, and last the flag. At the next update the cave clears the flag, builds the arg and calls the request. The hook stays afterwards and does nothing while the flag is 0, so a row needs no off entry.
  • The cave is clear of Ocarina of Time: a free camera cheat (left stick flies, right stick looks, game controls held while it is on) #1949's and Ocarina of Time: a god mode cheat (Link takes no damage, enemies still do) #1955's caves.

This adds OcarinaOfTime.cheats.toml and a Cheats section to the game note. #1718, #1949 and #1955 add the same file and section. Whichever merges later needs its entries and section text merged into the other's. They do not overlap otherwise.

Related

Checked

  • Played in the Mac app on an M3 Max: Apply on a Warp now row warped Link to its area. The same cave and request also warped from the Market's and Hyrule Field's exits, same-age and cross-age (child Link to HyruleField_Adult), into areas the story had not reached yet, and into dungeons from outside.
  • cheat_anchor.py compile of the source writes the same words and meta rows as the file that was played (diffed), and all 48 rows have once 1.
  • The cave's words were checked with capstone. The game-data writes of a normal door, both ways through the Deku Tree's entrance, were recorded at 0.15 s intervals.
  • python3 -m unittest dm/tools/tests/test_docs.py dm/tools/tests/test_cheat_anchor.py dm/tools/tests/test_game_profile.py: pass. test_dmsh_abi.py fails on main itself: 70b9a68 added a third "?" literal to nvn_mtl.m, where its ratchet allows two.
  • No host, chain or shader change, so no regression run.
oot-recording-18.34.15.mp4

… the loading zones reach: with one on, the next area change the game starts is sent to that area through a real entrance's start position and arrival event, once (data only, build E0F3CCFAF50065AE)
@github-actions github-actions Bot added docs Documentation game: 0400486024DEC000 A game labels Nov 9, 2026
…an Instant warp switch hooks the Main sequence's update to a cave that asks the event manager for Dm_SY_BancChangeGo with the location's area, start position and arrival event, as a loading zone does, on ZL+ZR+Down; the 48 locations do both, and the separate instant list is gone
@UserDerezzed UserDerezzed changed the title Ocarina of Time: a map select cheat (warp any door or loading zone to any area) Ocarina of Time: a map select cheat (instantly warp to any area) Nov 9, 2026
… reached and into dungeons from outside worked in play
…eta's once column, the panel's Apply), as action = "set" marks a data cheat; once on another entry, on a master or with a non-boolean value is refused
…now rows in child, adult and dungeon sections, each applied once (once = true, the panel's Apply), write their area's strings, the warp cave and its hook, then the flag, so the game warps as from a loading zone and the row turns itself off; the door redirect and the Instant warp switch with ZL+ZR+Down are gone
…on combination, which the one-click rows do not have
@seedds

seedds commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Thanks @UserDerezzed for mapping out all 48 Ocarina of Time warp targets.

We are closing this draft PR because game-specific, build-bound cheats (and 3,000+ lines of per-build warp entries) are outside the scope of the core nxnative repository.

@seedds seedds closed this Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation game: 0400486024DEC000 A game

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants