dnpak-rs
dnpak-rs #
I originally made a Python version of this to understand how Dragon Nest .pak
files work. As I was learning Rust, I rewrote it to improve performance and usability. This Rust version powers dnutils, and is significantly faster and more robust. dnpak-rs
is a Rust library for reading and writing Dragon Nest .pak
files.
Features #
- Read and write
.pak
files - Unpack all files from a
.pak
archive - Find specific files within a
.pak
archive - Add files to a new
.pak
archive
Usage #
use dnpak_rs::EtFileSystem;
// Read a .pak file
let pak = EtFileSystem::read("Resource00.pak");
// Unpack all files
pak.unpack_all(None, false).unwrap();
// Create a new .pak file
let mut new_pak = EtFileSystem::write("NewResource.pak");
// Add files to the new .pak file
new_pak.add_files("my_files").unwrap();
// Close the new .pak file
new_pak.close_file_system();
Available on crates.io.