The prerequisites you will need are having Xcode, the Xcode command line tools, Homebrew, and CMake. The command line tools can be installed by running xcode-select --install after installing Xcode itself, and CMake
can be installed through Homebrew by running brew install cmake.
Previously I had you clone Sappharad's fork of the Mania decompilation for you to do this. However, that hasn't been updated in a while, and I don't feel like bothering him enough to update it. Therefore, you can use my fork instead!
git clone --recursive https://github.com/MarioMastr/Sonic-Mania-Decompilation
There is currently a new version of the modding API being worked on, so if you are an aspiring modder and want to tinker around with them before they're ready, add -b modapi-v3 to the command before the --recursive.
The resulting folder will be found as Sonic-Mania-Decompilation in whatever working directory you were in when running the command.
Go into the RSDKv5 dependency ($(pwd)/Sonic-Mania-Decompilation/dependencies/RSDKv5).
My fork is built to be modular, having several experimental features other than macOS compatibility (mac branch) if you would like that. The sdl3 branch adds SDL3 support, and the steam branch adds Steam support. You can add these through git branch $branch_name origin/$branch_name and merge them through git merge --squash --no-commit $branch1 $branch2 $branchx.
(example: git branch mac origin/mac && git branch sdl3 origin/sdl3 && git merge --squash --no-commit mac sdl3)
If you want to build RSDKv5 or RSDKv5U (the version of RSDKv5 built specifically for Sonic Origins that allows you to run all the previous RSDK games (Sonic 1, 2, CD)), delve into the CMakeLists.txt and find the entry for RETRO_REVISION. Keep it to 3 if you want v5U, change it to 2 if you want v5. If you're running Sonic Mania, v5 is the recommended choice. If you're using the modapi-v3 branch, v5 is the ONLY choice.
Install libogg, libtheora, and SDL2 through Homebrew.
brew install libogg theora sdl2
Run the command cmake -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo && cmake --build build. The resulting app should be placed in build/dependencies/RSDKv5.
Create a folder somewhere where you can then copy the app into.
Obtain a Data.rsdk file of Sonic Mania Plus. I'm legally required to tell you that you should buy the game from Steam in order to access this. There's always Steam keys if you really want to save cash. Once you do, copy it into that folder.
Then simply run the app!
If you want mods, you need to:
- Run the app at least once.
- Open Settings.ini and add
devMenu=yto it under[Game]. - Create a folder named
mods. - Go here and download all the wonderful mods you want.
- Add them to the mods folder.
- Open the game again, press escape to open the Dev Menu, scroll down to Mods, and then enable all the mods you want.
If you want to run the other RSDK games, obtain their Data.rsdk files using Sonic Origins and then follow this handy-dandy tutorial by MegAmi which should get you up and running.
If you are experiencing any issues, comment on this gist and I'll try to get around to them when I can.
Excellent tutorial, thank you for making this!