![]() |
VOOZH | about |
dotnet add package ValvePak --version 4.0.0.142
NuGet\Install-Package ValvePak -Version 4.0.0.142
<PackageReference Include="ValvePak" Version="4.0.0.142" />
<PackageVersion Include="ValvePak" Version="4.0.0.142" />Directory.Packages.props
<PackageReference Include="ValvePak" />Project file
paket add ValvePak --version 4.0.0.142
#r "nuget: ValvePak, 4.0.0.142"
#:package ValvePak@4.0.0.142
#addin nuget:?package=ValvePak&version=4.0.0.142Install as a Cake Addin
#tool nuget:?package=ValvePak&version=4.0.0.142Install as a Cake Tool
<h1><img src="./Misc/logo.png" width="64" align="center"> Valve Pak (vpk) for .NET</h1>
👁 Build Status (GitHub)
👁 NuGet
👁 Coverage Status
VPK (Valve Pak) files are uncompressed archives used to package game content. This library allows you to read and extract files out of these paks.
Usage:
using var package = new Package();
// Open a vpk file
package.Read("pak01_dir.vpk");
// Can also pass in a stream
package.Read(File.OpenRead("pak01_dir.vpk"));
// Optionally verify hashes and signatures of the file if there are any
package.VerifyHashes();
// Find a file, this returns a PackageEntry
var file = package.FindEntry("path/to/file.txt");
if (file != null) {
// Read a file to a byte array
package.ReadEntry(file, out byte[] fileContents);
}
Do note that files such as pak01_001.vpk are just data files, you have to open pak01_dir.vpk.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 2 NuGet packages that depend on ValvePak:
| Package | Downloads |
|---|---|
|
ValveResourceFormat
Parser, decompiler, and exporter for Valve's Source 2 resource file formats. Supports models, textures, materials, maps, particles, and more. |
|
|
CS2CalloutExtractor
A library for extracting callouts from Counter-Strike 2 `.vpk` files. |
Showing the top 2 popular GitHub repositories that depend on ValvePak:
| Repository | Stars |
|---|---|
|
ValveResourceFormat/ValveResourceFormat
Source 2 Viewer is an all-in-one tool to browse VPK archives, view, extract, and decompile Source 2 assets, including maps, models, materials, textures, sounds, and more.
|
|
|
ktxiaok/FireAxe
A Left 4 Dead 2 addon manager that supports hierarchical organization, workshop items and collections download, addon enablement management, etc.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.0.142 | 13,432 | 11/11/2025 |
| 3.0.3.132 | 2,147 | 9/22/2025 |
| 2.0.1.107 | 12,356 | 5/9/2024 |
| 2.0.0.101 | 477 | 3/22/2024 |
| 1.8.0.93 | 1,003 | 2/13/2024 |
| 1.7.0.88 | 2,186 | 1/7/2024 |
| 1.6.2.76 | 7,577 | 11/23/2023 |
| 1.6.1.71 | 3,601 | 9/8/2023 |
| 1.6.0.67 | 369 | 9/5/2023 |
| 1.5.0.59 | 1,973 | 7/14/2023 |
| 1.4.0.53 | 2,269 | 3/22/2023 |
| 1.3.0.33 | 3,622 | 4/29/2022 |
| 1.2.0.24 | 1,005 | 1/15/2022 |
| 1.1.0.1 | 5,543 | 11/23/2021 |
| 1.0.2.35 | 3,022 | 6/23/2020 |
| 1.0.2.29 | 3,300 | 3/21/2019 |
| 1.0.0.24-AppVeyor | 710 | 3/19/2019 |
| 0.4.0.11 | 3,346 | 9/18/2016 |
| 0.3.0.9 | 1,783 | 9/18/2016 |
| 0.2.0.6 | 1,586 | 9/18/2016 |
View release notes at https://github.com/ValveResourceFormat/ValvePak/releases