Homebrew Cave Story Engine 2 for Nintendo 3DS

vbarros22

Well-Known Member
OP
Member
Joined
Jun 20, 2017
Messages
227
Trophies
0
Age
25
Location
Manaus, Amazonas
Website
mundowiihack.wordpress.com
XP
1,020
Country
Brazil
I made a post like that in Wii U side, now i want to share with you here that there is a 3DS port :toot:. Its made by a dev called Clownacy and all credits go to him.

Background from his GitHub page:
When Pixel made Cave Story, he compiled the original Windows EXE with no optimisations. This left the generated assembly code extremely verbose and easy to read. It also made the code very decompiler-friendly, since the assembly could be mapped directly back to the original C(++) code.

Technically, this alone made a decompilation feasible, as was the case for the Super Mario 64 decompilation project - however, there was more to be found...

In 2007, a Linux port of Cave Story was made by Peter Mackay and Simon Parzer. Details about it can be found on Peter's old blog. This port received an update in 2011, including two shiny new executables. What Peter and Simon didn't realise was that they left huge amounts of debugging information in these executables, including the names of every C++ source file, as well as the variables, functions, and structs they contained.

This was a goldmine of information about not just the game's inner-workings, but its source code. This is the same lucky-break the Diablo decompilation project had. With it, much of the game's code was pre-documented and explained for us, saving us the effort of doing it ourselves. In fact, the combination of easy-to-decompile code, and a near-full set of function/variable names, reduced much of the decompilation process to mere copy-paste.

To top it all off, some of Cave Story's original source code would eventually see the light of day...

In early 2018, the Organya music engine was released on GitHub by an old friend of Pixel's. On top of providing an insight into Pixel's coding style, this helped with figuring out one of the most complex parts of Cave Story's codebase.

And... that's it! It's not often that a game this decompilable comes along, so I'm glad that Cave Story was one of them. Patching a dusty old executable from 2004 has its downsides.

https://github.com/Clownacy/CSE2/releases
 

Kwyjor

Well-Known Member
Member
Joined
May 23, 2018
Messages
4,323
Trophies
1
XP
4,469
Country
Canada
I never did get the full story of how this decompilation came to be, so this is nice. Aren't there multiple different projects now, though? And didn't Nicalis try to shut one of them down? Has Pixel commented at all? (Maybe he had a good reason for not releasing the source in the first place?)
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Psionic Roshambo @ Psionic Roshambo:
    Meth addicts don't move out of a house they are trying to sell and the boyfriend says she moved and does not know where lol
  • K3Nv2 @ K3Nv2:
    I was about to be like can't wait for gta6 so @Psionic Roshambo can tell me places to go then you drop that
    +3
  • BigOnYa @ BigOnYa:
    But gta6 will be in Psi hometown, and all cars will have a women on the roof, booty shaking.
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    That was a thing here in Florida for a minute
  • Psionic Roshambo @ Psionic Roshambo:
    Like cars with the booty shaking lol I seen it once in person was like smiling lol
    +1
  • K3Nv2 @ K3Nv2:
    Nah I'm talking about visiting areas he hides his bodies at
  • Psionic Roshambo @ Psionic Roshambo:
    Vice City kind of feels like Miami lol
  • Xdqwerty @ Xdqwerty:
    @Psionic Roshambo, it's a parody iirc
  • BigOnYa @ BigOnYa:
    Yea think that's where it was supposed to be, Miami
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Having been to Miami hmmm probably a hundred times lol
  • Psionic Roshambo @ Psionic Roshambo:
    Back in my days as a delivery driver for a cartel well driver slash guy they would send if a payment was forgotten lol
  • Psionic Roshambo @ Psionic Roshambo:
    you know to help them find their checkbook lol
  • BigOnYa @ BigOnYa:
    Gta4 was NewYork or Chicago, gta5 is California
  • K3Nv2 @ K3Nv2:
    Damn camera phones catching crimes
  • Psionic Roshambo @ Psionic Roshambo:
    Always some women screaming... You break a few thousand dollars worth of crap in someone's living room and they scream lol
  • Psionic Roshambo @ Psionic Roshambo:
    lol Ken yeah the things I did as a kid I am soooo glad those didn't exist
  • K3Nv2 @ K3Nv2:
    If someone breaks my $20 TV stand their nose is getting broke
  • Psionic Roshambo @ Psionic Roshambo:
    Psi would be doing like 300-3,000 years in prison lol
  • K3Nv2 @ K3Nv2:
    Have some in closet allegations?
  • Psionic Roshambo @ Psionic Roshambo:
    Someone tried to pull a gun on me once, they reached into the couch thinking I wouldn't notice, quick kick to the arm snapping it between the wrist and elbow broke like a swing lol I reached into the couch to see what was in there, cool a free .380 lol had to hit him with it a few times to remind him not to do it again lol
  • Psionic Roshambo @ Psionic Roshambo:
    He had the 20K he owed the very next day it was a miracle lol
  • Psionic Roshambo @ Psionic Roshambo:
    Psi was a bad bad man at one point lol
  • BigOnYa @ BigOnYa:
    We need a GTA based on your life, or at least put you in 6 as a character.
  • Psionic Roshambo @ Psionic Roshambo:
    I don't think people would believe 10% of the things I have done lol thank god...
  • Psionic Roshambo @ Psionic Roshambo:
    I have a giant check list of impossible things, and I haven't done them all yet lol
    Psionic Roshambo @ Psionic Roshambo: I have a giant check list of impossible things, and I haven't done them all yet lol