Considering that I've seen no other tutorials on how to build RSDKv5(U) on macOS (and considering that a lot of people just use this tutorial instead), I've decided to take matters into my own hands and futureproof this tutorial so that I never have to worry about it again!
Notes: every time I say to "cd into *specific directory here*", that is your cue to run cd *specific directory here*
in the command line.
How to build RSDKv5:
Step 1: Install Xcode and the command tools (the command tools can be installed by running this command: xcode-select --install
but only after installing Xcode). If you already have them, move on to step 2.
Step 2: You need to install CMake. If you have Homebrew installed already on your Mac, you can run brew install cmake
to install it, but if you don't, you can still install it by using this link (scroll down to where it says "macOS 10.13 or later"). You can then open ~/.zshrc
and add alias cmake = /Applications/CMake.app/Contents/bin/cmake
to a new line in order to make the rest of this tutorial works perfectly for you.
Step 3: 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
You should find it in your user folder (Macintosh HD/Users/yourusernamehere/).
Step 4: Cd into that directory and run git submodule update --remote --init --recursive
because Git is stupid and doesn't clone the repository properly.
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. I recommend v5U, however.
Step 5: Run the command cmake -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo && cmake --build build
. The resulting app should be placed in the directory /Users/yourusernamehere/Sonic-Mania-Decompilation/build/dependencies/RSDKv5
.
Step 6: Create a folder somewhere where you can then copy the app into.
Step 7: 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 change the
devMenu
entry fromn
toy
. - Create a folder named
mods
. - Go here
https://gamebanana.com/games/6045
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.
Excellent tutorial, thank you for making this!