A complete decompilation of Sonic Mania (2017)
Go to file
st×tic ea04123568
Merge pull request #252 from Mefiresu/fix-knux-climb
Player: Fix Knuckles not dropping from retracting spikes
2023-09-27 17:34:17 -05:00
dependencies int32 fix real and resync 2023-08-30 00:18:15 -05:00
SonicMania Merge pull request #252 from Mefiresu/fix-knux-climb 2023-09-27 17:34:17 -05:00
SonicMania.xcodeproj fixes, hopefully no bugs!! 2022-08-19 14:26:21 +10:00
.clang-format update to have cleaner proj 2021-01-25 12:29:29 +11:00
.gitattributes DONT GIVE RDC ACCESS TO PY!!! HE'LL LEARN IT!! 2021-10-13 18:58:46 +11:00
.gitignore allow for alternate RSDK 2023-03-11 13:54:43 -06:00
.gitmodules poopen farten 2022-06-09 01:50:26 -05:00
clang-format-commands.txt no more RSDKv5 :( 2022-06-08 21:12:34 +10:00
CMakeLists.txt CMake: Add GAME_INCREMENTAL_BUILD option 2023-07-29 21:17:06 +02:00
Game mania para android es real 2021-08-05 00:44:18 -05:00
LICENSE.md he's here too 2022-08-25 18:45:06 -05:00
Makefile yippee!!! 2023-01-25 14:11:26 -06:00
README.md The readme if it was good 2022-09-21 13:51:05 -05:00
SonicMania.sln FUCK I LITERALLY NEVER PUSHED THESE??? 2022-08-15 13:14:25 -05:00
switch-icon.jpg The Nitnendo Swtich 2022-01-24 01:14:01 -06:00

SUPPORT THE OFFICIAL RELEASE OF SONIC MANIA (PLUS)

Even if your platform isn't supported by the official releases, you must buy or officially download it for the assets.

DO NOT USE THIS DECOMPILATION PROJECT AS A MEANS TO PIRATE SONIC MANIA.

We do not condone using this project as a means for piracy in any form. This project was made with love and care for the source material and was created for purely educational purposes, and would not exist without the work of Sega, Headcannon, and Evening Star.

If you want to transfer your save from the official PC versions, you can just copy your savedata into the folder containing the decompilation!

Additional Tweaks

  • Added a built-in mod loader and API calls to enable a much smoother modding experience.
  • Added support for targeting RSDKv5U rather than standalone RSDKv5
  • Added all content from all released versions of the game. Including: 1.00 (Console initial release), 1.03 (PC initial release) & 1.06 (Plus update)

How to Build

Most platforms will heavily encourage you to build it in conjunction with RSDKv5. However, there are some options available for some platforms if you wish to build separately.

Windows

Open SonicMania.sln and build the project you wish to build.

  • Projects ending with All use the generated All.c file in-place of compiling each object seperately. Use for faster compilation speed.
    • Adversely, projects without All compile each object using their separate source files. Use for JIT-compiling.
  • The version you choose must match up with the RSDKv5 version you run. A v5U executable cannot run a v5 Mania, etc.

Linux/Make-like systems

The makefile is a trimmed down version of the RSDKv5 makefile that only supports game compilation. By default, unlike the RSDK makefile, this will look for the default game name of SonicMania and use it as source and compile as such. Pass GAME_NAME to the makefile to change it/

Other platforms

The only directly supported platforms are those listed above. Since Mania is very easy to build, requiring no dependencies, virtually any platform that can run RSDKv5 can compile Mania easily.

However, there are a multitude of ports listed in the RSDKv5 repository.

FAQ

Q: I found a bug/I have a feature request!

A: Submit an issue in the issues tab and we might fix it in the main branch. Don't expect any major future releases, however.

Q: Will you do a decompilation for Sonic CD (2011) and/or Sonic 1/2 (2013)?

A: I already have! You can find Sonic CD here and Sonic 1/2 here.

Q: Are there anymore decompilation projects in the works, such as Sonic Origins/Sonic 3?

A: Absolutely not. This project took about 1 and a half years to do, and doing Sonic 3 would take equally as long, if not longer, as Sonic 3 is not only larger in scope, but Origins' hybrid codebase makes it harder to read. Between our other decompilation projects and this one, we're done with decompiling, at least for the time being. We would also like to expand our horizons beyond Sonic going forward, and we don't wish to spend forever just playing catchup with Sega's official releases. Please do not expect any more decompilations from us, Sonic or otherwise!

Special Thanks

  • Chuli for general decompilation assistance, helping me fix bugs, tweaking up my sometimes sloppy code and generally being really helpful and fun to work with on this project
  • The Weigman for creating the header you see up here along with similar assets
  • Everyone in the Retro Engine Modding Server for being supportive of me and for giving me a place to show off these things that I've found

Contact:

Join the Retro Engine Modding Discord Server for any extra questions you may need to know about the decompilation or modding it.