#df-hack #protobuf #api-bindings #download #source #proto #extracted

dfhack-proto-srcs

Download and extract DFHack protobuf files from source

14 releases (7 breaking)

0.9.0 Apr 21, 2024
0.8.0 Nov 20, 2023
0.7.0 May 13, 2023
0.4.3 Jan 23, 2023
0.4.1 May 1, 2022

#1838 in Game dev


Used in 2 crates (via dfhack-proto)

Zlib license

16KB
77 lines

dfhack_proto_srcs

Crates.io docs.rs Crates.io

This subcomponent of dfhack_remote contains the protobuf files extracted from DFHack.

It is licensed under ZLib, just like DFHack.

Regenerating the protos

To regenerate the protos in the source directory, run cargo build with the DFHACK_DOWNLOAD set to 1.

To target a different DFHACK version, set the DFHACK_ZIP environment variable to an url. For example https://github.com/DFHack/dfhack/archive/refs/heads/develop.zip.

Then in RemoteFortressReader.proto, change the type of MaterialDefinition::name and WorldMap::name to bytes, it is currently encoded in CP437.

Dependencies

~0–2.3MB
~33K SLoC