| Crates.io | hunpak |
| lib.rs | hunpak |
| version | 1.3.0-alpha.1 |
| created_at | 2025-12-28 18:25:43.596515+00 |
| updated_at | 2025-12-28 22:43:13.817054+00 |
| description | Utility for PAK files of the game engine Heaps |
| homepage | |
| repository | https://gitlab.com/SolidTux/hunpak |
| max_upload_size | |
| id | 2009243 |
| size | 291,194 |
Utility for handling Heaps PAK files. Contained are both a library and a command line utility.
[!caution] Be careful when modifying game files, especially when playing online.
The functionality is currently only tested with Northgard and does not support a fixed alignment.
Prebuild binaries for Linux and Windows (untested) are available under the releases.
Alternatively, install Rust and install the command from source with
cargo install hunpak
The utility also allows for patching PAK files.
For this, patches have to be provided either as a directory or an equivalent ZIP file.
The contents of the folder or archive are added to the PAK file contents,
overwriting existing files with the exception of a required metadata file.
This has to be named hunpak-patch.json and follow the schema provided in
patch-metadata.schema.json.
An example for Northgard can be found under examples/patch,
which replaces the main menu background.
To apply this patch, make a backup copy of the res.client.pak file in the Northgard folder
and then apply the patch with
hunpak repack res.client.pak new.pak -p my-ng-bg.zip
Afterwards, copy new.pak into the Northgard folder and rename it back to res.client.pak.