The Decompilation & Recompilation Thread (N64, Arcade etc.)

A forum for video games, new & retro, on consoles, computers, handheld & mobile. Also for tech talk, things like PC parts, phones etc.
Post Reply
User avatar
Dr. Zoidberg
Site Admin
Posts: 26200
Joined: Tue Feb 03, 2015 2:33 am

The Decompilation & Recompilation Thread (N64, Arcade etc.)

Post by Dr. Zoidberg »



N64: Recompiled

N64: Recompiled is a tool to statically recompile N64 binaries into C code that can be compiled for any platform. This can be used for ports or tools as well as for simulating behaviors significantly faster than interpreters or dynamic recompilation can. More widely, it can be used in any context where you want to run some part of an N64 binary in a standalone environment.

This is not the first project that uses static recompilation on game console binaries. A well known example is jamulator, which targets NES binaries. Additionally, this is not even the first project to apply static recompilation to N64-related projects: the IDO static recompilation recompiles the SGI IRIX IDO compiler on modern systems to faciliate matching decompilation of N64 games. This project works similarly to the IDO static recomp project in some ways, and that project was my main inspiration for making this.

https://github.com/Mr-Wiseguy/N64Recomp



Zelda 64: Recompiled is a project that uses N64: Recompiled to statically recompile Majora's Mask (and soon Ocarina of Time) into a native port with many new features and enhancements. This project uses RT64 as the rendering engine to provide some of these enhancements.

https://github.com/Mr-Wiseguy/Zelda64Recomp
User avatar
Dr. Zoidberg
Site Admin
Posts: 26200
Joined: Tue Feb 03, 2015 2:33 am

Re: N64 Recompiled: An Incredible New Way to Keep N64 Games Alive (N64 binaries statically recompiled into C code)

Post by Dr. Zoidberg »


We've seen recompilation projects before - and Nintendo 64 titles have received more than their fair share of them - but Zelda 64 Recompiled takes this to the next level. Alex Battaglia goes in depth on Zelda 64 Recompiled, essentially a new native PC port of Majora's Mask, reveals how it works, how accurate it is, how modern hardware offers so many more options and looks forward to what this project means for N64 games on PC going forward.
User avatar
pixel
Posts: 5458
Joined: Sun Mar 27, 2016 3:09 am

Re: N64 Recompiled: An Incredible New Way to Keep N64 Games Alive (N64 binaries statically recompiled into C code)

Post by pixel »

The recomp is just as easy as an emulator. I copied the Linux executable to my Steam Deck and told it where my Majora's Mask ROM was saved. No fuss, no muss.

The autosaving might be the biggest feature no one's talking about. I might actually 100% this time, 24 years later.
User avatar
Skynet
Site Admin
Posts: 2393
Joined: Sat Mar 26, 2016 8:54 am

Re: N64 Recompiled: An Incredible New Way to Keep N64 Games Alive (N64 binaries statically recompiled into C code)

Post by Skynet »

pixel wrote: Wed May 22, 2024 5:12 am The recomp is just as easy as an emulator. I copied the Linux executable to my Steam Deck and told it where my Majora's Mask ROM was saved. No fuss, no muss.

The autosaving might be the biggest feature no one's talking about. I might actually 100% this time, 24 years later.
If it's anything like the PD recomp I have on my PC, yeah it's so good.

I think MVG did touch on the auto save in the above video, but yeah you'd think they'd be making a bigger deal of that
Hawq
Site Admin
Posts: 8275
Joined: Sat Mar 26, 2016 7:45 am

Re: N64 Recompiled: An Incredible New Way to Keep N64 Games Alive (N64 binaries statically recompiled into C code)

Post by Hawq »

Dinosaur Planets next
User avatar
Manoel
Posts: 168
Joined: Wed Aug 23, 2017 10:38 am

Re: N64 Recompiled: An Incredible New Way to Keep N64 Games Alive (N64 binaries statically recompiled into C code)

Post by Manoel »

Isn't that old news? There's a guy making a Mario Kart 64 mod with 3D models and a lot of new stuff already.
User avatar
Dr. Zoidberg
Site Admin
Posts: 26200
Joined: Tue Feb 03, 2015 2:33 am

Re: The Decompilation & Recompilation Thread (N64, Arcade etc.)

Post by Dr. Zoidberg »





Sonic The Fighters Has Been Successfully Decompiled

AM2's arcade fighter could get a native PC port soon

Image

Sonic the Fighters has been decompiled, it has been revealed.

Decompilation is a complex process that turns 'executable' code back into human-readable source code, and is a vital step in 'recompiling' games as native PC ports.

"The first functioning 'decomp' of Sonic the Fighters has been pushed to the github repo," reports biggestsonicfan. "It's currently all assembly language, but if you know anyone who likes to fiddle with documentation, formatting, or tools, I need all the help I can get!"



