Code Monkey home page Code Monkey logo

perfect_dark's Introduction

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

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

perfect_dark's People

Contributors

ryandwyer avatar fgsfdsfgs avatar babbygremlin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.