Skip to content

ZT Package

Robert Jordan edited this page Mar 17, 2019 · 4 revisions

Some values unknown, but still readable.

Unlike other CatSystem2 file formats, the .zt package format does not have a proper file header.

File Structure

do while FileEntryHeader.OffsetNext != 0

FileEntryHeader

Position = StartPosition + FileEntryHeader.OffsetNext
StartPosition = stream.Position

Data Type Value Description
uint32 OffsetNext The offset to the FileEntryHeader
uint32 Unknown Unknown 4-byte value, ztpack.exe throws a fit when it's changed
uint32 Length Length of FileEntry after this header

FileEntry

This always immediately precedes the FileEntryHeader.

Data Type Value Description
uint32 Unknown Unknown 4-byte value
char[256] FileName The file name of the entry
uint32 Reserved Unknown 4-byte value, seems to always be zero.
uint32 CompressedSize Compressed size of file
uint32 DecompressedSize Decompressed size of file
byte[CompressedSize] FileData Zlib-compressed file data
Clone this wiki locally