VPK File Format Parser (extract and archive)
Ruby
Switch branches/tags
Nothing to show
Clone or download
kimoto
Latest commit 6480d74 Jul 19, 2012
Permalink
Failed to load latest commit information.
bin add command line utility & fixed bug Jul 19, 2012
lib add command line utility & fixed bug Jul 19, 2012
.gitignore Initial commit Jul 13, 2012
Gemfile first commit Jul 13, 2012
README.rdoc add command line utility & fixed bug Jul 19, 2012
Rakefile first commit Jul 13, 2012
vpk.gemspec missed Jul 13, 2012

README.rdoc

vpk

VPK File Format Parser (extract and archive)

Require

- Ruby 1.9

What is VPK

VPK means “Valve Pak”. Description is here developer.valvesoftware.com/wiki/VPK

Install

gem install vpk

Usage

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")

Command Line Utility

$ vpk
vpk [options] <dirname or vpkfile>
  -c                               create archive
  -x                               extract mode