No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
nnra6864 29e236ef64 chore: Dependencies come from the ktisigonos organization
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 01:23:02 +01:00
.gitignore chore: Ignore build output 2026-11-11 00:43:46 +01:00
build.zig feat: The keyvalues adapter edits Valve's .res and .vdf files 2026-11-11 00:43:46 +01:00
build.zig.zon chore: Dependencies come from the ktisigonos organization 2026-11-11 01:23:02 +01:00
Parser.zig feat: The keyvalues adapter edits Valve's .res and .vdf files 2026-11-11 00:43:46 +01:00
README.md feat: The keyvalues adapter edits Valve's .res and .vdf files 2026-11-11 00:43:46 +01:00
root.zig feat: The keyvalues adapter edits Valve's .res and .vdf files 2026-11-11 00:43:46 +01:00

kosm_keyvalues

Valve's KeyValues for kosm: the keyvalues adapter, which edits .res and .vdf files (any other KeyValues file with .lang = "keyvalues"), such as a GoldSrc or Source game's TrackerScheme.res.

A file is keys, each followed by a value or a { ... } block of more keys; paths step through the blocks: Scheme.Colors.BaseText, Scheme.Fonts.*.*.name. Keys and values may be quoted or bare, // comments, [$WIN32] conditionals and #base / #include lines are read and kept. A key written twice is two entries, so set refuses to pick one and setAll sets both.

Values are written quoted. Colors default to r g b a ("4 28 38 255") and booleans to 1 / 0. Text holding a quote or a line break, or ending in a backslash, is refused.

Only edit is supported: KeyValues files belong to their programs, so kosm changes values in place and never writes a whole file.