2022-03-05 16:49:34 -05:00
# Portal64
2022-02-27 18:41:51 -05:00
2022-04-07 23:41:58 -04:00
A demake of portal for the Nintendo 64
## How to build
First, you will need to setup [modern sdk ](https://crashoveride95.github.io/n64hbrew/modernsdk/startoff.html )
2022-06-18 20:30:03 -04:00
Next, you will need to download blender 2.9 or higher. Then set the environment variable `BLENDER_2_9` to be the absolute path where the blender executable is located on your system.
2022-04-07 23:41:58 -04:00
2022-06-18 20:30:03 -04:00
< br / >
2022-04-30 23:51:08 -04:00
2022-06-18 20:33:32 -04:00
You will need to install python `vpk`
2022-04-30 23:51:08 -04:00
```
pip install vpk
```
2022-06-18 20:30:03 -04:00
< br / >
2022-05-17 00:22:46 -04:00
2022-06-18 20:33:32 -04:00
Install `vtf2png` , `sfz2n64` and `skeletool64`
```sh
echo "deb [trusted=yes] https://lambertjamesd.github.io/apt/ ./" \
| tee /etc/apt/sources.list.d/lambertjamesd.list
2022-06-26 20:57:00 -04:00
sudo apt install vtf2png sfz2n64 skeletool64 mpg123
2022-05-17 00:22:46 -04:00
```
2022-04-30 23:51:08 -04:00
2022-06-18 20:30:03 -04:00
< br / >
2022-04-30 23:51:08 -04:00
2022-06-18 20:30:03 -04:00
Install image magic
2022-04-30 23:51:08 -04:00
```
2022-05-17 00:22:46 -04:00
sudo apt install imagemagick
```
2022-06-18 20:30:03 -04:00
< br / >
2022-05-17 00:22:46 -04:00
2022-06-18 20:30:03 -04:00
You then need to add the following files from where portal is installed to the folder `vpk`
2022-05-17 00:22:46 -04:00
```
portal_pak_000.vpk
portal_pak_001.vpk
portal_pak_002.vpk
portal_pak_003.vpk
portal_pak_004.vpk
portal_pak_005.vpk
portal_pak_dir.vpk
2022-04-30 23:51:08 -04:00
```
2022-06-18 20:30:03 -04:00
Finally run `make` to build the project.
< br / >
2022-05-17 00:22:46 -04:00
2022-05-17 22:45:40 -04:00
## Build with Docker
2022-06-18 20:30:03 -04:00
2022-05-17 22:45:40 -04:00
Build the docker image
```
docker build . -t portal64
```
2022-06-18 20:30:03 -04:00
< br / >
2022-05-17 22:45:40 -04:00
Then build
2022-06-18 20:33:32 -04:00
```sh
2022-06-18 20:30:03 -04:00
# Set the environment variable
BLENDER_2_9=/blender/blender
# Build using docker
docker run \
-v /home/james/Blender/blender-2.93.1-linux-x64:/blender \
-e BLENDER_2_9 -v /home/james/portal/portal64/vpk:/usr/src/app/vpk \
-t -v /home/james/portal/portal64/docker-output:/usr/src/app/build portal64
2022-05-17 22:45:40 -04:00
```
2022-06-18 20:30:03 -04:00
< br / >
Where `/home/james/Blender/blender-2.93.1-linux-x64` is the folder where Blender is located.
`/home/james/portal/portal64/vpk` is the folder where the portal `*.vpk` files are located.
`/home/james/portal/portal64/docker-output` is where you want the output of the build to locate `portal.z64` will be put into this folder.
< br / >
2022-05-25 19:30:34 -04:00
## Current TODO list
2022-08-04 14:58:10 -04:00
- [ ] Prevent Glados from talking over herself
- [ ] Elevator and door sounds
- [ ] Portal gun pedistal
2022-08-08 10:37:33 -04:00
- [ ] kill plane
2022-07-09 23:47:40 -04:00
- [ ] Turn level indicator board into a game object
- [ ] Presort portal gun polygon order
2022-06-18 20:31:09 -04:00
- [ ] Change the way player standing logic works
- [ ] Cube dispenser
2022-06-20 21:22:41 -04:00
- [ ] NAN in overlap
2022-08-04 14:58:10 -04:00
- [x] Fix portal overlapping bug
- [x] Fix bug where opening a portal can trigger a teleportation
- [x] Implement level transitions