![]() |
VOOZH | about |
dotnet add package KeyValues2 --version 0.8.0
NuGet\Install-Package KeyValues2 -Version 0.8.0
<PackageReference Include="KeyValues2" Version="0.8.0" />
<PackageVersion Include="KeyValues2" Version="0.8.0" />Directory.Packages.props
<PackageReference Include="KeyValues2" />Project file
paket add KeyValues2 --version 0.8.0
#r "nuget: KeyValues2, 0.8.0"
#:package KeyValues2@0.8.0
#addin nuget:?package=KeyValues2&version=0.8.0Install as a Cake Addin
#tool nuget:?package=KeyValues2&version=0.8.0Install as a Cake Tool
Datamodel.NET is a CLR library which implements the Datamodel structure and Datamodel Exchange file format.
Datamodel is a strongly-typed generic data structure designed by Valve Corporation for use in their games. Datamodel Exchange is a Datamodel container file format with multiple possible encodings; binary and ASCII ("keyvalues2") are included.
The following CLR types are supported as Datamodel attributes:
intfloatboolstringbytebyte[]ulongSystem.TimeSpanAdditionally, the following Datamodel.NET types are supported:
Element (a named collection of attributes)Vector2Vector3 / QAngleVector4 / QuaternionMatrix (4x4)IList<T> collections of the above types are also supported. (This can be a bit confusing given that both byte and byte[] are valid attribute types; use the ByteArray type if you run into trouble.)
binary and keyvalues2 DMX encodingsICodec interfacevar HelloWorld = new Datamodel.Datamodel("helloworld", 1); // must provide a format name (can be anything) and version
HelloWorld.Root = new Datamodel.Element(HelloWorld, "my_root");
HelloWorld.Root["Hello"] = "World"; // any supported attribute type can be assigned
var MyString = HelloWorld.Root.Get<string>("Hello");
HelloWorld.Save("hello world.dmx", "keyvalues2", 1); // must provide an encoding name and version
<--! dmx encoding keyvalues2 1 format helloworld 1>
{
"Hello" "string" "World"
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 net9.0 is compatible. 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 1 NuGet packages that depend on KeyValues2:
| Package | Downloads |
|---|---|
|
ValveResourceFormat
Parser, decompiler, and exporter for Valve's Source 2 resource file formats. Supports models, textures, materials, maps, particles, and more. |
Showing the top 1 popular GitHub repositories that depend on KeyValues2:
| 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.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 0.9.0-beta | 240 | 6/5/2025 |
| 0.8.0 | 17,513 | 5/25/2025 |
| 0.7.0 | 213 | 5/24/2025 |
| 0.5.0 | 2,736 | 9/25/2024 |
| 0.5.0-beta | 6,296 | 3/11/2024 |
| 0.4.0 | 1,122 | 1/22/2024 |
| 0.3.0 | 6,880 | 6/30/2023 |
| 0.2.0 | 362 | 5/3/2023 |