From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:HOG (Descent)" |
|---|
| claim | "A Descent 1/2 HOG is the 3 bytes 'DHF' followed by consecutive records, each a 13-byte name, a 4-byte size and size bytes of data, with no file count and no stored offsets." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Descent 1 and 2 HOG files as written and read by the Rebirth hogcreate/hogextract tools" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "HogRecordHeader" |
|---|
| size | 17 |
|---|
| endianness | "little" |
|---|
| fields | | offset | 0 |
|---|
| size | 13 |
|---|
| type | "char[13]" |
|---|
| name | "filename" |
|---|
| notes | "NUL padded; hogcreate rejects names longer than 12 characters" |
|---|
|
| offset | 13 |
|---|
| size | 4 |
|---|
| type | "int32_t" |
|---|
| name | "length" |
|---|
| notes | "followed by length bytes of file data; the next record follows immediately" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "hogcreate writes 'DHF' (3 bytes), then per file fwrite(filename,13), fwrite(&size,4), the data" |
|---|
| repo | "https://github.com/dxx-rebirth/dxx-rebirth" |
|---|
| commit | "6943b924bea749543ef5729f31a28345e79716d2" |
|---|
| path | "d2x-rebirth/utilities/hogcreate.c" |
|---|
| lines | "44-73" |
|---|
|
| type | "source" |
|---|
| detail | "hogextract reads 3 bytes, then loops fread(filename,13), fread(&len,4) with SWAPINT on big-endian hosts, seeks or reads len bytes until ftell reaches the file size" |
|---|
| repo | "https://github.com/dxx-rebirth/dxx-rebirth" |
|---|
| commit | "6943b924bea749543ef5729f31a28345e79716d2" |
|---|
| path | "d2x-rebirth/utilities/hogextract.c" |
|---|
| lines | "52-82" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "HOG record" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T09:35:45.058Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T11:56:53.660Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read hogcreate.c (writes 'DHF' 3 bytes, then per file 13-byte NUL-padded name, 4-byte length, data; rejects names > 12 chars) and hogextract.c (skips 3 bytes, loops 13-byte name + 4-byte len until ftell reaches file size; does not check the DHF magic) at the cited commit." |
|---|
|
|
|---|