VPK File Format Parser (extract and archive)
- Ruby 1.9
VPK means “Valve Pak”. Description is here developer.valvesoftware.com/wiki/VPK
gem install vpk
Extract from your vpk file
require 'vpk' VPK::VPKFile.new("./path_to.vpk").extract_to("./")
Archive your directory
require 'vpk' VPK::VPKFile.archive("./path_to_dir").write_to("./archive.vpk")
$ vpk vpk [options] <dirname or vpkfile> -c create archive -x extract mode