A demake of Portal for the Nintendo 64
Go to file
2023-09-01 22:01:14 -06:00
.github/ISSUE_TEMPLATE Update bug_report.md 2023-04-29 11:13:29 +01:00
asm Set save type to SRAM for later ev models 2023-05-03 21:22:46 -06:00
assets Fix portal gun z issues 2023-09-01 22:01:14 -06:00
documentation Document how to use the debugger with the evedrive 2023-03-23 22:44:35 -06:00
skelatool64 Fix portal gun z issues 2023-09-01 22:01:14 -06:00
src Implement rotating portals 2023-09-01 20:48:39 -06:00
tools fix some surface generator bugs after refactor 2023-08-28 12:17:07 -06:00
vpk fix: Closed code block 2022-08-29 12:51:26 +01:00
.dockerignore Make docker build work 2023-05-16 20:15:11 +02:00
.editorconfig Start work on font rendering 2023-04-20 08:32:40 -06:00
.gitignore added an exception to the gitignore for the cimg zip that gits downloaded 2023-02-28 20:38:21 -06:00
CONTRIBUTING.md Adding a CONTRIBUTING.md to the project 2023-04-02 14:23:17 -05:00
Dockerfile Make docker build work 2023-05-16 20:15:11 +02:00
LICENSE Adding a License 2023-04-02 13:58:26 -05:00
Makefile Add collision to portal border 2023-08-20 21:57:49 -06:00
Makefile.docker Cleanup makefile 2023-05-16 18:48:36 +00:00
portal.ld Start work on dynamic loading of models 2023-07-14 23:10:48 -06:00
README.md Only trigger button with cubes speech triggers if the cube is sleeping 2023-08-26 15:36:05 -06:00

Portal64

A demake of Portal for the Nintendo 64.

How to build

First, you will need to setup Modern SDK.

After installing modern sdk you will want to also install

sudo apt install libnustd

Next, you will need to download Blender 3.0 or higher. Then set the environment variable BLENDER_3_0 to be the absolute path where the Blender executable is located on your system.

sudo apt install blender

e.g. add this to your ~/.bashrc

export BLENDER_3_0="/usr/bin/blender"

You will need to install Python vpk.

pip install vpk

Install vtf2png, sfz2n64, and setup skeletool64.

echo "deb [trusted=yes] https://lambertjamesd.github.io/apt/ ./" \
    | sudo tee /etc/apt/sources.list.d/lambertjamesd.list
sudo apt update
sudo apt install vtf2png sfz2n64 mpg123 sox imagemagick unzip

Install lua5.4 (remove other perhaps installed versions first, skelatool64 needs to be build with luac 5.4!)

sudo apt install lua5.4 liblua5.4-dev liblua5.4-0

Setup and build skelatool64 (the version included in this portal64 repo!)

cd skelatool64
./setup_dependencies.sh
make

You will need to install nodejs. You can use apt for this

sudo apt install nodejs

You then need to add the following files from where Portal is installed to the folder vpk. (see vpk/add_vpk_here.md for more details!)

portal/portal_pak_000.vpk  
portal/portal_pak_001.vpk  
portal/portal_pak_002.vpk  
portal/portal_pak_003.vpk  
portal/portal_pak_004.vpk  
portal/portal_pak_005.vpk  
portal/portal_pak_dir.vpk

hl2/hl2_sound_misc_000.vpk
hl2/hl2_sound_misc_001.vpk
hl2/hl2_sound_misc_002.vpk
hl2/hl2_sound_misc_dir.vpk

Finally, run make to build the project.

# Clean out any previous build files
make clean

# Build
make

# In case you have any trouble with ROM running on hardware try
# wine install required to run properly
sudo apt install wine
make fix

Build with Docker

Build the Docker image.

make -f Makefile.docker build

Then build.

make -f Makefile.docker

Current New Feature TODO List

  • Add auto save checkpoints
  • Correct elevator timing
  • Adding loading notice between levels #45
  • ball velocity in test chamber 11
  • test chamber 04 has seams in a corner
  • pausing while glados is speaking can end her speech early
  • don't count boxes on buttons until it is released and stable
  • Portal not rendering recursively sometimes #138
  • disable portal surfaces manually on some surfaces #135
  • test chamber 02 needs more light in the first room
  • Presort portal gun polygon order #102

Current New Sounds TODO List

  • Box collision sounds
  • Unstationary scaffolding moving sound
  • Ambient background loop

Current Bug TODO List (Hardware Verified) (High->Low priority)

----------------------- v8

  • player can clip through back of elevator by jumping and strafeing at the back corners while inside.
  • Player can trap themselves in chamber 5 by following instructions issue #75
  • Two wall portals next to eachother can be used to clip any object out of any level by pushing it into corner, then dropping.
  • Passing into a ceiling portal can sometimes mess with the player rotation
  • various visual glitches when running NTSC on PAL console #65
  • various visual glitches when running PAL on NTSC console #65
  • Can shoot portals, and walk through signage
  • Can place portals on ground after final fizzler on all levels