- Clone the repo locally.
git clone https://github.com/zsrtp/tpgz.git
- In the root
tpgz
folder, run:
git submodule update --init --recursive
-
Copy your Twilight Princess ISO into the
isos
folder. You will need to rename the ISO based on which platform and region you're building for.Game Version ISO Name Gamecube USA GZ2E01.iso Gamecube PAL GZ2P01.iso Gamecube JPN GZ2J01.iso Wii USA 1.0 RZDE01.iso Wii PAL RZDP01.iso -
Install devkitpro.
- Windows: Download here
- MacOS/Linux: Read this guide
-
Download the latest Romhack-Compiler.
- This is used to add our compiled code into the ISO.
- It is recommended that you add romhack.exe to your PATH.
- (For compiling the GameCube version, ensure you download the
-gc
version)
-
Create a
build
directory and navigate to itmkdir build cd build/
-
Configure CMake from the
build
directory#Example: cmake .. -D PLATFORM=GCN -D REGION=NTSCU
- Supported values for PLATFORM are
GCN
andWII
- Supported values for REGION are
NTSCU
,NTSCU_10
,NTSCJ
andPAL
- If you don't set these, the default values of
GCN
andNTSCU
will be assumed when building.
- Supported values for PLATFORM are
-
Run
make
in thebuild
directory to compile the code. -
Run
romhack build --raw
to create a new ISO with our changes applied.- The new ISO is located at
build/tpgz.iso
.
- The new ISO is located at
Patch files are a convenient way to share your changes with others.
-
To create a patch, run:
romhack build --raw --patch
The new patch file is located at
build/tpgz.patch
. -
To apply a patch, run:
romhack apply <example.patch> <input.iso> <output.iso>
Your patched ISO will be named <output.iso>.
To compile alternative fonts:
-
Place your font in
external/fonts/fonts/
-
Replace the following command in the Makefile:
cargo run -I fonts/your_font.ttf -S 18.0 -N Your_Font_Name -O build
-
Run
make font