This repo contains a WIP decompilation of Sonic Riders Tournament Edition, which is based off of Sonic Riders (USA).
It builds the following DOL:
main.dol: sha1: 1be22a929b4d51a11dcf1bee34d45600b561ee6c
NOTE: The DOL is currently shiftable. This means you can add data anywhere you want, without it breaking the entire game.
Below are required MSYS2 terminal packages (in-depth installation is found in the instructions):
- mingw-w64-x86_64-python
- mingw-w64-x86_64-cmake
- mingw-w64-x86_64-gcc
- dkp-cmake-common-utils
These instructions are catered to Windows. Instructions may vary on different operating systems.
For maximum compatibility, you should install devkitPro using their graphical installer, and you should use the MSYS2 terminal included with your devkitPro installation, using the MINGW64 environment. By default, the MSYS2 terminal launches in the MSYS2 environment. To launch it in the MINGW64 environment, run mingw64.exe
in your devkitPro's MSYS2 installation folder. The following instructions assume you are using the MSYS2 terminal with the proper environment.
-
Make sure your terminal is up to date. Do this via
pacman -Syu
. -
Make sure you have Python installed in your environment. You can do so via
pacman -S mingw-w64-x86_64-python
.- If this gives you an error saying
error: target not found
, you need to add all the mingw64 repositories to your pacman. - To do this, run
nano /etc/pacman.conf
to open up pacman's configuration in a CLI text editor. - Add the following lines at the bottom of this file:
[mingw64] Include = /etc/pacman.d/mirrorlist.mingw64
- Press
CTRL+X
, thenY
, thenEnter
to save changes. - Run
pacman -Syu
to update your changes, then try installing the package again.
- If this gives you an error saying
-
Make sure you have the correct version of cmake installed. You can do this in the terminal via
pacman -S mingw-w64-x86_64-cmake
. -
Also make sure you have the following packages installed using these commands:
pacman -S mingw-w64-x86_64-gcc
andpacman -S dkp-cmake-common-utils
. -
Last but not least, navigate to your devkitPro folder (usually at
C:\devkitPro
), and go into thecmake
folder and opendkp-initialize-path.cmake
with a text editor. -
Comment out lines 3-5 using the
#
symbol, so that they look like this:
#if(CMAKE_HOST_WIN32)
# message(FATAL_ERROR "CMake must be installed and launched from msys2: pacman -S cmake")
#endif()
-
Once that's done, clone the repo to your computer via
git clone
or any other similar way. (This step doesn't go through the MSYS2 terminal.) -
Once cloned, navigate to the
tools
directory in the terminal using thecd
command. Then run themakeTools.sh
script via this command:./makeTools.sh
. -
After that, make a new folder in the root folder of the project, where the build files will be generated in. For example, you can name the folder
build
. -
Navigate into that directory using the
cd
command again. Then run the following command to generate the build files:$DEVKITPRO/devkitPPC/bin/powerpc-eabi-cmake ../
-
Run
ninja
in the same directory to build the DOL file (you can also runninja -j$(nproc --all)
for faster build times). Themain.dol
file will be built and compiled into the same build folder you created.
Contributions and PRs are welcome.