It's important to note that successful decompilation does not guarantee that a game will get a native PC recompilation, but if it does happen, then fans can expect a better frame rate, boosted resolution and other enhancements.

Originally released in arcades in 1996, Sonic the Fighters was developed by Sega's AM2 division. Running on the Model 2 arcade hardware, it was never ported to any home system during the '90s but would eventually find its way to PS2 and GameCube as part of 2005's Sonic Gems Collection.

Since then, it has been released digitally on the PS3 and Xbox 360 and was included as a bonus game in Lost Judgment (2021) and Like a Dragon Gaiden: The Man Who Erased His Name (2023).

Source: Time Extension
User avatar
pixel
Posts: 5458
Joined: Sun Mar 27, 2016 3:09 am

Re: N64 Recompiled: An Incredible New Way to Keep N64 Games Alive (N64 binaries statically recompiled into C code)

Post by pixel »

Manoel wrote: Fri May 16, 2025 10:12 pm Isn't that old news? There's a guy making a Mario Kart 64 mod with 3D models and a lot of new stuff already.
I'm not sure if this is the same mod but I remember seeing that too:



The decomp lets modders write new content directly in C and compile for any platform. Compiled versions can target any frame rate and resolution

Otherwise it's ROM patches and emulator texture packs. They still work great but these decomps run so well on anything.
User avatar
Manoel
Posts: 168
Joined: Wed Aug 23, 2017 10:38 am

Re: N64 Recompiled: An Incredible New Way to Keep N64 Games Alive (N64 binaries statically recompiled into C code)

Post by Manoel »

pixel wrote: Fri May 23, 2025 10:28 am
Manoel wrote: Fri May 16, 2025 10:12 pm Isn't that old news? There's a guy making a Mario Kart 64 mod with 3D models and a lot of new stuff already.
I'm not sure if this is the same mod but I remember seeing that too:
No, it's not the same. I'm talking about Mario Kart 64 Amped Up, which does use real-time 3D models, has new tracks and power-ups:
User avatar
melancholy
Posts: 2339
Joined: Sat Mar 26, 2016 1:32 am

Re: N64 Recompiled: An Incredible New Way to Keep N64 Games Alive (N64 binaries statically recompiled into C code)

Post by melancholy »

Manoel wrote: Sat May 24, 2025 7:02 am
pixel wrote: Fri May 23, 2025 10:28 am
Manoel wrote: Fri May 16, 2025 10:12 pm Isn't that old news? There's a guy making a Mario Kart 64 mod with 3D models and a lot of new stuff already.
I'm not sure if this is the same mod but I remember seeing that too:
No, it's not the same. I'm talking about Mario Kart 64 Amped Up, which does use real-time 3D models, has new tracks and power-ups:
I REALLY hope they make that work on original hardware. I would love to play this on my N64.
Hawq
Site Admin
Posts: 8275
Joined: Sat Mar 26, 2016 7:45 am

Re: The Decompilation & Recompilation Thread (N64, Arcade etc.)

Post by Hawq »

Hawq
Site Admin
Posts: 8275
Joined: Sat Mar 26, 2016 7:45 am

Re: The Decompilation & Recompilation Thread (N64, Arcade etc.)

Post by Hawq »

User avatar
Dr. Zoidberg
Site Admin
Posts: 26200
Joined: Tue Feb 03, 2015 2:33 am

Re: The Decompilation & Recompilation Thread (N64, Arcade etc.)

Post by Dr. Zoidberg »


Everyone loves retro gaming decompilations and retro gaming recompilations, having given us The Legend of Zelda: Majora's Mask decompilation, the Star Fox 64 decompilation, the Sonic Unleashed Decompilation, the Mystical Ninja Starring Goemon decompilation, The Mario Kart 64 decompilation (and Mario Kart 64 Dreamcast port) and even the San Francisco Rush decompilation...and here are four more Nintendo 64 Decompilation games in the works that are coming "soon" (they are in development. Could be next month! Could be Winter!)

Games Featured: Castlevania 64, Bomberman Hero, Snowboard Kids 2 and F-Zero X

and this is hot on the heels of the Zelda 64 static recompilation project...so its a good month to be a Nintendo 64 fan!
User avatar
Dr. Zoidberg
Site Admin
Posts: 26200
Joined: Tue Feb 03, 2015 2:33 am

Re: The Decompilation & Recompilation Thread (N64, Arcade etc.)

Post by Dr. Zoidberg »



Hawq
Site Admin
Posts: 8275
Joined: Sat Mar 26, 2016 7:45 am

Re: The Decompilation & Recompilation Thread (N64, Arcade etc.)

Post by Hawq »

User avatar
Dr. Zoidberg
Site Admin
Posts: 26200
Joined: Tue Feb 03, 2015 2:33 am

Re: The Decompilation & Recompilation Thread (N64, Arcade etc.)

Post by Dr. Zoidberg »



Image
Post Reply