DIM
The map's size in tiles. The sizes of MTXM, TILE, MASK
and ISOM follow from it. StarEdit offers sides of 64, 96, 128, 192 and 256
tiles. 1.16.1 checks that the section is 4 bytes long, not the values in it; MTXM holds
at most 65,536 tiles, a 256 × 256 map. Remastered also shows a map wider or taller than
256 tiles as Invalid Scenario.
| Name | DIM␠ (44 49 4D 20) |
|---|---|
| Size | 4 bytes. |
| Read by | The game, for the map list. It reads it again when a game is created and when it starts. |
| Required | Yes. Without it the map list shows the map as Invalid Scenario, and it cannot be played. |
| The game accepts | Exactly 4 bytes. Any other length refuses the map. |
| More than one copy | The last copy replaces the others. Every copy must still be the right size, or the map is refused. |
| In scmJS | Read, and written again when you change what it holds. |
Layout:
| Offset | Type | Holds |
|---|---|---|
| 0 | u16 | Width in tiles |
| 2 | u16 | Height in tiles |