Difference between revisions of "PKF"

From Wulinshu
Jump to navigation Jump to search
(Created page with "Category:Shenmue Category:Shenmue II Category:Files The PKF file is an container for storing various files.<br> It does not contain an table of contents.<br> It ma...")
 
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
[[Category:Shenmue II]]
[[Category:Shenmue II]]
[[Category:Files]]
[[Category:Files]]
[[Category:Containers]]
The PKF file is an container for storing various files.<br>
The PKF file is an container for storing various files.<br>
It does not contain an table of contents.<br>
It does not contain an table of contents.<br>
It mainly contains TEXN entries for textures of the [[PKS]] containers models.
It mainly contains TEXN entries for textures of the [[PKS]] containers models.
Sometimes these files can be compressed with GZip Deflate.


===Header===
===Header===
Line 15: Line 17:
| 0x04 || 0x04 || uint || Content size in bytes
| 0x04 || 0x04 || uint || Content size in bytes
|-
|-
| 0x04 || 0x04 || uint || Unknown
| 0x08 || 0x04 || uint || Unknown
|-
|-
| 0x04 || 0x04 || uint || File count
| 0x0C || 0x04 || uint || File count
|}
|}


Line 35: Line 37:
====TEXN====
====TEXN====
Contains an texture.
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.

Latest revision as of 16:43, 24 April 2019

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.