Expand description
sourcepak provides support for working with VPK (Valve Pak) files. It allows you to read the directories of VPK files, as well as read their contents into memory or to disk.
§Supported formats
Format | Support | Game(s) |
---|---|---|
VPK v1 | 🟢 | Alien Swarm, Dota 2, L4D, L4D2, Portal 2, SFM |
VPK v2 | 🟡 (Missing content read) | CS:GO, CS:S, DoD:S, HL:S, HL2, HL2:DM, Portal, TF2, Source 2 |
Respawn VPK | 🟢 | Titanfall |
§Features
revpk
: Add support for Respawn VPK files.mem-map
: Use memory mapping to read VPK files. This can be faster and use less memory, but is not supported on all platforms.
Note: Enabling the revpk
feature requires additional dependencies (lzham-alpha-sys
, once_cell
).
Note: Enabling the mem-map
feature requires additional dependencies (filebuffer
).
Modules§
- Common utilities for the library.
- Support for various VPK formats with traits to allow for extension.