DK Level Distribution Format
This is a format designed to ease distribution of Dungeon Keeper
levels. The format isn't quite finalised yet, but a beta version of
the utility for extracting/compiling the archives is available in the
utilities package. The actual format is currently
as follows:
- 4 bytes: 'D' 'K' 'L' 'V' (magic number)
- String - name
- String - author
- String - description (preferrably only 1 line)
- String - creation date (probably autogenerated on creation)
- Byte - Number of players
- Byte - contents of .inf file
- File length - APT
- File length - CLM
- File length - DAT
- File length - OWN
- File length - SLB
- File length - TNG
- File length - TXT
- File length - WIB
- Bytes - the files (where present), in the above order.
Formats used:
- String: Each string is given by its length (2 bytes) then data, eg
0x09 0x00 'J' 'o' 'n' ' ' 'S' 'k' 'e' 'e' 't'
- File lengths: 4 bytes
What to do if files are missing:
Some files are absolutely required; others can be generated if
the file length is zero. Suggestions for required/generated:
Required: SLB, OWN, TNG, DAT
Generated: WIB (easy), TXT (easy to make a simple
multiplayer one), APT (just have no action points), CLM (not sure,
as I don't know the format yet. Currently generates blank entries.)
Please send any comments to
skeet@pobox.com
Back to the Dungeon Keeper Extras page.