The Legend of Zelda: A Link to the Past Decompilation project emerges

legend-of-zelda-a-link-to-the-past---button-3-1559683061447.jpg

Out of the blue, and without any kind of mention, a mostly complete decompilation project coded in C/C++ from the SNES classic, The Legend of Zelda: A Link to the Past, has emerged on GitHub under the MIT license.

The project was released around 9 days ago, on August 14th, and seems to be playable from start to end.
Right now the decompilation is compatible with Windows (compilable with Visual Studio) and Linux (using SDL2 and Python).
At the moment, only keyboard is supported for controls, but those interested in contributing can do so through GitHub.

As with other decompilation projects, the repository doesn't include any of the original game's assets.
The project requires you to previously own and provide your own A Link to the Past ROM to extract all of the game's assets and begin the compilation afterwards.

:arrow: Link (no pun intended):
https://github.com/snesrev/zelda3
 

VinsCool

Persona Secretiva Felineus
Global Moderator
Joined
Jan 7, 2014
Messages
14,600
Trophies
4
Location
Another World
Website
www.gbatemp.net
XP
25,218
Country
Canada
Oh heck this is actually awesome!
I wonder what kind of stuff could be made out of it now 👀
Mainly interested by the maps creation, the music engine, and actors/sprites management
 

ShadowOne333

QVID PRO QVO
OP
Editorial Team
Joined
Jan 17, 2013
Messages
12,219
Trophies
2
XP
34,336
Country
Mexico
Oh heck this is actually awesome!
I wonder what kind of stuff could be made out of it now 👀
Mainly interested by the maps creation, the music engine, and actors/sprites management

I'm really interested in the map stuff more than anything.
I am currently making a disassembly to make A Link to the Past Redux open source, and the only problem I had is the map stuff doesn't seem to be keen on working with FastROM. That's where I hit a wall.

All in all, it's nice to see all these great games becoming open source and available in multiple platforms.
 

diggeloid

Alex
Member
Joined
Apr 29, 2019
Messages
469
Trophies
0
Age
34
Location
gbatemp.net
XP
2,410
Country
United States
Wow that's not a decompilation, it's a reimplementation, like OpenMW is for Morrowind. Also:

Additionally, it can be configured to also run the original machine code side by side. Then the RAM state is compared after each frame, to verify that the C++ implementation is correct.
That's cool as hell! If it works, this can be verified to basically be a 1:1 recreation of the original.
 

ShadowOne333

QVID PRO QVO
OP
Editorial Team
Joined
Jan 17, 2013
Messages
12,219
Trophies
2
XP
34,336
Country
Mexico
You know nitnendo are absolutely seething.m about the source code to all their games being decompiled.

Oh I'm sure they're fuming out of their asses.
And the best part about all this is that they can't do jackshit about it, because they gamble losing on court due to precedented cases that Sony and other companies lost already lol
 

diggeloid

Alex
Member
Joined
Apr 29, 2019
Messages
469
Trophies
0
Age
34
Location
gbatemp.net
XP
2,410
Country
United States
Vita version pls!
This should be really straightforward since it's just using SDL. Although, it would be a pain in the ass to install/distribute legally since it requires a ROM to build. People would need to compile it themselves, which doesn't seem worth the effort because if you have the ROM you can just run that through retroarch lol.

Maybe if it's refactored in a way to load the ROM at runtime it would make sense. That way people can just install the VPK and will have to put their legally obtained ROM onto their memory card. No need to build it manually.
 

TraderPatTX

Well-Known Member
Member
Joined
Jun 25, 2022
Messages
1,793
Trophies
1
Age
47
Location
Florida
XP
1,807
Country
United States
ALTTP is easily one of my favorite Zelda games. I'm pretty sure I got it for Christmas back in '92. Looking forward to see what comes of this project.
 

ShadowOne333

QVID PRO QVO
OP
Editorial Team
Joined
Jan 17, 2013
Messages
12,219
Trophies
2
XP
34,336
Country
Mexico
This should be really straightforward since it's just using SDL. Although, it would be a pain in the ass to install/distribute legally since it requires a ROM to build. People would need to compile it themselves, which doesn't seem worth the effort because if you have the ROM you can just run that through retroarch lol.

Maybe if it's refactored in a way to load the ROM at runtime it would make sense. That way people can just install the VPK and will have to put their legally obtained ROM onto their memory card. No need to build it manually.

Should be easy enough to make a tool that can compile the code and all the user has to do is put in their own ROM.
That's how the other decomp projects do it for installers and such, Ship of Harkinian handles it this way.
 
  • Like
Reactions: niuus

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BigOnYa @ BigOnYa:
    Do you have the mini radiator cooler? I Jerry rigged a heatsink and 5volt fan from a dead graphics card on mine, but eventually wanna get a real cooler/fan.
  • Psionic Roshambo @ Psionic Roshambo:
    Pure copper heat sink kit and fans
    +1
  • BigOnYa @ BigOnYa:
    I don't know bout sets, I downloaded all the roms for mine separately.
  • Psionic Roshambo @ Psionic Roshambo:
    My 1500ish games is all hand picked and scraped it's taken me months but zero trash well except MAME.... Tried deleting clones and broke the originals uugghh
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    I legit have been complaining about MAME for over 20 years... Hate the way they handle roms
  • BigOnYa @ BigOnYa:
    Yea is a pain sometimes
  • Psionic Roshambo @ Psionic Roshambo:
    Now that they decided to add Tiger handheld and fruit machines.... Newer sets are worthless
  • Psionic Roshambo @ Psionic Roshambo:
    Because who doesn't want to emulate Halo LCD by Tiger when the machine needed to emulate it... Could just play Halo....
  • K3Nv2 @ K3Nv2:
    Batocera has some tiger games
  • Psionic Roshambo @ Psionic Roshambo:
    I don't have them on mine Ken lol
  • K3Nv2 @ K3Nv2:
    Waste of the 128kb they take
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Tiger handhelds are good for one thing.... Occupying space in a landfill
  • K3Nv2 @ K3Nv2:
    They make good burning plastic
  • BigOnYa @ BigOnYa:
    Makes me wonder if the Pi5 can play PS2? If there's even a core for it yet.
  • K3Nv2 @ K3Nv2:
    Pi5 should be able to do ps2
  • Psionic Roshambo @ Psionic Roshambo:
    Try Dragon Quest VIII it ran perfectly on a core 2 Duo I had
  • Psionic Roshambo @ Psionic Roshambo:
    Easiest game to run I found
  • K3Nv2 @ K3Nv2:
    Ps2 emulation is cake compared to 3 years ago
  • Psionic Roshambo @ Psionic Roshambo:
    Hardest is probably Gran Turismo 4
  • Psionic Roshambo @ Psionic Roshambo:
    It's much better now yes but Gran Turismo 4 is still the hardest one to emulate that I have in my collection
  • Psionic Roshambo @ Psionic Roshambo:
    Runs perfectly fine but it's as if I can feel it always on the boarder line of dropping a frame lol
  • BigOnYa @ BigOnYa:
    I ordered a spin ball couple days ago to add to my arcade cabinet, will be nice for games like golden tee, or bowling
  • Psionic Roshambo @ Psionic Roshambo:
    I always wanted a controller for like Ikari Warriors, Time Soldiers, Heavy Barrel, Forgotten Worlds games like those
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Not even sure what to call that controller
  • Xdqwerty @ Xdqwerty:
    an online friend I've known since 2021 left me :( bc my attitude is "cutty"
    Xdqwerty @ Xdqwerty: an online friend I've known since 2021 left me :( bc my attitude is "cutty"