Level definitions

Summary

This topic personally supplements the Level definitions of File Formats - Dungeon File (DUNGEON.DAT) by Christophe Fontanel to supply DM2 specific information.
So, majority parts are brought from the File Formats section (without any permission).

Next table shows Level definitions in bit fielded representation (assumes Little Endian platform).
Each column represents a bit value.
Each row line represents a word value (2 bytes).

DM2 specific parts will be highlighted.

  0 1 2 3 4 5 6 7 8 9 A B C D E F
0

Offset

2 *1 *2 - *3 *4 *5 - *6 *7  - - - - - - -
4 ? ?
6 Offset X Offset Y
8 Level # ? Width - 1 Height - 1
10 # of Wall Ornates ? # of Floor Ornates ?
12 # of Shared Ornates # of Creature types ? Depth
14 ? Scene # Door type 0 Door type 1

*1 It requires to have upper pitfall.
*2 It requires to have lower pitfall.
*3 It requires to have up-staircase.
*4 It requires to have down-staircase.
*5 It requires to have blue teleport haze.
*6 It requires to have door type 0.
*7 It requires to have door type 1.

From *1 to *5 are just self-assessment parameters for DM2 game system. Just recommended, not essential.

Scene #

There are 6 known scenes.

No Easy description
0 Void
1 Surface of the earth
2 Dungeon
3 Stone corridor
4 Rooftop (of Skullkeep)
5 Surface of the earth (Graveyard)

Level #

Next table shows how level # used.

 No Easy description
0 -
1 Skullkeep: 6F (Rooftop)
2 Skullkeep: 5F
3 Skullkeep: 4F
4 Skullkeep: 3F
5 Skullkeep: 2F
6 Skullkeep: 1F; Ground-level
7 Skullkeep: B1
8 Skullkeep: B2
9 -
10 Void
11 Void lower (Only for PC-98)
12 -
13 -
14 -
15 -

Floor, Wall and Door ornate indices

Look at the screen shot.

The suffix part, highlighted by white color, contains some descrption.

What Value
Available creature types 20 05 16
Available wall ornate image types 76 3F 40 0F 1A 60
Available floor ornate image types 37 0C
Available door ornate image types 09