Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

DKC:TF > Archive (PAK)

TypeDescription
CFormDescriptorPACK form

PACK Form

Version 0:

TypeDescription
CFormDescriptorTOCC form (table of contents)
File contents

TOCC Form

Version 1:

TypeDescription
CChunkDescriptorADIR chunk (asset directory)
CChunkDescriptorMETA chunk (meta files) (optional)
CChunkDescriptorSTRG chunk (filenames)

ADIR Chunk

TypeDescription
List<CPakFile::SAssetDirectoryEntry>Entries

CPakFile::SAssetDirectoryEntry

TypeDescription
CFourCCFile type
CObjectIdFile id
Uint64File offset (absolute)
Uint64File size

META Chunk

Version: 1

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

This chunk is absent when no file with metadata is present.

TypeDescription
List<CPakFile::SMetaDataOffsetEntry>Entries

CPakFile::SMetaDataOffsetEntry

The offset is relative to the offset field itself.

TypeDescription
CObjectIdFile id
Uint32File offset

The metadata is prefixed by a 32-bit integer that indicates its size.

STRG Chunk

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

IResourceCollection::CNameTagEntry

TypeDescription
CObjectTagObject tag
CStringFilename