This thread is devoted to the reversal of the DKII level and data binary file formats, for modding. Feel free to contribute.
Binary Data - Level Map File Terrain Slabs (Work in Progress)
The first byte I GUESS is the slab type.
The second byte seems to be the owner of the slab type.
The third and fourth bytes are unknown to me, but I guess they
are always 01 and 00 (maybe junk data or seperators/spacers)?
Code:
Hex Code = Slab Type
01 02 01 00 = Impenetrable Rock Slab owned by Neutral Player
02 02 01 00 = Rock Slab owned by Neutral Player
03 02 01 00 = Dirt Path Slab owned by Neutral Player
04 02 01 00 = Water Slab owned by Neutral Player
05 02 01 00 = Lava Slab owned by Neutral Player
06 02 01 00 = Gold Slab owned by Neutral Player
07 02 01 00 = Gems Slab owned by Neutral Player
08 00 01 00 = Claimed Path Slab owned by Unknown
08 01 01 00 = Claimed Path Slab owned by Good Player
08 02 01 00 = Claimed Path Slab owned by Neutral Player
08 03 01 00 = Claimed Path Slab owned by Keeper 1
08 04 01 00 = Claimed Path Slab owned by Keeper 2
08 05 01 00 = Claimed Path Slab owned by Keeper 3
08 06 01 00 = Claimed Path Slab owned by Keeper 4
08 07 01 00 = Claimed Path Slab owned by Keeper 5
08 08 01 00 = Claimed Path Slab owned by Unknown
09 03 01 00 = Reinforced Wall Slab owned by Keeper 1
0A 02 01 00 = Treasury owned by Neutral Player
0B 02 01 00 = Lair owned by Neutral Player
0C 02 01 00 = Portal Slab owned by Neutral Player
0D 02 01 00 = Hatchery owned by Neutral Player
0E 01 01 00 = Dungeon Heart Slab owned by Good Player
0E 02 01 00 = Dungeon Heart Slab owned by Neutral Player
0E 03 01 00 = Dungeon Heart Slab owned by Keeper 1
0F 02 01 00 = Library owned by Neutral Player
10 02 01 00 = Training Room owned by Neutral Player
11 02 01 00 = Wooden Bridge owned by Neutral Player
12 02 01 00 = Guard Room owned by Neutral Player
13 02 01 00 = Workshop owned by Neutral Player
14 02 01 00 = Prison owned by Neutral Player
15 02 01 00 = Torture Chamber owned by Neutral Player
16 02 01 00 = Temple owned by Neutral Player
17 02 01 00 = Graveyard owned by Neutral Player
18 02 01 00 = Casino owned by Neutral Player
19 02 01 00 = Combat Pit owned by Neutral Player
1A 02 01 00 = Stone Bridge owned by Neutral Player
1C 01 01 00 = Hero Gate (Final) owned by Good Player
1E 02 01 00 = Edge of Map Slab owned by Neutral Player
1F 02 01 00 = Unclaimed Mana Vault Slab owned by Neutral Player
20 03 01 00 = Claimed Mana Vault Slab owned by Keeper 1
21 01 01 00 = Hero Gate (2x2) owned by Good Player
22 01 01 00 = Hero Gate (Front End 3D Level) owned by Good Player
23 01 01 00 = Hero Lair Slab owned by Good Player
24 01 01 00 = Hero Stone Bridge owned by Good Player
25 01 01 00 = Hero Gate (3x1) owned by Good Player
28 02 01 00 = Mercenary Hero Portal Slab owned by Neutral Player