PKZ (File Format)

From Wexos's Wiki
Jump to navigationJump to search

PKZ (PacKage ZStandard) is an archive file format used in Astral Chain.

File Format

Header

The file starts with the following header:

Offset Type Description
0x00 Char[4] File magic. Always pkz1 in ASCII.
0x04 UInt32 Unknown, only seen as 00 01 00 00. Might be a version number.
0x08 UInt32 File size in bytes.
0x0C UInt32 Unknown.
0x10 UInt32 Number of file entries.
0x14 UInt32 File entry offset.
0x18 UInt32 Size of string table in bytes.
0x1C UInt32 Unknown.

File Entry

Files are compressed using ZStandard. Each file entry has the following structure:

Offset Type Description
0x00 Int64 Name offset.
0x08 Int64 Decompressed file size in bytes.
0x10 Int64 File data offset.
0x18 Int64 Compressed file size in bytes.

String Table

The string table consists of null-terminated strings, which are all algined by 8. All string offsets are relative to the start of the string table.

Tools

The following tools can handle PKZ files:

  • (none)