ValvePak 2.0.1.107

dotnet add package ValvePak --version 2.0.1.107                
NuGet\Install-Package ValvePak -Version 2.0.1.107                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ValvePak" Version="2.0.1.107" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ValvePak --version 2.0.1.107                
#r "nuget: ValvePak, 2.0.1.107"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install ValvePak as a Cake Addin
#addin nuget:?package=ValvePak&version=2.0.1.107

// Install ValvePak as a Cake Tool
#tool nuget:?package=ValvePak&version=2.0.1.107                

<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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on ValvePak:

Package Downloads
ValveResourceFormat

Library to decompile Valve Source 2 files

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on ValvePak:

Repository Stars
ValveResourceFormat/ValveResourceFormat
🔬 Valve's Source 2 resource file format parser, decompiler, and exporter.
Version Downloads Last updated
2.0.1.107 3,831 5/9/2024
2.0.0.101 305 3/22/2024
1.8.0.93 681 2/13/2024
1.7.0.88 2,008 1/7/2024
1.6.2.76 893 11/23/2023
1.6.1.71 3,407 9/8/2023
1.6.0.67 249 9/5/2023
1.5.0.59 1,829 7/14/2023
1.4.0.53 2,071 3/22/2023
1.3.0.33 3,397 4/29/2022
1.2.0.24 773 1/15/2022
1.1.0.1 5,308 11/23/2021
1.0.2.35 2,768 6/23/2020
1.0.2.29 3,052 3/21/2019
1.0.0.24-AppVeyor 482 3/19/2019
0.4.0.11 2,788 9/18/2016
0.3.0.9 1,351 9/18/2016
0.2.0.6 1,148 9/18/2016