dnpak-rs

Rust

dnpak-rs is a Rust library for reading and writing Dragon Nest .pak files. I first made a Python version just to figure out how the format worked, but later rewrote it in Rust because I wanted something faster (and honestly, I just wanted to build something cool in Rust).

This is what dnutils use and is way quicker and more stable than my old Python one.

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();