Repository navigation
Conversation
This was referenced Nov 9, 2026
…this host's heap Six codes rainbowkittypaw posted on GBAtemp on 2026-11-06 for the Lichii emulator (post 10942642 in "Cheat Codes AMS and Sx Os, Add and Request"): Infinite Rupees, Deku Nuts, Deku Sticks, Seeds, Bombs and Bombchus, each a heap store of 9999 into one of the game's s32 game-data flags. This host keeps that table 0x2000 bytes higher in the heap than Lichii does, so the posted addresses change nothing here. The source (OcarinaOfTime.cheats.toml, build E0F3CCFAF50065AE only) adds 0x2000 and writes only while the flag's hash is in its table slot. The README's Cheats section has the table's layout and the test; the cheats reference notes that heap codes can differ between hosts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…game-data table Two entries found here from the game-data table the GBAtemp codes use, not from the post: current health is flag 31ab5580 (index 963) and max health fbe01da1 (964), both in quarter hearts (12 on a new file). "20 heart containers" sets max health to 80; "Infinite health" copies max health into current health every pass (opcode 5 into r1, opcode A stores it). Both are gated on the two flags' hash slots, like the six codes, and compile only for build E0F3CCFAF50065AE. Tested headless: 20 full hearts on the HUD with both on; damage not tested. The game README's Cheats section has the flags and the test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e to Link, code patches for build E0F3CCFAF50065AE; "Infinite health" goes, as flag 963 is only the copy the game makes of Link's life Speed: the three branches that hand the player a new speed (main+0x934990 walk / run, +0x933E30 / +0x933E74 rolls, into main+0x9352F0) go through a per-factor stub in the padding after the text; the sites are the ones afiaka87's oots2-release faster-movement-extra doubles (MIT). Damage: the routine's sub at main+0x49DCDC goes to one stub with two switch words in unused .bss: a plain life holder (enemies) goes to 0 on any damage, a game-data holder (Link's) keeps its life. Compiled with cheat_anchor.py, all 17 entries with code give the words of the tested file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Amost-
force-pushed
the
pr/ocarina-cheats
branch
from
November 9, 2026 14:52
be3dc35 to
0a244b0
Compare
Owner
|
Thanks @Amost- for adapting these Ocarina of Time cheats and documenting the heap layout. We are closing this PR because game-specific, build-bound cheat tables are outside the scope of the core nxnative repository. Community cheats are best shared externally rather than maintained per build in |
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.
Cheats for The Legend of Zelda: Ocarina of Time (Switch 2, update v131072, build E0F3CCFAF50065AE) as a cheats source (
OcarinaOfTime.cheats.toml), with a Cheats section in the game's README and one sentence in docs/reference/cheats.md. Everything compiles only for this build: the first entries are heap addresses, and the code patches keep their stubs in the padding after the text and their switches in unused.bss, at this build's offsets.GBAtemp codes. rainbowkittypaw posted six on GBAtemp on 2026-11-06 for the Lichii emulator: https://gbatemp.net/threads/cheat-codes-ams-and-sx-os-add-and-request.520293/page-3738#post-10942642 (Infinite Rupees, Deku Nuts, Deku Sticks, Seeds, Bombs and Bombchus, each a heap store of 9999).
Hearts. Max health is flag fbe01da1 (index 964), in quarter hearts: "20 heart containers" sets it to 80 (20 containers on the HUD). The "Infinite health" of the second commit is removed: current health, flag 31ab5580, is only the copy the game makes of Link's life, so writing it refilled him on a load or a retry but could not stop a death (Link burned down to Game Over with it on). "Link takes no damage" below replaces it.
Link speed ×1.5 / ×2 / ×3 (one at a time).
main+0x9352F0hands the player a move direction and a speed in metres per frame. Walking and running call it atmain+0x934990with the length of the frame's animation root-motion step; rolls go through the player's virtual set-speed method, which tail-calls it atmain+0x933E30/main+0x933E74. Each factor sends those three branches through its own 3-instruction stub (fmov s16, #k; fmul s0, s0, s16; b main+0x9352F0) in the zero padding after the text.main+0x93528Cre-applies the stored speed every frame. The function's other call sites (climbing, swimming, scripted walks) keep their speed..pchtxtfor this build): https://github.com/afiaka87/oots2-releaseOne-hit kill and Link takes no damage (separate switches, fine together).
+0x1C10/+0x1C18point at the current / max life holders (s32 at+8). Each framemain+0x49DCDCcomputes new life = life − damage, clamps it and stores it with a compare-and-swap.main+0x4B4C400). Link's is the game-data-synced kind (main+0x4B63438, carrying flag 963's hash)..bss. One-hit kill sets a plain holder's new life to 0 on any damage; no damage keeps a game-data holder's life. Both entries install the same stub and flip only their own word, and with both off the stub does the original subtraction.The speed, damage and boss tests started from saves that load Link at a chosen place (beside the Dodongo, in Gohma's room). The tool that made them builds on the save-format work of Traiver's OOT-SW2SE save editor (MIT): https://github.com/Traiver/OOT-SW2SE
Compiled with
cheat_anchor.py, all 17 entries with code give the words of the tested file;cheat_anchor.py checkpasses. test_docs, test_cheat_anchor, test_game_profile and test_architecture pass. No Python changed.🤖 Generated with Claude Code