2024-10-19 17:34:15 -04:00
## How to Build
### SDK
2023-12-19 12:42:49 -05:00
First, you will need to setup [Modern SDK ](https://crashoveride95.github.io/n64hbrew/modernsdk/startoff.html ).
2024-10-19 17:34:15 -04:00
### Game Dependencies
You can install most dependencies using your package manager's default repository:
```sh
sudo apt install build-essential cmake ffmpeg git imagemagick nodejs pip pipx python3 sox unzip
```
For the following dependencies, first add the following custom repository:
```sh
echo "deb [trusted=yes] https://lambertjamesd.github.io/apt/ ./" \
| sudo tee /etc/apt/sources.list.d/lambertjamesd.list
sudo apt update
sudo apt install sfz2n64 vtf2png
```
Next, you will need to install Blender 3.6 LTS (please don't use e.g. 4.x, only 3.6.x will work correctly). Then set the environment variable `BLENDER_3_6` to be the absolute path where the Blender 3.6 executable is located on your system.
2023-12-19 12:42:49 -05:00
```sh
sudo snap install blender --channel=3.6lts/stable --classic
```
2024-10-19 17:34:15 -04:00
E.g., add this to your `~/.bashrc` if you used snap (or you can use `which blender` to find the path of Blender 3.6):
2023-12-19 12:42:49 -05:00
```bash
export BLENDER_3_6="/snap/bin/blender"
```
2024-10-19 17:34:15 -04:00
Install the Python `vpk` module using pipx:
2023-12-19 12:42:49 -05:00
```sh
sudo apt install pipx
pipx ensurepath
pipx install vpk
```
2024-10-19 17:34:15 -04:00
### Skeletool Dependencies
2023-12-19 12:42:49 -05:00
2024-10-19 17:34:15 -04:00
Setup and install dependencies for `skelatool64` :
2023-12-19 12:42:49 -05:00
```sh
2024-10-19 17:34:15 -04:00
sudo apt install cimg-dev libassimp-dev liblua5.4-0 liblua5.4-dev libpng-dev libtiff-dev libyaml-cpp-dev lua5.4
2023-12-19 12:42:49 -05:00
```
2024-10-19 17:34:15 -04:00
**Note:** Lua 5.4 is required!
2023-12-19 12:42:49 -05:00
2024-10-19 17:34:15 -04:00
### Getting the Code
2023-12-19 12:42:49 -05:00
2024-10-19 17:34:15 -04:00
Clone the Portal64 repo or download the zip.
2023-12-19 12:42:49 -05:00
```sh
2024-10-19 17:34:15 -04:00
git clone https://github.com/mwpenny/portal64-still-alive.git portal64
cd portal64
2023-12-19 12:42:49 -05:00
```