2 stable releases

Uses new Rust 2024

new 1.6.3 May 16, 2025

#210 in Compression

Download history 104/week @ 2025-05-11

104 downloads per month

GPL-3.0 license

46KB
1K SLoC

KF UZ2 Lib

github crates.io docs.rs build status

A Rust library for creating uz2 redirect files for Killing Floor 1 / Unreal Engine 2.5 games.

[dependencies]
kfuz2_lib = "1"

Compiler support: requires rustc 1.85+

Features

  • Contains core functionality for compressing-decompressing unreal files.
  • zlib-rs is used to achieve much faster file processing compared to all analoges.
  • Cross-platform: supports Windows, Linux, and MacOS.
  • Minimal dependency footprint for lightweight integration.
  • Optionally check for default Killing Floor 1 files, and omit them from processing.

Usage

use kfuz2_lib::helper::try_to_compress;
use kfuz2_lib::types::InputArguments;

let mut input_arguments = InputArguments {
        input_path: path_to_unreal_file,
        output_path: path_to_desired_output_directory,
        log_level: kfuz2_lib::types::LogLevel::Default,
        ignore_kf_files: true,
    };
try_to_compress(&mut input_arguments)?;

Acknowledgments

Dependencies

~1.4–2MB
~40K SLoC