Skip to content

PAK File Format

Yannik Marchand edited this page Apr 27, 2023 · 6 revisions

DKC:TF > Archive (PAK)

Type Description
CFormDescriptor PACK form

PACK Form

Type Description
CFormDescriptor TOCC form (table of contents)

TOCC Form

Type Description
CChunkDescriptor ADIR chunk (asset directory)
CChunkDescriptor META chunk (meta files)
CChunkDescriptor STRG chunk (filenames)

ADIR Chunk

Type Description
List<CPakFile::SAssetDirectoryEntry> Entries

CPakFile::SAssetDirectoryEntry

Type Description
CFourCC File type
CObjectId File id
Uint64 File offset
Uint64 File size

META Chunk

Some file types have a metadata file. These are stored in this chunk with the same file id as their main file.

Type Description
List<CPakFile::SMetaDataOffsetEntry> Entries

CPakFile::SMetaDataOffsetEntry

Type Description
CObjectId File id
Uint32 File offset

STRG Chunk

This chunk contains filenames. Most files in the archive are referenced by object id and don't have a filename however.

Type Description
List<IResourceCollection::CNameTagEntry>

IResourceCollection::CNameTagEntry

Type Description
CObjectTag Object tag
CString Filename
Clone this wiki locally