A tool for packaging and unpacking VPK archives.
| Platform | Link |
|---|---|
| Windows | VPKTool-Win.zip |
| Linux | VPKTool-Linux.zip |
- Auto-detection — detects VPK files or loose files/folders and acts accordingly
- Unpack mode — extracts all contents from
.vpkarchives into the current directory - Pack mode — compiles loose files and folders into a new
.vpkarchive
Place the .vpk or files/folders in a folder next to the script and run it.
If the folder contains .vpk files, the tool will extract their contents into the current directory and then delete the original VPK files.
If the folder contains loose files or directories (no .vpk files), the tool will compile everything into a new VPK archive and delete the originals.
Output will be a randomly named pakXX_dir.vpk file.
- VPK output name is randomized (
pak09–pak99) to avoid conflicts - Source files are deleted automatically after a successful operation — make sure you have backups if needed
| Library | Purpose |
|---|---|
| vpk | Reading and writing VPK archives |
| rich | Terminal formatting and colored output |