- Clone the repo with
git clone https://github.com/hallcristobal/tpgz.git
-
In the root
tpgz
folder, run:git submodule update --init --recursive
-
Copy your NTSC-U Twilight Princess ISO to the root
tpgz
folder, then rename it togz2e01.iso
. -
Install devkitpro.
- Windows: Download here
- MacOS/Linux: Read this guide
-
Download Romhack-Compiler. This is used to add our compiled code into the ISO.
(It is recommended that you add romhack.exe to your PATH.) -
Run
make
in the roottpgz
folder to compile the code. -
Run
romhack build --raw
to create a new ISO with our changes applied.
The new ISO is located atbuild/tpgz.iso
.
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> <ntsc-u-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