Module hkx_header

Source
Expand description

§HKX Header Format Specification

The HKX header format is used for storing metadata information in HKX files. HKX files are binary files commonly used in video game development for storing animation and physics data. The header contains essential information about the structure and properties of the HKX file.

Size: 64bytes

Field NameDescriptionSize (bytes)Offset (bytes)
Magic0First magic number (0x57E0E057)40
Magic1Second magic number (0x10C0C010)44
UserTagUser-defined tag48
FileVersionVersion of the file (LittleEndian e.g. 0x08 0x00 0x00 0x00)412
PointerSizeSize of pointers in bytes (4 or 8)116
EndianEndianness of the file (0 for big-endian, 1 for little-endian)117
PaddingOptionPadding option used in the file118
BaseClassBase class119
SectionCountNumber of sections in the HKX file420
ContentsSectionIndexIndex of the contents section within the file424
ContentsSectionOffsetOffset of the contents section within the file428
ContentsClassNameSectionIndexIndex of the contents class name section within the file432
ContentsClassNameSectionOffsetOffset of the contents class name section within the file436
ContentsVersionStringVersion string of the contents (fixed-size string, 16 bytes)1640
FlagsVarious flags used in the file456
MaxPredicateMaximum predicate value. None if -1.260
SectionOffsetSection offset within the file. None if -1.262

§Paddings

If SectionOffset number is 16, read 64bytes header + an extra 16bytes as padding.

Field NameDescriptionSize (bytes)Offset (bytes)
Unk40Unknown field (Hex offset: 40)264
Unk42Unknown field (Hex offset: 42)266
Unk44Unknown field (Hex offset: 44)468
Unk48Unknown field (Hex offset: 48)472
Unk4CUnknown field (Hex offset: 4C)476

Structs§

HkxHeader
The 64bytes HKX header contains metadata information about the HKX file.

Constants§

SKYRIM_LE_ROW_HEADER
Skyrim LegendaryEdition(32bit) header binary
SKYRIM_SE_ROW_HEADER
Skyrim SpecialEdition(64bit) header binary