mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-22 09:22:18 -05:00
bd6e637fee
* add python version requirement to BUILDING.md extract_assets uses match statements which were added in python version 3.10 * update wording/version on python requirement https://github.com/HarbourMasters/Shipwright/pull/251 removes the 3.10 specific match statements, dropping the python version requirement to 3.6. * Update BUILDING.md * Update BUILDING.md * Update BUILDING.md * Update BUILDING.md * switch python link to download page * Fixed SHA-1 for retail ROM * Added discord link Co-authored-by: briaguya <70942617+briaguya-ai@users.noreply.github.com> Co-authored-by: InfoManiac742 <ryanjgabel@gmail.com>
2.4 KiB
2.4 KiB
Building Ship of Harkinian
Windows
- Requires Python >= 3.6.
- Install Visual Studio 2022 Community Edition
- In the Visual Studio Installer, install
MSVC v142 - VS 2019 C++
. - Clone the Ship of Harkinian repository.
- Place one or more compatible roms in the
OTRExporter
directory with namings of your choice. - Run
OTRExporter/OTRExporter.sln
. - Switch the solution to
Release x64
. - Build the solution.
- Launching
OTRExporter/extract_assets.py
will generate anoot.otr
archive file inOTRExporter/oot.otr
. - Run
soh/soh.sln
- Switch the solution to
Release x86
. - Build the solution.
- Copy the
OTRExporter/oot.otr
archive file tosoh/Release
. - Launch
soh.exe
.
Linux
# Clone the repo
git clone git@github.com:HarbourMasters/ShipWright.git
cd ShipWright
# Copy the baserom to the OTRExporter folder
cp <path to your ROM> OTRExporter
# Build the docker image
sudo docker build . -t soh
# Run the docker image with the working directory mounted to /soh
sudo docker run --rm -it -v $(pwd):/soh soh /bin/bash
Inside the Docker container:
# Clone and build StormLib
git clone https://github.com/ladislav-zezula/StormLib external/StormLib
cmake -B external/StormLib/build -S external/StormLib
cmake --build external/StormLib/build
cp external/StormLib/build/libstorm.a external
cp /usr/local/lib/libGLEW.a external
cd soh
# Extract the assets/Compile the exporter/Run the exporter
make setup -j$(nproc) OPTFLAGS=-O0 DEBUG=0
# Compile the code
make -j $(nproc) OPTFLAGS=-O0 DEBUG=0
Compatible Roms
OOT_PAL_GC checksum 0x09465AC3
OOT_PAL_GC_DBG1 checksum 0x871E1C92 (debug non-master quest)
OTRExporter Usage
The OTRExporter exports an oot.otr
archive file which Ship of Harkinian requires to play.
Use the extract_assets.py
script file to run the exporter using any of the following methods:
- Double click on the script after placing one or more roms in the directory.
- Drag & Drop a rom onto the script.
- In a terminal run
python3 extract_assets.py
after placing one or more roms in the directory. - In a terminal run
python3 extract_assets.py <path_to_rom>
If the script finds multiple roms the user is prompted which to use. Selection is done using the number keys and then pressing the carriage return key.