From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Library:Havok" |
|---|
| claim | "Each Havok packfile section header is 0x40 bytes: a 19-byte tag (__classnames__, __types__, __data__), 0xFF, seven u32 offsets (absolute data start, and, relative to it, local fixups, global fixups, virtual fixups, exports, imports and end), then 16 bytes of 0xFFFFFFFF padding. Local fixups are 8-byte (src,dst) entries, global and virtual fixups 12-byte (src, section, dst) entries; unused entries are 0xFFFFFFFF." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Library:Havok" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "hkPackfileSectionHeader" |
|---|
| size | 64 |
|---|
| fields | | name | "tag" |
|---|
| offset | 0 |
|---|
| type | "char[19]" |
|---|
|
| name | "pad" |
|---|
| offset | 19 |
|---|
| type | "u8" |
|---|
| note | "0xFF" |
|---|
|
| name | "absoluteDataStart" |
|---|
| offset | 20 |
|---|
| type | "u32" |
|---|
|
| name | "localFixupsOffset" |
|---|
| offset | 24 |
|---|
| type | "u32" |
|---|
| note | "relative to data start; also the size of the section's object data" |
|---|
|
| name | "globalFixupsOffset" |
|---|
| offset | 28 |
|---|
| type | "u32" |
|---|
|
| name | "virtualFixupsOffset" |
|---|
| offset | 32 |
|---|
| type | "u32" |
|---|
|
| name | "exportsOffset" |
|---|
| offset | 36 |
|---|
| type | "u32" |
|---|
|
| name | "importsOffset" |
|---|
| offset | 40 |
|---|
| type | "u32" |
|---|
|
| name | "endOffset" |
|---|
| offset | 44 |
|---|
| type | "u32" |
|---|
|
| name | "padding" |
|---|
| offset | 48 |
|---|
| type | "u32[4]" |
|---|
| note | "all 0xFFFFFFFF (asserted by the reader)" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "HKXSection constructor reads the tag, 0xFF and seven offsets, three fixup tables with strides 8, 12 and 12 skipping 0xFFFFFFFF entries, then asserts four 0xFFFFFFFF u32 (header ends 0x40 after its start)" |
|---|
| repo | "https://github.com/HKX2/HKX2Library" |
|---|
| commit | "b833954ac38f8a412c903184174d51d3e6aba68a" |
|---|
| path | "HKX2/PackFileCommon.cs" |
|---|
| lines | "346-409" |
|---|
|
|
|---|
| confidence | "medium" |
|---|
| related | |
|---|
| key | "Packfile section header" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T13:54:26.540Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-18T22:07:46.476Z" |
|---|
| result | "partial" |
|---|
| method | "Read HKX2/PackFileCommon.cs in HKX2Library at b833954, HKXSection constructor (lines 346-409): ReadFixStr(19), AssertByte 0xFF, seven u32 offsets, fixup strides 8/12/12 with 0xFFFFFFFF skip all match." |
|---|
| notes | "After the seven offsets the reader asserts four more u32 0xFFFFFFFF, so the section header is 0x40 bytes (16 bytes of 0xFFFFFFFF padding at 0x30), not 0x30." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-18T22:07:46.259Z" |
|---|
| summary | "Section header is 0x40 bytes: HKXSection asserts four 0xFFFFFFFF u32 after the seven offsets" |
|---|
| changed | | "claim" |
| "data" |
| "evidence replaced" |
|
|---|
|
|
|---|