vunzip
is a command-line utility to unzip Valve's custom .vz compressed files.
On OS X, use the supplied Xcode project.
On Linux, use the Makefile.
This code has not been extensively tested on Windows, Linux or anything else, but I don't see why it shouldn't work there.
- johndrinkwater for his reference implementation in Python.
- Ymgve for the file format details (see the reference implementation).
- SteamDB IRC for collectively figuring out the format so quickly.
- XNU on Apple Open-Source and Gary S. Brown for having an easily and permissibly stealable C CRC32 implementation
- LZMA SDK (public-domain)
- 2 bytes: 'VZ'
- 1 bytes: Format version ('a')
- 4 bytes: POSIX timestamp, assumedly of when the file was created
- LZMA-compressed content
- 4 bytes: CRC32 of the decompressed content
- 4 bytes: size of the decompressed content
- 2 bytes: 'zv'