This process makes functional correctness extremely easy to verify since the assembly can simply be compared against the original executable.
Matching decompilation goes one step further and produces original source code that compiles to the exact same assembly. Frequently Asked Questions What is (matching) decompilation?ĭecompiling is the process of turning the game's compiled code back into equivalent, readable C++ source code. Any other statically linked library, except:Įxcluded libraries will not be fully decompiled but may be partly re-implemented or decompiled, and (reverse-engineered) headers will still be provided so that the rest of the codebase can still use those libraries.Framework/engine code ( KingSystem / ksys:: namespace).Actual game code ( Game / uking:: namespace).The RomFS and the SDK libraries are out of the scope of this project. This project only concerns the main executable which contains all the game code and statically linked libraries. It will help with understanding and reverse engineering the game even in its incomplete state, but it will not help with playing BotW or porting the game to other platforms, which is explicitly a non-goal. The goal of this project is to better understand game internals, aid with glitch hunting and document existing knowledge in a permanent, unambiguous form which helps further reverse engineer the game.Ĭonsidering the large size of the executable (~40MB), it is not expected to reach 100% progress within a reasonable timeframe.Īs a result, the project is unlikely to produce a working executable in the near future. This repository does not contain game assets or RomFS content and cannot be used to play Breath of the Wild.
This came with some trial and error, and it's fascinating to see how different The Legend of Zelda: Ocarina of Time could have been.This is an experimental, WIP decompilation of The Legend of Zelda: Breath of the Wild v1.5.0 (Switch). Despite the limitations of the 25-year-old Nintendo 64 and the tiny amount of memory its cartridges contained, Nintendo still managed to produce some of the best-regarded games of all time on the console.
What made N64 games like Ocarina of Time and Super Mario 64 special is that they came about during an era when developers were just learning how to use 3D hardware. These include being able to explore an early version of Hyrule, which was massive and more open. Some early versions of dungeons can also be experienced, including the Great Deku Tree and Dodongo's Cavern, where various enemies can be fought, such as early versions of Gohma. Instead, the Space World '97 demo lets players explore different maps and scenarios from earlier versions of the N64 game.
This isn't a full recreation of what an early concept of the game could have been as that was never finished, having instead been reworked into the version of Ocarina of Time fans are familiar with.
The demo was made achievable due to the assets from the leaked builds of Zelda: Ocarina of Time. The download links can be found on zel640's Twitter account.
The demo can be downloaded on GitJub, in the form of a patch which needs to be applied to an existing ROM of Ocarina of Time. 24 years later, a playable version of this long-lost demo has been developed by zel640 and released online. The Legend of Zelda: Ocarina of Time was one of the Nintendo 64 games exhibited at Space World '97, with players of the famous demo able to choose from different gameplay scenarios. Related: Zelda: Ocarina of Time Switch vs.
The combined information from both leaks showed a picture of a much more ambitious game, even including ideas from Zelda 2: The Adventure of Link, but the Ocarina of Time prototypes seem to have been scaled back in the end (likely due to the limitations of N64 hardware). The Nintendo Gigaleak also featured content from early versions of The Legend of Zelda: Ocarina of Time, including some assets which were used for demos shown at events and screenshots for gaming magazines. More was learned at start of 2021, when an early Zelda build was discovered on an F-Zero X Nintendo 64 development cartridge. This playable build is possible thanks to a number of Ocarina of Time leaks that surfaced over the past year or so, some of which were part of the infamous "Nintendo Gigaleak." This cavalcade of illicit code included beta versions of games from series like Super Mario, Star Fox, and Pokémon. A fan recreation of The Legend of Zelda: Ocarina of Timedemo from Space World '97 is now available online.