Tested on WSL.
To build a ROM:
- Install the toolchain:
cd ~ sudo apt-get install git gcc unzip mercurial automake libelf-dev libperl-dev libgtk2.0-dev libgmp-dev libmpfr-dev git clone https://github.com/glankk/n64.git cd n64 ./install_deps ./configure --prefix=/opt/n64 --enable-vc sudo make toolchain-all sudo make toolchain-install sudo make install-sys sudo rm -rf /opt/n64/mips64/include/z64hdr git clone https://github.com/z64tools/z64hdr.git sudo mkdir /opt/n64/mips64/include/z64hdr sudo mv -f z64hdr/* /opt/n64/mips64/include/z64hdr && sudo rm -rf z64hdr cd ../ git clone https://github.com/z64utils/nOVL.git cd nOVL gcc -o novl -s -Os -DNOVL_DEBUG=1 -flto src/*.c `pkg-config --cflags --libs libelf glib-2.0` sudo cp novl /opt/n64/bin/
- Run
sudo nano ~/.bashrc
and addexport PATH="/opt/n64/bin/:$PATH"
at the end of the file. - Move to a folder outside of the WSL filesystem. Then, run
git clone https://github.com/Newer-Team/Hero-of-Law.git - Go into /Build and place
oot-1.0-dec.z64there. This has to be a 1.0 US Zelda Ocarina of Time ROM, decompressed. - Run
python3 prepare.py - Get this release of NPC Maker. Copy the NPCMaker 3.702 folder from within it to Tool/ and rename it to "NPCMAKER".
- [Optional] Obtain a WAD of Hero of Law by patching an Ocarina of Time WAD on our website and put it into
/Build/tool/gzinjectas "Zelda Ocarina N64 NTSC.wad" - [Optional] Obtain Wii common key and put it as
common_key.binin/Build/tool/gzinject. - Run
./rebuild.sh -a -r