Skip to content

Shiny-Miner/Porting-template

 
 

Repository files navigation

INFO

This code just makes your party pokemon to be shown in tm case , only for FIRE RED BINARY.

Build Instructions

Build the same as the CFRU: python scripts/make.py

Alternatively, you can download the code as a .zip file from the arrow above. You can navigate to whichever branch for whichever feature you would like to check out as well.

Adding your ROM

Copy your ROM to this directory and rename it BPRE0.gba.

Configuration

Compile Time Constants

Open scripts/make.py in a text editor to set some compile-time configuration.

The build system is smart enough to find enough free space on its own, and if you want it to be inserted at a particular address, you can specify it by updating the definition of OFFSET_TO_PUT:

OFFSET_TO_PUT = 0x1C88650
SEARCH_FREE_SPACE = True   # Set to True if you want the script to search for free space
                           # Set to False if you don't want to search for free space as you for example update the engine

The build system will use OFFSET_TO_PUT to determine where in the ROM it should start looking for free space if SEARCH_FREE_SPACE is True. Otherwise, the build system places the code to insert directly at OFFSET_TO_PUT.

Building the project itself

Once you're ready, run:

$ python scripts/make.py

This won't actually modify BPRE0.gba, instead your output will be in test.gba. Naturally, test it in an emulator before continuing.

Credits

Blurose for this template he took out from CFRU and Greenphx for his awesome code Skeli made the build system used in the CFRU which is used here.

About

A new CFRU based template used by blurose and now me to port codes from decomps to binary

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C 86.6%
  • Assembly 6.6%
  • Linker Script 3.7%
  • Python 3.1%