2 stable releases
Uses new Rust 2024
new 1.6.3 | May 16, 2025 |
---|
#210 in Compression
104 downloads per month
46KB
1K
SLoC
KF UZ2 Lib
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
- UZ2 package documentation - UZ2 File Format / UT Package File Format v 1.6.
- Inspirations - tinyuz2 (elmuerte) and uzLib (Mc.Gugi). Not used directly, but were very helpful.
Dependencies
~1.4–2MB
~40K SLoC