DKC:TF > Archive (PAK)
| Type | Description |
|---|---|
| CFormDescriptor | PACK form |
PACK Form
Version 0:
| Type | Description |
|---|---|
| CFormDescriptor | TOCC form (table of contents) |
| File contents |
TOCC Form
Version 1:
| Type | Description |
|---|---|
| CChunkDescriptor | ADIR chunk (asset directory) |
| CChunkDescriptor | META chunk (meta files) (optional) |
| CChunkDescriptor | STRG chunk (filenames) |
ADIR Chunk
| Type | Description |
|---|---|
| List<CPakFile::SAssetDirectoryEntry> | Entries |
CPakFile::SAssetDirectoryEntry
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.
| Type | Description |
|---|---|
| List<CPakFile::SMetaDataOffsetEntry> | Entries |
CPakFile::SMetaDataOffsetEntry
The offset is relative to the offset field itself.
| Type | Description |
|---|---|
| CObjectId | File id |
| Uint32 | File 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.
| Type | Description |
|---|---|
| List<IResourceCollection::CNameTagEntry> |
IResourceCollection::CNameTagEntry
| Type | Description |
|---|---|
| CObjectTag | Object tag |
| CString | Filename |