rzfile is a lightweight Rust library designed for parsing and handling binary file structures used in proprietary MMO game clients. It's part of the NGemity project and supports tools such as the RZEmulator.
- Parser for
data.00xindex files - File name encryption and decryption based on game-specific logic
- Customizable encryption and reference tables
- Precise error handling via
RZError(compatible withthiserror) - Fully tested with high code coverage
- Minimal dependencies (only
thiserroroptionally)
use rzfile::file::parse_index;
use rzfile::name::{encode_file_name, decode_file_name};
let mut buffer = std::fs::read("data.000").unwrap();
let entries = parse_index(&mut buffer, None).unwrap();
let encoded = encode_file_name("test.dds", None, None).unwrap();
let decoded = decode_file_name(&encoded, None, None, true).unwrap();
assert_eq!(decoded, "test.dds");cargo add rzfileOr manually via Cargo.toml:
[dependencies]
rzfile = "0.1"MIT © NGemity
