A decompilation of Perfect Dark. (MIRROR of https://gitlab.com/ryandwyer/perfect-dark)
Go to file
fgsfds 83c1bd3ffd ci: bundle DLL hell with windows builds 2023-08-13 11:56:54 +02:00
.github/workflows ci: bundle DLL hell with windows builds 2023-08-13 11:56:54 +02:00
docs Name almost all BG symbols 2023-05-23 19:37:20 +10:00
include port: fix linux build 2023-08-09 23:00:57 +02:00
ld Rename vm.c to vminit.c, tlb.s to vm.s and annotate vm.s 2023-05-21 15:54:54 +10:00
port port: make the tmem_index allocation a little bit more sane 2023-08-12 22:42:38 +02:00
src port: don't use s32s for texture pointers 2023-08-13 01:13:03 +02:00
tools port: auto-generate headers like the decomp does 2023-08-09 22:32:26 +02:00
.gitignore port: make it not crash on the intro sequence and render SOME geometry 2023-08-01 23:38:06 +02:00
.gitmodules
LICENSE Add MIT license 2022-10-31 17:33:38 +10:00
Makefile port: make it link and load 2023-07-29 23:21:35 +02:00
Makefile.port ci: bundle DLL hell with windows builds 2023-08-13 11:56:54 +02:00
README.md Update README.md 2023-08-11 22:23:18 +02:00
checksums.jpn-final.md5 Merge lang json files 2022-03-10 23:43:52 +10:00
checksums.ntsc-1.0.md5 Merge lang json files 2022-03-10 23:43:52 +10:00
checksums.ntsc-beta.md5 Merge lang json files 2022-03-10 23:43:52 +10:00
checksums.ntsc-final.md5 Merge lang json files 2022-03-10 23:43:52 +10:00
checksums.pal-beta.md5 Merge lang json files 2022-03-10 23:43:52 +10:00
checksums.pal-final.md5 Merge lang json files 2022-03-10 23:43:52 +10:00
stagetable.txt

README.md

Perfect Dark port

This repository contains a work-in-progress port of the Perfect Dark decompilation to modern platforms.

To run the port, you must already have a Perfect Dark ROM, specifically the ntsc-final/revision 1 version
(md5 e03b088b6ac9e0080440efed07c1e40f).

Status

Currently only 32-bit platforms are supported, namely x86 Windows and Linux. Note that 32-bit binaries will still work on 64-bit versions of those platforms, though you might have to install some additional libraries.

The game is in a somewhat functional but probably unstable state. There are major graphical issues, minor audio issues and possibly other issues. Splitscreen modes currently do not work.

There are currently no "extra features" implemented, such as widescreen, except for janky mouselook, arbitrary 4:3 resolution support and somewhat expanded heap size.

Running

  1. Create a directory named data next to pd.exe.
  2. Put your Perfect Dark ROM named pd.ntsc-final.z64 into it.
  3. Run pd.exe.

Building

  1. Ensure you have SDL2, libGL and ZLib installed on your system.
  2. Run make -f Makefile.port in the perfect_dark directory.
  3. The resulting executable will be at build/ntsc-final-port/pd.exe.

If cross-compiling, specify the target platform on the make command line like so:
make -f Makefile.port TARGET_PLATFORM=i686-linux

Currently only i686-linux and i686-windows are supported, using gcc -m32 and i686-w64-mingw32-gcc as compilers, respectively.
This means that on Windows you have to build this under a 32-bit MinGW environment and on Linux you need to have gcc-multilib and g++-multilib (or your distro's analogues) installed.
Alternate compilers can be specified by passing TOOLCHAIN=i686-whatever- as a command line argument.

Credits