From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:HL2DEMO (Source demo)" |
|---|
| claim | "demoheader_t is 1072 bytes: demofilestamp[8], demoprotocol, networkprotocol, servername[260], clientname[260], mapname[260], gamedirectory[260], float playback_time, int playback_ticks, int playback_frames, int signonlength." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:HL2DEMO (Source demo)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "demoheader_t" |
|---|
| size | 1072 |
|---|
| endianness | "little" |
|---|
| fields | | name | "demofilestamp" |
|---|
| type | "char[8]" |
|---|
| offset | 0 |
|---|
|
| name | "demoprotocol" |
|---|
| type | "int32" |
|---|
| offset | 8 |
|---|
|
| name | "networkprotocol" |
|---|
| type | "int32" |
|---|
| offset | 12 |
|---|
|
| name | "servername" |
|---|
| type | "char[260]" |
|---|
| offset | 16 |
|---|
|
| name | "clientname" |
|---|
| type | "char[260]" |
|---|
| offset | 276 |
|---|
|
| name | "mapname" |
|---|
| type | "char[260]" |
|---|
| offset | 536 |
|---|
|
| name | "gamedirectory" |
|---|
| type | "char[260]" |
|---|
| offset | 796 |
|---|
|
| name | "playback_time" |
|---|
| type | "float" |
|---|
| offset | 1056 |
|---|
|
| name | "playback_ticks" |
|---|
| type | "int32" |
|---|
| offset | 1060 |
|---|
|
| name | "playback_frames" |
|---|
| type | "int32" |
|---|
| offset | 1064 |
|---|
|
| name | "signonlength" |
|---|
| type | "int32" |
|---|
| offset | 1068 |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "Struct and MAX_OSPATH 260; offsets computed by hand from the types, no padding because all members are 4-byte or char arrays of multiples of 4." |
|---|
| repo | "https://github.com/ValveSoftware/source-sdk-2013" |
|---|
| commit | "be57e3d01ac7d7aa6a2cacbfef187c0b46616db0" |
|---|
| path | "src/public/demofile/demoformat.h" |
|---|
| lines | "20-22, 48-61" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "demoheader_t" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T23:26:20.826Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T07:36:14.704Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read demoformat.h 20-61: char[8], two ints, 4 x char[MAX_OSPATH=260], float, three ints, no padding; 8+8+1040+16 = 1072 and the computed offsets 16/276/536/796/1056/1060/1064/1068 are right." |
|---|
|
|
|---|