Skip to content

Custom rel loader + library for Super Paper Mario

License

Notifications You must be signed in to change notification settings

SeekyCt/spm-rel-loader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custom Rel Loader for Super Paper Mario

A project to allow rel files created by PistonMiner's rel tools to be ran in Super Paper Mario.

The file "/mod/mod.rel" is loaded from the disc (add with Riivolution or by ISO patching with Wiimms ISO Tools) and executed during boot, after the game's rel, by the cheat code given in the loader folder (source is in loader.s and can be assembled with a tool like Pyiiasmh or Codewrite, or pre-assembled versions are available in the .txt files).

Regions & Revisions

To change the target region or revsion for a rel, use make rgX, where rg is the region code ('eu', 'us', 'jp' or 'kr') and X is the revision number (0-1 for eu & jp, 0-2 for us, 0 for kr).

To change the target for the loader, edit the definitions of REGION ('e' for eu, 'u' for us, 'j' for jp and 'k' for kr) and REVISION (0-1 for eu & jp, 0-2 for us, 0 for kr) and change the injection address in the tool you're using to assemble the gecko code to the corresponding one listed at the top of the file.

Contents

  • loader: Gecko code to load and run a custom rel file in Super Paper Mario
  • rel: Framework for writing code on-top of existing code in Super Paper Mario
  • elf2rel: Convert from ELF file to REL file

Credits

  • PistonMiner and Zephiles for their work on the original TTYD rel loader this is based off of.

About

Custom rel loader + library for Super Paper Mario

Resources

License

Stars

Watchers

Forks

Languages

  • C++ 84.2%
  • Makefile 8.8%
  • Assembly 6.5%
  • C 0.5%