The Ocarina of Time decompilation project is complete, source code fully reverse engineered

zelda.png

After two hard years of work, the Zelda Reverse Engineering Team has finished one of their biggest projects: recreating The Legend of Zelda: Ocarina of Time's source code, from scratch. We've seen similar successful attempts in the past, such as when Super Mario 64 was also decompiled, which spawned further fan projects that saw the game ported to the Nintendo Switch before Nintendo could, and with widescreen and 60fps support, to boot.

This is a WIP decompilation of The Legend of Zelda: Ocarina of Time. The purpose of the project is to recreate a source code base for the game from scratch, using information found inside the game along with static and/or dynamic analysis. It is not producing a PC port.

Currently, the official website for the decompilation shows the project at 98% completion, as the last finishing touches are done, but are yet to be submitted as a pull request on the project's GitHub. Once it's completed and publically available, it's likely we'll see PC ports and mods being made--not from the ZRET team themselves though, as they want to focus purely on documenting their work and trying to reverse engineer different versions of Ocarina of Time and other Zelda games. For now, the decompilation applies to the Master Quest release of Ocarina of Time on the GameCube.

We thought for a time that we may never be able to match every function completely, so this is an incredibly exciting accomplishment. Dozens of people helped work on this project, and together we were able to achieve something amazing.

If you're looking for other Zelda fan projects to tide you over until the decompilation is released, then you might want to check out the Spaceworld '97 Experience romhack, which came out last week.

:arrow: Source
 

blazer728544

Member
Newcomer
Joined
Oct 27, 2021
Messages
20
Trophies
0
Age
33
XP
40
Country
United States

After two hard years of work, the Zelda Reverse Engineering Team has finished one of their biggest projects: recreating The Legend of Zelda: Ocarina of Time's source code, from scratch. We've seen similar successful attempts in the past, such as when Super Mario 64 was also decompiled, which spawned further fan projects that saw the game ported to the Nintendo Switch before Nintendo could, and with widescreen and 60fps support, to boot.



Currently, the official website for the decompilation shows the project at 98% completion, as the last finishing touches are done, but are yet to be submitted as a pull request on the project's GitHub. Once it's completed and publically available, it's likely we'll see PC ports and mods being made--not from the ZRET team themselves though, as they want to focus purely on documenting their work and trying to reverse engineer different versions of Ocarina of Time and other Zelda games. For now, the decompilation applies to the Master Quest release of Ocarina of Time on the GameCube.



If you're looking for other Zelda fan projects to tide you over until the decompilation is released, then you might want to check out the Spaceworld '97 Experience romhack, which came out last week.

:arrow: Source
interesting i managed to decompile the 3ds remake and noticed the files where pretty simaler to other n64 games soit couldbe possible to port oot romhacks to 3ds and remakes of thegame/
 

stanleyopar2000

Dirty Weeb ( ͡° ͜ʖ ͡°)
Member
Joined
Jun 22, 2007
Messages
4,369
Trophies
0
Location
C-137
Website
www.youtube.com
XP
2,105
Country
United States
If anyone is working on this for enhancements in any way using this code

Please shut the fuck up until it's done. Rockstar set a shitty precedent for Reverse Engineering projects and Nintendo is definitely going to use the REVC lawsuit as an excuse to shut this down.
 

JuanMena

Old Skull ☠️
Member
Joined
Dec 17, 2019
Messages
2,444
Trophies
2
Age
28
Location
not Mexico
XP
3,244
Country
Mexico
when people overhype an overated game...
it's not overhyped.

You really had to be there to witness the jump from 16 bit to 3D games to realize the upcoming future of home entertainment.
It certainly was s very awesome feeling watching and controlling 3D characters in any direction.

It's "overhyped" because not only represents an era where everything evolved, but it made it in such a way that remains a staple of 3D design amongst generations to come.

At least that's how I think it is.

I witnessed it back in the day and it was awesome.
 

Satellizer

Active Member
Newcomer
Joined
Feb 10, 2019
Messages
26
Trophies
0
Age
32
XP
312
Country
Australia
I loved OOT until I got to the end of the game and my friends decided I need more bottles and glitched all my items to bottles. I never actually finished the game, it became impossible.
 
  • Wow
Reactions: slaphappygamer

godreborn

Well-Known Member
Member
Joined
Oct 10, 2009
Messages
23,976
Trophies
1
XP
15,096
Country
United States
I loved OOT until I got to the end of the game and my friends decided I need more bottles and glitched all my items to bottles. I never actually finished the game, it became impossible.
Lol, I had a friend whom I'd always mess with on final fantasy vi. I'd poison his party, drop his health to 1, and move as far away from the airship as possible when he let me borrow his game. Haha
 
  • Haha
Reactions: slaphappygamer

Magnus87

