Compiling
This compiling guide is targeted towards WSL/Linux users.
If using WSL, I suggest setting up ArchWSL.
If using Linux, the following info below is for Arch Linux, so you may have to adapt the package requirements if you are using a different distribution.
Prerequisites
Files
- P2G.iso (unpatched ISO)
- FUC.iso (patched ISO)
- deceboot (download)
Dependencies (Arch Linux)
- base-devel
- cdrtools
- cmake
- git
- python
- python-pip
- python-setuptools
- p7zip
- wget
Setup
You will need at least 5GB of free space.
Download the source and extract. Inside the extracted directory create a iso
and tools
folder and place FUC.iso
and P2G.iso
inside the iso
folder. place deceboot
archive (filename should be deceboot_0_3.zip
) inside the tools
folder.
Your directory structure should look like this after you’ve placed everything accordingly.
.
├───.git
├───data
├───iso
│ ├───P2G.iso
│ └───FUC.iso
├───modloader
├───mods
├───patches
└───tools
└───deceboot_0_3.zip
.gitignore
build_iso.sh
build.sh
events_builder.sh
main.asm
README.md
setup.sh
ULJM05500.ini
Once done open a terminal to the path of the source directory and execute ./setup.sh
. This will take a while.
Build
Compile/Patch ISO_ROOT
Before you compile, you can place any additional mods you want to apply to DATA.BIN
in the builds/data_in
folder with their name as their file ID.
To compile the asm patches and patch ISO_ROOT
, run ./build.sh
.
You can test modloader changes with current release ISO by placing PRELOAD.BIN
, MODLOAD.BIN
and CONFIG.BIN
located in build/ISO_ROOT/FUC
folder into your SAVEDATAs FUCDAT
folder.
Build ISO
Once you are happy with your changes, run ./build_iso.sh
to generate a ISO. This will be found at build/FUC_Debug.ISO