From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:VPK (Valve package)" |
|---|
| claim | "A VPK directory-tree entry is 18 bytes, written after each file name: CRC32, preload size, archive index, offset, length, terminator 0xFFFF." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:VPK (Valve package)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "VPKDirectoryEntry" |
|---|
| size | 18 |
|---|
| fields | | name | "CRC32" |
|---|
| type | "uint32" |
|---|
| offset | 0 |
|---|
|
| name | "PreloadBytes" |
|---|
| type | "uint16" |
|---|
| offset | 4 |
|---|
|
| name | "ArchiveIndex" |
|---|
| type | "uint16" |
|---|
| offset | 6 |
|---|
|
| name | "EntryOffset" |
|---|
| type | "uint32" |
|---|
| offset | 8 |
|---|
|
| name | "EntryLength" |
|---|
| type | "uint32" |
|---|
| offset | 12 |
|---|
|
| name | "Terminator" |
|---|
| type | "uint16" |
|---|
| offset | 16 |
|---|
|
|
|---|
| endianness | "little" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "ParseEntries: EntryMetadataSize = 18, field offsets and the 0xFFFF terminator check" |
|---|
| repo | "https://github.com/SteamDatabase/ValvePak" |
|---|
| commit | "32c9858f2305bf4d12320374753b951ddeb6042d" |
|---|
| path | "ValvePak/ValvePak/Package.Read.cs" |
|---|
| lines | "206-290" |
|---|
|
| type | "source" |
|---|
| detail | "Read*LittleEndian at metadata offsets 0,4,6,8,12,16; smallDataSize bytes of preload data follow each 18-byte record" |
|---|
| repo | "https://github.com/SteamDatabase/ValvePak" |
|---|
| commit | "32c9858f2305bf4d12320374753b951ddeb6042d" |
|---|
| path | "ValvePak/ValvePak/Package.Read.cs" |
|---|
| lines | "206-290" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T04:48:55.722Z" |
|---|
| verifications | |
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T17:06:09.594Z" |
|---|
| summary | "Add data.endianness little: ParseEntries reads CRC32, preload size, archive index, offset, length and the 0xFFFF terminator with BinaryPrimitives.Read*LittleEndian (Package.Read.cs 206-290). Preload…" |
|---|
| changed | |
|---|
|
|
|---|