Repository navigation
Ocarina of Time: a map select cheat (instantly warp to any area) - #1963
Closed
UserDerezzed wants to merge 7 commits into
Closed
UserDerezzed wants to merge 7 commits into
UserDerezzed wants to merge 7 commits into
Conversation
… 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)
…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
… reached and into dungeons from outside worked in play
1 task done
…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
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 = truegives 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):
EventRequestArgforDm_SY_BancChangeGowithNextBanc,NextStartPos,NextStartPosAirandBootEventNameand passes it toEventMgr::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..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.This adds
OcarinaOfTime.cheats.tomland 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
once = true), which gives each Warp now row its Apply button and turns the row off after the warp. This PR needs it and includes its commit.Checked
HyruleField_Adult), into areas the story had not reached yet, and into dungeons from outside.cheat_anchor.py compileof the source writes the same words and meta rows as the file that was played (diffed), and all 48 rows haveonce1.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.pyfails on main itself: 70b9a68 added a third"?"literal tonvn_mtl.m, where its ratchet allows two.oot-recording-18.34.15.mp4