A decompilation of Perfect Dark. (MIRROR of https://gitlab.com/ryandwyer/perfect-dark)
Go to file
squiddingme d9beab0c8b Add config option to control crosshair/gun sway 2023-08-21 16:27:18 +08: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: add rstick fields to OSContPad 2023-08-21 00:29:51 +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 Add config option to control crosshair/gun sway 2023-08-21 16:27:18 +08:00
src Add config option to control crosshair/gun sway 2023-08-21 16:27:18 +08: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 Merge branch 'master' of https://github.com/n64decomp/perfect_dark into port 2023-08-19 11:45:17 +02:00
Makefile.port port: allow theoretical ARM builds 2023-08-20 21:41:04 +02:00
README.md Update README.md 2023-08-21 01:14:45 +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.

There are currently no "extra features" implemented except for janky mouselook, arbitrary resolution support (with partial widescreen support), some extra controls and somewhat expanded heap size.

Download

Latest automatic builds for supported platforms:

Running

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

Windows

  1. Install MSYS2.
  2. Open the MINGW32 prompt.
  3. Install dependencies: pacman -S mingw-w64-i686-toolchain mingw-w64-i686-SDL2 mingw-w64-i686-zlib make git
  4. Run make -f Makefile.port in the perfect_dark directory.
  5. The resulting executable will be at build/ntsc-final-port/pd.exe.

Linux

  1. Ensure you have gcc, g++ and 32-bit versions of SDL2, libGL and ZLib installed on your system.
    • On a 64-bit system you also need to have gcc-multilib and g++-multilib (or your distro's analogues) installed.
  2. Run the following command in the perfect_dark directory:
    • On a 64-bit system: make -f Makefile.port TARGET_PLATFORM=i686-linux
    • On a 32-bit system: make -f Makefile.port
  3. The resulting executable will be at build/ntsc-final-port/pd.exe.

Currently only i686-linux and i686-windows are supported, using gcc -m32 and i686-w64-mingw32-gcc as compilers, respectively.
Alternate compilers can be specified by passing TOOLCHAIN=i686-whatever- as a command line argument.

Credits