Skip to content

About

A standalone Rust library for Gothic I & II data formats: VDF archives, game assets, worlds, savegames, and a Daedalus VM

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

ZenKit Rust

Rust readers, writers and a Daedalus runtime for Gothic I and II archives, assets, object graphs, worlds and savegames. Tested on Windows x64 with Rust 1.99.0.

Start with the crate guide and examples. Ordinary and Union compressed VDF support is included by default.

The crate carries its own license.

World viewer demo

The world viewer renders Gothic I and II world geometry and static objects with a keyboard and mouse free camera. It requires your own game installation and uses a separate Cargo workspace and dependency lockfile. Run it from the repository root:

cargo run --manifest-path examples/world-viewer/Cargo.toml --release --locked -- NEWWORLD.ZEN --game g2 --game-dir '<GOTHIC_II_DIR>'

See the demo guide for controls and screenshots. Tested on Windows x64.

Building

Requires Rust 1.99.0, selected automatically by rust-toolchain.toml.

Run from the repository root:

# Debug build (target/debug/)
cargo build --workspace --locked

# Optimized build (target/release/)
cargo build --workspace --release --locked

To build the example programs in target/release/examples/:

cargo build -p zenkit --examples --release --locked

On Windows with MSVC, linking the examples and tests needs the MSVC linker and Windows SDK.

Verification

Use Rust 1.99.0:

cargo fmt --all -- --check
cargo clippy --workspace --all-targets --locked -- -D warnings
cargo test --workspace --all-targets --locked
cargo test --workspace --doc --locked
cargo doc --workspace --no-deps --locked

Synthetic test fixtures live under crates/zenkit/tests/fixtures/. Original game data and derived payloads are not included.

GitHub Actions runs these checks on Windows x64, including documentation generation with warnings denied.

About

A standalone Rust library for Gothic I & II data formats: VDF archives, game assets, worlds, savegames, and a Daedalus VM

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages