C-evo Map File Specification

Map file version 0

File Structure

OffsetLengthContentDescription
0x00008Format IDString "cEvoMap", ignored by program
0x00084Format versionMust be 0 for this specification
0x000C4MaxTurnReserved for future use
0x00104LXHorizontal map size (number of tiles), min. 20, max. 100
0x00144LYVertical map size (number of tiles), max. 96
0x0018LX*LY*4TilesList of DWords defining the single tiles


Tile Order

Due to this system, LX and LY have different scales. While LX counts double tile columns, LY only counts single tile rows.
LY must always be an even number.


Tile Definition

Each tile is defined by a DWord which is a combination of its terrain type, tile improvement and optional flags.
Flags are also used to define the nation starting positions. These definitions are essential, a map can not be played by more players than it has starting positions.

Terrain types (exclude each other):
0x00Ocean 0x24Prairie+Wheat
0x01Coast 0x25Tundra+Gold
0x02Grassland 0x26Arctic+Ivory
0x03Desert 0x27Swamp+Peat
0x04Prairie 0x29Forest+Game
0x05Tundra 0x2AHills+Wine
0x06Arctic 0x2BMountains+Iron
0x07Swamp 0x41Coast+Manganese
0x09Forest 0x43Desert+Oil
0x0AHills 0x44Prairie+Bauxite
0x0BMountains 0x45Tundra+Natural Gas
0x21Coast+Fish 0x49Forest+Mineral Water
0x22Plains 0x4AHills+Coal
0x23Desert+Oasis 0x4BMountains+Diamonds

Tile improvements (exclude each other):
0x00001000Irrigation
0x00002000Farmland
0x00003000Mine
0x00004000Fort
0x00005000Military base

Tile flags:
0x00000080River
0x00000100Road
0x00000200Railroad
0x00000400Canal
0x00010000Pollution
0x01000000Dead Lands
0x03000000Cobalt
0x05000000Uranium
0x07000000Mercury
0x00200000Nation starting position, preferred for human players
0x00400000Normal nation starting position


Restrictions

Some conditions which are not checked by the program but should be cared for: