MASK
Fog of war at the start: which players begin with each tile unexplored. A new map made in
StarEdit or the editor starts every tile unexplored for every player. Only Use Map
Settings reads it, and it needs it: a Use Map Settings game of a map without MASK stops
with Error loading scenario file. Melee never reads it, and starts every tile
unexplored.
| Name | MASK (4D 41 53 4B) |
|---|---|
| Size | 1 byte per tile: width × height. |
| Read by | The game, at the start of a Use Map Settings game. Melee and the other game types never read it. |
| Required | For Use Map Settings. Without it a Use Map Settings game stops at the start with Error loading scenario file. Melee and the other game types play without it. |
| The game accepts | Any length. |
| More than one copy | Each copy is written over the start of the same space, in file order. The space starts with every tile unexplored, so tiles no copy reaches stay unexplored. |
| In scmJS | Read, and written again when you change what it holds. |
Only Players 1 to 8 have a bit. A byte of 0x05, bits 0 and 2, means Players 1 and 3 start
with that tile unexplored and the other six start with it explored. The game starts every
tile unexplored and writes the section over that, one byte per tile, so tiles past the end
of a short MASK stay unexplored. Remastered uses at most the first 65,536 bytes, one for
each tile of a 256 × 256 map. Blizzard's melee maps have 0xFF in every byte; some of the
campaign and scenario maps, where the maker set the fog, do not.