-
Notifications
You must be signed in to change notification settings - Fork 92
Compiling OOT
MattsCreative has a great video tutorial on how to compile this project here: https://youtu.be/swv1Tv-kjsU
Python 3.10 Add to path during the install
Git Choose x64 Build and Use the git bash to clone the repo and to run setup.py
Visual Studio Community 2022 During setup click C++ development
Visual Studio 2019+ is the only currently supported build environment, and only the 32-bit X86/WIN32 build
You must use the ZAPD that is included with this repository, and not the main branch as it is modified.
If you are using the EUR PAL 1.0 retail rom,
make sure baserom_original.z64 or baserom_original.n64 is inside the correct folder as shown below:
\ooot\roms\PAL_1.0\
iF the roms hash is not correct it won't extract the assets and continue. "hash_md5": ["c02c1d79679f7ceb9a3bde55fff8aa13"]
Open git Bash or command prompt and type:
git clone --recursive https://github.com/blawar/ooot.git
after it's done type cd ooot
run this command next to extract the assets from the rom. (baserom_original.z64 must exist in the directory \ooot\roms\PAL_1.0\
)
python setup.py -b PAL_1.0
if you are using the EUR Master Quest Debug rom.
make sure baserom_original.z64 or baserom_original.n64 is inside the correct folder as shown below:
\ooot\roms\EUR_MQD\
if the roms hash is not correct it won't extract the assets and continue. "hash_md5": ["f0b7f35375f9cc8ca1b2d59d78e35405", "8ca71e87de4ce5e9f6ec916202a623e9"
Open git Bash or command prompt and type:
git clone --recursive https://github.com/blawar/ooot.git
after it's done type cd ooot
run this command next to extract the assets from the rom. (baserom_original.z64 must exist in the directory \ooot\roms\EUR_MQD\
)
python setup.py -b EUR_MQD
Open OOT.sln
, you will find this in \ooot\vs
make sure Debug - Win32** or **Release - Win32
is selected, then hit build.
Once the build completes, press F5 to start it if you are testing code but if you are compiling to play right click oot
on the side and click build.
git checkout dev
git pull origin dev
git submodule update --init --recursive
python setup.py -c -b PAL_1.0 -f 60
open git bash type:
cd ooot
git pull
if you are running 60FPS dev branch type:
python setup.py -c -b PAL_1.0 -f 60
if you are running the 20FPS type:
python setup.py -b PAL_1.0
python setup.py -b EUR_MQD
and Open OOT.sln
, you will find this in \ooot\vs
make sure Debug - Win32** or **Release - Win32
is selected, then hit build.
Not currently supported, however a makefile and porting of GLideN64 would allow this and a PR is welcome.
Linux does not currently work. The below steps are for development purposes.
Debian/Ubuntu
sudo apt install gcc-multilib g++-multilib
sudo apt install libsdl2-dev
sudo apt install libpng-dev
sudo apt install python3
sudo apt install python3-pip
sudo apt install meson
Arch Linux
edit /etc/pacman.conf annd go to the bottom uncomment multilib so remove the # do not touch testing.
sudo pacman -S gcc lib32-gcc-libs
sudo pacman -S sdl2 lib32-sdl2
sudo pacman -S meson
sudo pacman -S python-pip
sudo pacman -S libpng
Fedora Linux
sudo dnf in gcc
sudo dnf in sdl2-devel
sudo dnf in meson
sudo dnf in python3-pip
sudo dnf in libpng
setup.py -b EUR_MQD
meson setup linux
cd linux
ninja