dfint / df-steam-hook-rs

Experimantal crossplatform implementation of df-steam-hook in Rust
MIT License
20 stars 3 forks source link

df-steam-hook-rs

Build

Re-implementation of df-steam-hook in Rust.

Supports Windows and Linux versions of Dwarf Fortress, including classic, steam and itch.io versions.

Implemented:

Installation

The recommended way of installation is using of the installer. It will install the hook, all needed configs, font, translation csv file etc.

Manual build

Install rustc, toolchain by using rustup

For installation of rust and cargo see the link.

[!NOTE] The use of system rustc and cargo often leads to build errors.

On Linux, after the installation use the following command:

source "$HOME/.cargo/env"

There's no source command on Windows, just install rustup, it will add cargo to the environment variables (follow the instructions at the link at the beginning of this section).

Then install latest nightly toolchain using rustup:

rustup install nightly

Build

cargo build --release

Prepare the game

Copy:

Launch

Run (on Linux)

./dwarfort

or (on Windows)

Dwarf Fortress.exe

or just double click the executable file of the game (or run it from the steam client, for example).

By default, the log is written to the file: dfint-data/dfint-log.log