ValvePak 4.0.0.142
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 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- Blake3 (>= 2.0.0)
- System.IO.Hashing (>= 9.0.11)
NuGet packages (2)
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. |
GitHub repositories (2)
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 | 14,548 | 11/11/2025 |
| 3.0.3.132 | 2,173 | 9/22/2025 |
| 2.0.1.107 | 12,493 | 5/9/2024 |
| 2.0.0.101 | 481 | 3/22/2024 |
| 1.8.0.93 | 1,015 | 2/13/2024 |
| 1.7.0.88 | 2,189 | 1/7/2024 |
| 1.6.2.76 | 7,579 | 11/23/2023 |
| 1.6.1.71 | 3,602 | 9/8/2023 |
| 1.6.0.67 | 371 | 9/5/2023 |
| 1.5.0.59 | 1,976 | 7/14/2023 |
| 1.4.0.53 | 2,271 | 3/22/2023 |
| 1.3.0.33 | 3,629 | 4/29/2022 |
| 1.2.0.24 | 1,008 | 1/15/2022 |
| 1.1.0.1 | 5,546 | 11/23/2021 |
| 1.0.2.35 | 3,025 | 6/23/2020 |
| 1.0.2.29 | 3,302 | 3/21/2019 |
| 1.0.0.24-AppVeyor | 713 | 3/19/2019 |
| 0.4.0.11 | 3,351 | 9/18/2016 |
| 0.3.0.9 | 1,787 | 9/18/2016 |
| 0.2.0.6 | 1,590 | 9/18/2016 |
View release notes at https://github.com/ValveResourceFormat/ValvePak/releases