|
|
||
|---|---|---|
| .github/workflows | ||
| docs | ||
| include | ||
| ld | ||
| port | ||
| src | ||
| tools | ||
| .gitignore | ||
| .gitmodules | ||
| LICENSE | ||
| Makefile | ||
| Makefile.port | ||
| README.md | ||
| checksums.jpn-final.md5 | ||
| checksums.ntsc-1.0.md5 | ||
| checksums.ntsc-beta.md5 | ||
| checksums.ntsc-final.md5 | ||
| checksums.pal-beta.md5 | ||
| checksums.pal-final.md5 | ||
| 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.
- Create a directory named
datanext topd.exe. - Put your Perfect Dark ROM named
pd.ntsc-final.z64into it. - Run
pd.exe.
Building
Windows
- Install MSYS2.
- Open the MINGW32 prompt.
- Install dependencies:
pacman -S mingw-w64-i686-toolchain mingw-w64-i686-SDL2 mingw-w64-i686-zlib make git - Run
make -f Makefile.portin theperfect_darkdirectory. - The resulting executable will be at
build/ntsc-final-port/pd.exe.
Linux
- 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-multilibandg++-multilib(or your distro's analogues) installed.
- On a 64-bit system you also need to have
- Run the following command in the
perfect_darkdirectory:- On a 64-bit system:
make -f Makefile.port TARGET_PLATFORM=i686-linux - On a 32-bit system:
make -f Makefile.port
- On a 64-bit system:
- 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
- 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.