Code Monkey home page Code Monkey logo

nornpulse's Introduction

nornpulse

creatures 3 screenshot

About

Inspired by projects such as OpenRTC2, the nornpulse project is an attempt to reverse engineer the original c2e engine in rust-lang.

This project is very much a WIP. Currently nornpulse only offers a way of circumventing the login system of Docking Station, which can already be achieved by established mods. The next upcoming goal is to replace the rendering engine with SDL2.

Motivation

If this project succeeds then fans of the original game will be able to run Docking Station on modern cross-platform systems (with better modding support.)

As a secondary, more personal goal, this is an experiment in learning the dark art of backwards engineering and pushing the rust FFI to its breaking point.

Building (Windows only)

git clone https://github.com/aneilmac/nornpulse.git
cd nonrpulse/nornpulse
rustup install nightly
rustup target add i686-pc-windows-msvc
cargo build

Execute

  1. Grab Docking Station from a legitimate source. Creatures Exodus, which includes Docking Station, is available on GOG.
  2. Locate your Docking Station installation.
  3. Replace engine.exewith the modified engine.exe provided in the nornpulse folder.
  4. Copy nornpulse.dll and SDL2.dll from the build output and paste into your Docking Station installation
  5. Run!

Contributing

Tools to use

  • Ghidra is an effective tool in helping understand the static binary.
  • OllyDbg is a great assembly debugger.

Roadmap

This project can be described in distinct phases:

  1. From the top down, replace C++ ABI calls with unsafe rust functions. (In progress.)
  2. Remove requirement of running through engine.exe and remove dependency on the winapi crate.
  3. Port and rearchitect unsafe rust code to safe rust code.
  4. Introduce new features!

How was engine.exe modified

The rust module nornpulse.dll was inserted as a dependency into engine.exe. Then the following op-codes were inserted into engine.exe:

0058744F  |. FF15 48216600  CALL DWORD PTR DS:[<&nornpulse.nornpulse>;  nornpuls.nornpulse_main
00587455  |. 90             NOP
00587456  |. 90             NOP

This replaces the entry point of the program after the C++ runtime has loaded.

nornpulse's People

Contributors

aneilmac 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.