2022-04-24 11:00:14 -04:00
# Building Ship of Harkinian
2022-05-11 13:18:24 -04:00
## Windows
2022-05-15 15:28:27 -04:00
1. Requires [Python ](https://www.python.org/downloads/ ) >= 3.6.
2022-04-24 11:00:14 -04:00
2. Install [Visual Studio 2022 Community Edition ](https://visualstudio.microsoft.com/vs/community/ )
2022-05-13 18:44:58 -04:00
3. In the Visual Studio Installer, install `MSVC v142 - VS 2019 C++` .
2022-04-24 11:00:14 -04:00
4. Clone the Ship of Harkinian repository.
5. Place one or more [compatible ](#compatible-roms ) roms in the `OTRExporter` directory with namings of your choice.
6. Run `OTRExporter/OTRExporter.sln` .
7. Switch the solution to `Release x64` .
2022-05-11 13:18:24 -04:00
8. Build the solution.
2022-04-24 11:00:14 -04:00
9. Launching `OTRExporter/extract_assets.py` will generate an `oot.otr` archive file in `OTRExporter/oot.otr` .
10. Run `soh/soh.sln`
2022-07-18 19:25:11 -04:00
11. Switch the solution to `Release x86` or `Release x64` .
2022-04-24 11:00:14 -04:00
12. Build the solution.
13. Copy the `OTRExporter/oot.otr` archive file to `soh/Release` .
14. Launch `soh.exe` .
2022-05-11 13:18:24 -04:00
## Linux
```bash
# Clone the repo
2022-06-06 19:23:29 -04:00
git clone https://github.com/HarbourMasters/Shipwright.git
2022-07-08 17:39:21 -04:00
cd Shipwright
2022-05-11 13:18:24 -04:00
# 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:
```bash
cd soh
# Extract the assets/Compile the exporter/Run the exporter
2022-05-21 13:37:46 -04:00
make setup -j$(nproc) OPTFLAGS=-O2 DEBUG=0
2022-05-11 13:18:24 -04:00
# Compile the code
2022-05-21 13:37:46 -04:00
make -j $(nproc) OPTFLAGS=-O2 DEBUG=0
2022-05-11 13:18:24 -04:00
```
2022-06-22 14:59:21 -04:00
## macOS
2022-07-25 18:55:41 -04:00
1. Requires Xcode (or xcode-tools) && `sdl2, libpng, glew, cmake, pkgconfig, dylibbundler` (can be installed via homebrew, macports, etc)
2022-06-22 14:59:21 -04:00
```bash
# Clone the repo
git clone https://github.com/HarbourMasters/Shipwright.git
cd ShipWright
# Copy the baserom to the OTRExporter folder
cp < path to your ROM > OTRExporter
cd soh
# Extract the assets/Compile the exporter/Run the exporter
# -jX defines number of cores to use for compilation - lower or remove entirely if having issues
2022-07-10 10:51:12 -04:00
make setup -j8 DEBUG=0
2022-06-22 14:59:21 -04:00
# Compile the code (watch the -j parameter as above)
2022-07-10 10:51:12 -04:00
make -j8 DEBUG=0
2022-06-22 14:59:21 -04:00
# Create macOS app bundle
2022-07-13 00:19:07 -04:00
make appbundle
2022-06-22 14:59:21 -04:00
```
2022-07-13 00:19:07 -04:00
9. Copy your OTR file to ~/Library/Application\ Support/com.shipofharkinian.soh
10. Launch soh app in the soh folder!
2022-06-22 14:59:21 -04:00
2022-05-11 13:18:24 -04:00
# Compatible Roms
2022-04-24 11:00:14 -04:00
```
OOT_PAL_GC checksum 0x09465AC3
OOT_PAL_GC_DBG1 checksum 0x871E1C92 (debug non-master quest)
```
2022-05-13 18:44:58 -04:00
# 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:
2022-05-15 15:28:27 -04:00
1) Double click on the script after placing one or more roms in the directory.
2) Drag & Drop a rom onto the script.
3) In a terminal run `python3 extract_assets.py` after placing one or more roms in the directory.
4) In a terminal run `python3 extract_assets.py <path_to_rom>`
2022-05-13 18:44:58 -04:00
2022-05-15 15:28:27 -04:00
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.
2022-05-13 18:44:58 -04:00