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

dfhack-proto-srcs

Download and extract DFHack protobuf files from source

14 releases (7 breaking)

new 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

#1496 in Game dev

Download history 22/week @ 2024-02-18 78/week @ 2024-02-25 7/week @ 2024-03-03 28/week @ 2024-03-10 10/week @ 2024-03-17 6/week @ 2024-03-24 29/week @ 2024-03-31 2/week @ 2024-04-07

56 downloads per month
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.4MB
~34K SLoC