A decompilation of Perfect Dark. (MIRROR of https://gitlab.com/ryandwyer/perfect-dark)
Go to file
fgsfds 420053178e Merge branch 'master' of https://github.com/n64decomp/perfect_dark into port 2023-08-19 11:45:17 +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: added rumble scale and support for 2 extra buttons 2023-08-18 12:26:55 +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: mouse wheel binds; handle adding and removing controllers 2023-08-19 02:16:58 +02:00
src Merge branch 'master' of https://github.com/n64decomp/perfect_dark into port 2023-08-19 11:45:17 +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 Remove support for qemu-irix and require the use of recomp 2022-02-15 23:24:53 +10:00
LICENSE Add MIT license 2022-10-31 17:33:38 +10:00
Makefile Merge branch 'master' of https://github.com/n64decomp/perfect_dark into port 2023-08-19 11:45:17 +02:00
Makefile.port port: don't shove headers into the link command line 2023-08-15 21:35:09 +02:00
README.md Update README.md 2023-08-16 15:43:19 +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 except for janky mouselook, arbitrary resolution support (with partial widescreen support) and somewhat expanded heap size.

Running

You can get the latest Windows and Linux binaries from the latest CI run in the Actions tab.
Note that you must already have a Perfect Dark ROM to run the game, as specified above.

  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