Re-implementation of df-steam-hook in Rust.
Supports Windows and Linux versions of Dwarf Fortress, including classic, steam and itch.io versions.
Implemented:
The recommended way of installation is using of the installer. It will install the hook, all needed configs, font, translation csv file etc.
For installation of rust and cargo see the link.
[!NOTE] The use of system
rustc
andcargo
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
cargo build --release
Copy:
target/release/libdfint_hook.so
to libdfhooks.so
in the game's directory on Linuxtarget/release/dfint_hook.dll
to dfhooks.dll
on Windowsdata/art/curses_640x300.png
dfint-data/encoding.toml
dfint-data/offsets.toml
dfint-data/dictionary.csv
dfint-data/config.toml
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