Well-Known Member
Member
Joined
Apr 28, 2013
Messages
348
Trophies
0
XP
1,054
Country
Argentina
Amazing News!!!

I am more interested in the source code of Majoras Mask since it is not only an "OOT 1.5" but it has several extras such as transformations and events per day.

It would be great to "restore the 6 days" that were originally planned for TLOZMM
 

SG854

Well-Known Member
Member
Joined
Feb 17, 2017
Messages
4,456
Trophies
1
XP
5,950
Country
Fiji
Amazing News!!!

I am more interested in the source code of Majoras Mask since it is not only an "OOT 1.5" but it has several extras such as transformations and events per day.

It would be great to "restore the 6 days" that were originally planned for TLOZMM
Aren't a lot of events timed in a 3 day cycle and wouldn't adding 6 days throw that off?
 

izy

Advanced Tech Pleb
Member
Joined
Sep 17, 2010
Messages
2,201
Trophies
1
XP
3,144
Country
United Kingdom
interesting i managed to decompile the 3ds remake and noticed the files where pretty simaler to other n64 games soit couldbe possible to port oot romhacks to 3ds and remakes of thegame/
I mean they already ported sm64 to 3ds it doesn't require the 3ds remake decompiled at all so don't know what you talking about
 

Moon164

Well-Known Member
Member
Joined
Nov 21, 2015
Messages
681
Trophies
0
Age
24
XP
2,200
Country
Brazil
When ports start happening, I would love it if someone ported to the Nintendo DS as they did with Mario 64.
When I was little I always dreamed of a port of Zelda Ocarina of Time to the DS but it never happened, it would be like seeing a child's dream come true.
 
General chit-chat
Help Users
  • mr_switch @ mr_switch:
    same
    Gift
  • Veho @ Veho:
    TRJ, I learned all those in school/college.
    Gift
  • Veho @ Veho:
    As part of some course or other.
    Gift
  • Veho @ Veho:
    I forgot to list Assembler, Pascal and Matlab scripting.
    Gift
  • phalk @ phalk:
    I know some pascal, c, php
    Gift
  • phalk @ phalk:
    and I'm a History teacher
    Gift
  • Veho @ Veho:
    Went over the basics in all of them, never took it anywhere.
    Gift
  • Veho @ Veho:
    I do use bash for my job though. It's useful.
    Gift
  • phalk @ phalk:
    Assembler is something I always wanted to learn
    Gift
  • phalk @ phalk:
    but.... nah
    Gift
  • Veho @ Veho:
    No point really.
    Gift
  • Veho @ Veho:
    Even the simplest device these days runs some sort of high level language.
    Gift
  • The Real Jdbye @ The Real Jdbye:
    @Veho all the IT stuff i've learned in school has been extremely basic... i knew most of it already
    Gift
  • The Real Jdbye @ The Real Jdbye:
    it's better to learn on your own, it goes much faster than the snail pace they teach you at in school
    Gift
  • Coto @ Coto:
    assembly is actually great, gets you to run everything about 80% faster than C massaged code
    Gift
  • Coto @ Coto:
    assembler syntax is dead easy, but "how to put pieces together" logic requires to have in mind the original idea, and the CPU layout, and that's like double the work of C stuff. It's best to write C first, add some unit tests, then go assembly, then run the unit tests
    Gift
  • The Real Jdbye @ The Real Jdbye:
    it can run faster than compiled code, but modern compilers are really good at optimization and you need to be even better at assembly to do a better job
    Gift
  • Coto @ Coto:
    with that all your assembler base will actually work
    Gift
  • Coto @ Coto:
    even on embedded systems, without a damned debugger
    Gift
  • The Real Jdbye @ The Real Jdbye:
    syntax is easy but the code is hard to read, you can't look at a piece of code and expect to understand it without looking at all the code around it to see how it all works together so it takes much longer to read the code, it takes longer to write it too because what might be 1 line of code in C might be 20 lines of assembly
    Gift
  • The Real Jdbye @ The Real Jdbye:
    the language is very simple to understand (because it's barely a language at all) understanding how all the instructions work together to form a whole is another matter, in general it's such a pain to work with that i would never recommend it unless you have a need for it. don't listen to this guy and learn assembly just because you want to make your code run faster, you are wasting your time, but if you run into a situation where your code isn't fast enough even after you enabled -Ofast and you NEED it to be faster, then you can consider assembly
    Gift
  • The Real Jdbye @ The Real Jdbye:
    @Coto have you tried -Ofast btw? ;)
    Gift
  • Gift
  • Psionic Roshambo @ Psionic Roshambo:
    I have o fast before but I suspect we are talking different Os lol
    Gift
  • Gift
    Psionic Roshambo @ Psionic Roshambo: https://youtu.be/bDoEWJP4D_Q