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
).
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.
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.
- Create a directory named
data
next topd.exe
. - Put your Perfect Dark ROM named
pd.ntsc-final.z64
into it. - Run
pd.exe
.
- Ensure you have SDL2, libGL and ZLib installed on your system.
- Run
make -f Makefile.port
in theperfect_dark
directory. - 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.
- the original decompilation project authors;
- doomhack for the only other publicly available PD porting effort I could find;
- sm64-port authors for the audio mixer and some other changes;
- Ship of Harkinian team, Emill and MaikelChan for the libultraship version of fast3d that this port uses;
- lieff for minimp3;
- probably more I'm forgetting.