This page defines how the game map is defined.
In an open source project it is not necessary to hide the data formats used. The easiest way to store arbitrary data in a structure form is in an XML file. The map file should store information on the location of each city, its name and what it can produce at what efficiency. Since there are many popular custom maps out there from the original game, it is imperative that these map can be imported/converted.
The import feature of existing maps may be its separate application.
It is desirable to also be able to define custom geography and/or computer generated geography.
The file format is an XML file. If the file becomes large it may be compressed. The header of the file contains an integeral version number. Maps may not be backward compatible. The XML file is defined by an XML Schema definition.
List of all the cities. Each city defines:
For each city the coordinates on the used map are defined.
Definition of a custom geography.
The *.kef is the file format the map is stored in the map editor of the original game.
the *.gmf is the file format the map is stored after exporting it from the map editor. This format is used in the Patrician III game.