PKF

From Wulinshu
Jump to navigation Jump to search

The PKF file is an container for storing various files.
It does not contain an table of contents.
It mainly contains TEXN entries for textures of the PKS containers models. Sometimes these files can be compressed with GZip Deflate.

Header

Position Length Type Description
0x00 0x04 string Identifier (PAKF)
0x04 0x04 uint Content size in bytes
0x08 0x04 uint Unknown
0x0C 0x04 uint File count

Token

Position Length Type Description
0x00 0x04 string Token
0x04 0x04 uint Size in bytes (including token)

DUMY

Dummy token which is not included in the file count and is sometimes found at the start.

TEXN

Contains an texture.

EOF IPAC

At the end of some PKF files there is an appended IPAC segment. This IPAC contains an CHARA.CHRT file which consists out of the CHRS and STRG node of the CHRD node.