Homebrew Cave Story Engine 2 for Nintendo Wii U

vbarros22

Well-Known Member
OP
Member
Joined
Jun 20, 2017
Messages
200
Trophies
0
Age
24
Location
Manaus, Amazonas
Website
mundowiihack.wordpress.com
XP
715
Country
Brazil
Dont see any post here but see that on Reddit. 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
 
Last edited by vbarros22,

HomeStarRunnerTron

Well-Known Member
Newcomer
Joined
Jul 24, 2019
Messages
54
Trophies
0
Age
28
XP
764
Country
United States
WHOA NALLY! I'm absolutely blown away by this-- I have a little Wii U inject for the vWii version of Cave Story that requires a little bit of hassle to connect the gamepad up, so for the sake of complete ease of comfort as well as feeling more pixel(hohoho)-perfect, this is absolutely it. So amazed by how perfectly it runs-- and how this beautiful game can have such elegant, unclunky code, hahaha. In a world of indie games made on unwieldy levianthans of engines, this is kind of a revelation. Thank you so, so much!
 

vbarros22

Well-Known Member
OP
Member
Joined
Jun 20, 2017
Messages
200
Trophies
0
Age
24
Location
Manaus, Amazonas
Website
mundowiihack.wordpress.com
XP
715
Country
Brazil
WHOA NALLY! I'm absolutely blown away by this-- I have a little Wii U inject for the vWii version of Cave Story that requires a little bit of hassle to connect the gamepad up, so for the sake of complete ease of comfort as well as feeling more pixel(hohoho)-perfect, this is absolutely it. So amazed by how perfectly it runs-- and how this beautiful game can have such elegant, unclunky code, hahaha. In a world of indie games made on unwieldy levianthans of engines, this is kind of a revelation. Thank you so, so much!
And looks beautiful on the gamepad screen
Do you think this is better than the Wii version?
 

Lostbhoy

HEY YOU GUYS!
Member
Joined
Aug 23, 2009
Messages
1,659
Trophies
1
Location
Scotland
XP
3,491
Country
United Kingdom
Aw man, I did not know about this!! Love Cave Story and I agree with the above regarding the wii version and the gamepad sync.... Takes too long to start playing lol

I'm trying this right now!! Thanks for the info @vbarros22
 
  • Like
Reactions: vbarros22

vbarros22

Well-Known Member
OP
Member
Joined
Jun 20, 2017
Messages
200
Trophies
0
Age
24
Location
Manaus, Amazonas
Website
mundowiihack.wordpress.com
XP
715
Country
Brazil
Aw man, I did not know about this!! Love Cave Story and I agree with the above regarding the wii version and the gamepad sync.... Takes too long to start playing lol

I'm trying this right now!! Thanks for the info @vbarros22
Yeah man, I'm waited too long for an appropriate person who share this info but since no one posted I had to do it. So much grateful for Clownacy whoever is he
 
  • Like
Reactions: Lostbhoy

Lostbhoy

HEY YOU GUYS!
Member
Joined
Aug 23, 2009
Messages
1,659
Trophies
1
Location
Scotland
XP
3,491
Country
United Kingdom
Massive thanks and kudos to that man or woman!! (or sentient jelly fish to keep it modern!!)

Only gripe i have is it needs a wide screen patch and a multiple game save option as my son likes this game also.... But I ain't complaining, both those options would mean it's no longer a port and they're available on the vWii one anyway.... My son can just play that one...... :evil:

Seriously.... This is awesome.... Loving it!
 
Last edited by Lostbhoy,
  • Like
Reactions: vbarros22

Vague Rant

Deceptively cute
Member
Joined
Aug 7, 2008
Messages
2,390
Trophies
0
Location
Melbourne
Website
vaguerant.tumblr.com
XP
2,526
Country
Only gripe i have is it needs a wide screen patch
Scroll down a bit further on the Releases page and grab CSE2 Enhanced. That version has widescreen support and a few other optional changes including full button remapping. Still only the one save slot, though.
 

Vague Rant

Deceptively cute
Member
Joined
Aug 7, 2008
Messages
2,390
Trophies
0
Location
Melbourne
Website
vaguerant.tumblr.com
XP
2,526
Country
By your tests, enhanced is better than portable?
I definitely prefer Enhanced, personally. Portable is the original, unmodified game ported to other platforms, while Enhanced is the same thing plus widescreen, a toggle between the original 50 FPS and enhanced 60 FPS, smoother updates, button remapping, and a few other features I don't really use like multiple soundtracks. It doesn't include anything which dramatically alters the game, so it's still Cave Story, just ... enhanced.
 

HomeStarRunnerTron

Well-Known Member
Newcomer
Joined
Jul 24, 2019
Messages
54
Trophies
0
Age
28
XP
764
Country
United States

Lostbhoy

HEY YOU GUYS!
Member
Joined
Aug 23, 2009
Messages
1,659
Trophies
1
Location
Scotland
XP
3,491
Country
United Kingdom
Seems the project was DMCA'd today... :cry:

Screenshot_20201123-230957.png Screenshot_20201123-231103.png
 

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
33,016
Trophies
2
XP
22,111
Country
United States
btw, if you want to compile it yourself, there's a couple mistakes in the instructions, more like typos. near the end, the CSE2 stuff should be CSE2.elf. that's to strip and build the rpx.
 
  • Like
Reactions: Lostbhoy

Lostbhoy

HEY YOU GUYS!
Member
Joined
Aug 23, 2009
Messages
1,659
Trophies
1
Location
Scotland
XP
3,491
Country
United Kingdom
might have this deleted, since I think it may contain copyright materials. I didn't even know there was a sequel to cave story. I got pretty far in one of the versions.

It's not a sequel its a port of the original but I'm sure the author made their own or used a custom engine as it came from a fan recreation of the 2004 original freeware version and I believe that's why the above repo has been allowed to remain as the other page is still down.
 
  • Like
Reactions: godreborn

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
33,016
Trophies
2
XP
22,111
Country
United States
It's not a sequel its a port of the original but I'm sure the author made their own or used a custom engine as it came from a fan recreation of the 2004 original freeware version and I believe that's why the above repo has been allowed to remain as the other page is still down.
so, it's okay just to leave it? I never tested it, so I'd appreciate if someone would. you may or may not need tiramisu, but I think maybe not if it's that old. ;)
 
  • Like
Reactions: Lostbhoy
General chit-chat
Help Users
    Psionic Roshambo @ Psionic Roshambo: Ken gets a nickel every time he posts an Amazon link lol