WIP 1:1 decompilation of Super Paper Mario
Go to file
2023-12-29 15:34:54 +00:00
.github/workflows Fix double .zip in CI 2023-09-17 21:11:42 +01:00
config Split debug.c 2023-12-29 15:08:25 +00:00
orig New build system 2022-07-01 12:13:31 +01:00
rel Fixes for new spm-headers 2023-09-12 22:42:45 +01:00
spm-headers Decompile OSPanic 2023-12-29 15:34:54 +00:00
src Decompile OSPanic 2023-12-29 15:34:54 +00:00
tools Update ppcdis 2023-08-31 18:58:07 +01:00
.gitignore Update .gitignore 2023-09-23 18:22:24 +01:00
.gitmodules New build system 2022-07-01 12:13:31 +01:00
common.py Allow wine override 2023-09-16 12:57:44 +01:00
configure.py Allow wine override 2023-09-16 12:57:44 +01:00
CONTRIBUTING.md Update diff.py 2022-07-08 00:19:27 +01:00
decompme.py Allow wine override 2023-09-16 12:57:44 +01:00
diff_settings.py Update diff.py 2023-01-22 00:11:59 +00:00
diff.py Update diff.py 2023-01-22 00:11:59 +00:00
expected.py New build system 2022-07-01 12:13:31 +01:00
getfunction.py getfunction inline asm option 2022-10-31 19:27:21 +00:00
makectx_m2c.py Allow wine override 2023-09-16 12:57:44 +01:00
makectx.py Fix makectx and diff 2023-01-03 15:16:49 +00:00
makesrc.py Source file skeleton generation 2022-11-14 20:05:06 +00:00
progress.py Expand progress script 2022-09-04 16:50:02 +01:00
README.md Automatic REL Decompression Support (#6) (#14) 2022-12-12 15:50:38 +00:00
requirements.txt Update requirements.txt 2023-01-22 00:05:03 +00:00

spm-decomp

Decompilation of Super Paper Mario PAL revision 0. This will never be a decompilation of the full game, just specific parts that are useful or interesting, and it certainly won't lead to ports to any other platform. The repo is currently not shiftable (i.e. making changes to the code that causes functions or data to change size or move won't create a working output) but is intended to be at some point. The SDK, NW4R and MSL libraries are out of scope for this project and will not be decompiled (though partial headers will be needed for them to allow other code to be decompiled).

See also https://github.com/SeekyCt/spm-docs for other documentation.

Building

  • Dump a copy of the game and extract the main.dol & relF.bin files
  • Place main.dol and relF.bin in the orig folder
  • Place Codewarrior EPPC Version 4.1 Build 60831 in tools/4199_60831
  • Install DevkitPPC, Ninja and Python
    • DevkitPPC r38 and r41 are known to work, other versions probably do too
    • Python 3.8+ is supported, earlier versions may work
  • If you didn't use --recursive when cloning, run git submodule update --init --recursive
  • Install the modules from requirements.txt (pip install -r requirements.txt)
  • Run configure.py
  • Run ninja

Pulling

When pulling the repo later on, make sure to rerun configure.py and git submodule update --recursive

Checking Progress

Running progress.py after a successful build will give the current dol & rel .text section progress.

Contributing

See CONTRIBUTING.md

Modding

In its current state, the repo isn't really ready for direct editing (the DOL isn't shiftable, the REL might be but it's not been thoroughly tested), but functions can be copied into REL mods and edited there, and the documentation is still useful.

Credits

  • PistonMiner, Zephiles, Jdaster64, Jasper, NWPlayer123, Malleo, SolidifiedGaming and Diagamma for their TTYD documentation
  • All contributors to the PM64 decomp
  • All contributors to asm-differ
  • All contributors to ppcdis