09 — Maps (the MAPS/ folder)¶
Index · Basics · Cheats build
A map is one text file in the game's MAPS/ folder (for example MAPS/EarthRRUltra.txt) plus the data
files it points to: water and land masks, regions, cities, terrain, height map, the AI cache and the
texture pack. This chapter documents every keyword of the map file and the format of the text files it
uses.
Contents
- How the game finds and reads a map
- Header: name, description, view
- Geography: water, land, terrain, height, textures
- Regions and factions:
OwnershipMap - Cities
- Starting setup and AI
- Game rules (lobby defaults)
- Display settings
- Building the border and region files:
ProcessBorders - Making a new map, step by step
- Making a map from a saved game
- Keys used by saved games and scenarios
- Map-specific mods
- Pitfalls
1. How the game finds and reads a map¶
Files¶
| File | Contents |
|---|---|
MAPS/<Map>.txt |
The map file — this chapter. |
MAPS/<Map>.virtual/ |
The map's data: binary masks (*.vec, *.vec.cmap, *.bin), region files (V7_*.txt), cities (earth_cities.csv, *.reloc.txt), AI cache (ai_cache_new.aics), city models, faction event scripts (Events/*.txt). SRC/ holds the sources used to generate them (AIConfig.txt, SVG/PNG drawings). |
MAPS/<TexturePack>/ (e.g. MAPS/EARTH256K/) |
The texture pack: map.e5i + map.e5p (the tiled globe texture), Default.jxl/.webp/.png (full overview), Default_small.png (map-list preview), HeightMap.cmap, config.txt. A map pack can also hold TERRAIN/ (the terrain detail, §3) and HEIGHT_MESH/ (the relief meshes). Several maps can share one pack. |
MAPS/Events/ |
Event scripts shared by several maps (e.g. CommonAI.txt). |
Paths inside the map file are relative to the game folder ("Maps/EarthRRUltraV3.virtual/V7_split.bin");
the lookup is case-insensitive on Windows. The settings folder (Documents/My Games/ICBM-Escalation) is searched
first, then the enabled mods, then the game folder, so a mod can replace a map file or any data file by shipping the
same path.
The map list¶
The Select map screen lists every file in MAPS/ of the settings folder, the game and each enabled mod that
- starts with
MAP, followed directly by itsNamelines (and optionallyDescription,Restrictions,WaterMap), and - contains a
TextureMapwhose folder has adefault_small.png(the preview).
A file without these is not listed. A map with the same file name in a mod hides the original.
Reading¶
The file is a sequence of keywords in free format (see 00 — Basics: // and
/* */ comments, "strings", case-insensitive keywords). Keywords may come in any order and the file ends
at END. USE "file" reads another file in the same format at that point, and IF/ELSE/ENDIF work as
in the other data files.
MAP
Name idx "My Map"
USE "Maps/MyMap.virtual/geography.txt" // the water, terrain and texture lines, shared by two maps
…
END
An unknown keyword stops loading with the message Error reading map …, formatting error line N; nothing
after it is read. Use the order of the shipped maps: the multiplayer consistency check reads the
geography keywords first, then OwnershipMap with its Player list, then Cities, then the AI tolerances
(§6), and looks only for those positions.
A saved game and a scenario are the same format: the map part followed by the state of the game (units, research, diplomacy…). §12 lists the keys that belong only there.
Units used in map files¶
| Quantity | Unit |
|---|---|
Map coordinates x y |
0–1 across the whole globe: x from 180° W (0) eastwards to 180° E (1), y from the North Pole (0) to the South Pole (1). So x = (longitude + 180) / 360, y = (90 − latitude) / 180. |
| Distances | km, unless noted |
| Times | simulation ticks; 60 ticks = one game second (00 — Basics) |
| Colours | "RRGGBB" or "RRGGBBAA" (hex), or #RRGGBB |
2. Header: name, description, view¶
MAP
Name idx "Atomic Earth, 10 Players"
Name RUS "Атомная Земля, 10 игроков"
Description ENG "Ten massive regional factions vie for global supremacy…"
Restrictions MinScale 0.75 MaxScale 100.0 CenterX 0.5 CenterY 0.5 ShiftX 2 ShiftY 2
| Keyword | Meaning |
|---|---|
MAP |
First word of the file. |
Name [LOCALE] "text", repeatable |
Map name. The first line is the fallback; a line whose locale (ENG, CHN, ESP, FRA, GER, ITA, RUS, case-insensitive) matches the game language wins. Without a locale the line counts as the current language. Name ID n uses UI string n. The shipped maps use the placeholder locale idx for the fallback line. |
Description [LOCALE] "text", repeatable |
Description shown in the lobby. Same rules. |
Restrictions MinScale a MaxScale b CenterX x CenterY y ShiftX sx ShiftY sy |
Camera limits: zoom range and the initial centre (map coordinates). All six values are required, in this order. |
MapSpecificMod "folder" [ForceLoading] |
A mod that is loaded together with this map: its data files take part in the game only on this map (§13). |
USE "file" |
Reads another file in this format here. |
3. Geography: water, land, terrain, height, textures¶
WaterMap "Maps/EarthRRUltraV3.virtual/watermap_16K.vec"
WaterMapNoIce "Maps/EarthRRUltraV3.virtual/watermap_no_ice_16K.vec"
WaterMapLand "Maps/EarthRRUltraV3.virtual/watermap_land_16K.vec"
ConditionalWaterMap "Maps/EarthRRUltraV3.virtual/Conditional.bin"
LandingPairs "Maps/EarthRRUltraV3.virtual/landing_pairs.bin"
TerrainTypeMap "Maps/EarthRRUltraV3.virtual/terrain_type.vec"
Terrain "Water" Color #8CC8FA
Terrain "Savanna" Color #C6CF5D Group "Grassland"
HeightMap "Maps/EARTH256K/HeightMap.cmap"
TextureMap "Maps/EARTH256K"
Water and land masks¶
The three masks are vector maps of the sea, used for movement and path finding. Each X.vec has a
companion X.vec.cmap (coded version) that the game loads automatically.
| Keyword | Used for |
|---|---|
WaterMap "file.vec" |
Surface ships: the sea, with pack ice treated as land. |
WaterMapNoIce "file.vec" |
Submarines: the sea including the area under the ice. |
WaterMapLand "file.vec" |
Ground units: the land (land paths). |
ConditionalWaterMap "file.bin" [generate] |
Land paths through each region, so ground units can be blocked by region ownership (e.g. not moving through neutral territory). It also tells the AI which regions share a land border. Put it after WaterMapLand (it is not loaded without it) and before AICache. Regenerate whenever region borders or their numbering, or WaterMapLand, change. |
LandingPairs "file.bin" [generate] |
Precomputed pairs of nearby land and sea points, used to embark and land troops by sea, with the cities each point reaches. Regenerate when cities, regions or a water map change, then the AI cache, which records this file's checksum. |
Generating a mask. Instead of loading, a mask can be built from a picture when the map is loaded:
WaterMap "Maps/MyMap.virtual/watermap.vec"
Generate from "Maps/MyMap.virtual/SRC/water.png" [CONTOURS "outlines.wmc" | SVG "drawing.svg"]
[smooth 36000] [filter 25000] [MapSize 4096 [ShiftX n] [ShiftY n]] [water black]
[pfcache "file" [generate]]
| Option | Meaning | Default |
|---|---|---|
from "image.png" |
Mask picture of the whole globe (2:1, e.g. 8192 × 4096 or 16384 × 8192): water is white (0xFF); with water black, water is black. The picture also carries the land-type information. |
— |
CONTOURS "file.wmc" |
Take the outlines from a contours file (format below) instead of tracing the picture. The picture is still needed. | — |
SVG "file.svg" |
Take the outlines from this vector drawing instead of tracing the picture (the picture is still needed). Earth's own maps use it. | — |
smooth s, filter f |
Outline smoothing and small-detail filtering of the traced picture (larger = finer). | 36000, 25000 |
MapSize n |
Grid size (power of 2). ShiftX/ShiftY shift the grid. |
twice the picture height |
water black |
Water is black in the picture (the editor's .svg.view.png pictures are drawn so). |
white water |
pfcache "file" [generate] |
Accepted, has no effect. | none |
Example, the three masks of a new map traced from three hand-drawn pictures:
WaterMap "Maps/MyMap.virtual/watermap.vec"
Generate from "Maps/MyMap.virtual/SRC/water.png"
WaterMapNoIce "Maps/MyMap.virtual/watermap_no_ice.vec"
Generate from "Maps/MyMap.virtual/SRC/water_no_ice.png"
WaterMapLand "Maps/MyMap.virtual/watermap_land.vec"
Generate from "Maps/MyMap.virtual/SRC/water_land.png"
Run the map once in single player: the game shows the traced paths for checking and writes the .vec and
.vec.cmap files under the settings folder's Maps/…. Move them into the map's folder, remove the Generate …
part and delete the generated copies from the settings folder (files there take priority over mods).
What to draw. WaterMap: the sea for ships, the polar pack ice drawn as land. WaterMapNoIce: the same with the
pack ice drawn as water. WaterMapLand: the land for ground units, with straits narrow enough to cross drawn as land
and impassable mountain ranges as water (lakes of the land). Draw with a hard brush; a strait a ship must use has to be
at least a few pixels wide, or the tracing closes it.
A .wmc file is text, in pixels of the width × height picture. A contour across the date line runs on past the
width; a contour round a pole goes once round the map. parent is the number of the contour it lies in, or -1.
ICBM water contours 1
width 16384 height 8192
tolerance 4.20 // optional: the simplification it was made with
contour 0 land parent -1 pole none points 3
1200.50 900.25
1300.00 950.00
1250.75 1000.00
contour 1 lake parent 0 pole none points 3
…
Which
generateoptions work where. The water masks (WaterMap,WaterMapNoIce,WaterMapLand), the simple ownership picture (§4), the city list (FromFile … Generate From), city relocation and the AI cache generate in any build.ConditionalWaterMap,LandingPairs,TerrainTypeMap … Generate,HeightMap … generate, city models (ModelsPath … Generate),EditSVGandProcessBordersneed the Cheats build.
Editing masks interactively: EditSVG¶
EditSVG "Maps/X.virtual/SRC/watermap.svg" [Size n] [Save "out.svg"]
[Second "Maps/X.virtual/SRC/watermap_no_ice.svg" [Save "out2.svg"]]
[Mask WaterMap | WaterMapNoIce | WaterMapLand]
In the Cheats build, a map whose file has this entry opens a set of outlines in an on-map
editor: an SVG (each path an outline: a land outline with its lakes and their islands as subpaths, the drawing's canvas
the whole globe) or a contours file (.wmc). Size is the width in pixels the outlines are measured in; Save writes
to another file (default: the same). Second edits a linked set at the same time (e.g. with and without ice); Mask
draws an existing mask of the map underneath for reference (that mask must be loaded by the map file). Lakes inside
land and islands inside lakes are fine; outlines must not cross each other or themselves (the editor does not stop
you: check by eye).
Example (Earth's map file carries it behind //):
EditSVG "Maps/MyMap.virtual/SRC/water.svg"
Second "Maps/MyMap.virtual/SRC/water_no_ice.svg"
Mask WaterMapLand
What is drawn. The edited file's outlines in yellow (nested ones, lakes and islands in lakes, in orange), the second file's in blue, the reference mask in red. The vertex under the cursor gets a yellow circle (it snaps within 16 screen pixels); on an edge, a green circle shows where a new vertex would go.
The two files are edited together wherever their vertices lie on each other (the outlines away from the polar caps are
the same in WaterMap and WaterMapNoIce): a vertex moved or deleted moves or goes in both. Holding Alt leaves the
edited file alone, Ctrl the second one.
| Mouse and keys | Does |
|---|---|
| Left drag a vertex | moves it |
| Left drag an edge | puts a new vertex there and moves it |
| Right click a vertex | deletes it (an outline left with a single vertex goes) |
| Shift + right click | deletes the whole outline under the cursor (a small island, a lake) |
| Shift + left click on open water | a new small square outline, to drag into shape |
| Shift held while letting a dragged vertex go on an edge | connects them |
| R | puts each lake into its land, saves both files and writes the picture Generate … reads with them |
Every change writes the edited files at once (.svg or .wmc); Ctrl + Z takes the last edits back, one at a time. R also writes
<file>.svg.view.png beside the edited file (for watermap.wmc: watermap.svg.view.png): the land white on black.
Then turn the outlines into the mask:
WaterMap "Maps/MyMap.virtual/watermap.vec"
Generate from "Maps/MyMap.virtual/SRC/water.svg.view.png" SVG "Maps/MyMap.virtual/SRC/water.svg" water black
Remove the EditSVG entry when the outlines are done. After any change to the water masks make ConditionalWaterMap,
LandingPairs and the AI cache again (§10).
Long edges. The game draws and tests an outline's edge (and a region border's) along the great circle between its ends, while the flat map shows a straight line. Keep edges short near the poles (a few hundred km at most), or the coast the units follow strays from the one drawn.
Terrain types¶
TerrainTypeMap "file.vec"
Terrain "Name" [NameIDX n] [DescriptionIDX n] [Color c] [Group "Earlier terrain"]
…
[Generate from "terrain.png"]
Each Terrain is one terrain type; the colour is its colour in the terrain overlay and, when generating,
the colour that identifies it in the source picture. Group "X" makes the type count as the earlier type
X for game rules — technology modifiers check terrain groups
(ImprovedBy Terrain "group"); a Group naming no earlier type leaves the type its own
group. Up to 254 types; more stops loading.
NameIDX/DescriptionIDX give translated names from the UI strings. Without the .vec file the map loads with no
terrain types.
Generate from "picture" (after the Terrain lines, Cheats build) makes the .vec from a
picture of the whole globe painted in the Terrain colours: its width a power of 2, its height half of it. Each pixel
takes the type whose colour is nearest; a pixel far from every colour gets no type. Paint with a hard brush and the
exact colours. The file is written under the settings folder's Maps/…; move it and remove the Generate line, as for
the water masks.
TerrainTypeMap "Maps/MyMap.virtual/terrain_type.vec"
Terrain "Water" Color #8CC8FA
Terrain "Forest" Color #53CA4C
Terrain "Grassland" Color #9FD549
Terrain "Savanna" Color #C6CF5D Group "Grassland"
Terrain "Desert" Color #E3B34F
Generate from "Maps/MyMap.virtual/SRC/terrain.png"
Height map and textures¶
| Keyword | Meaning |
|---|---|
HeightMap "file.cmap" [generate size] |
Elevation, used for the terrain view and for the ground height of units. generate size (Cheats build) makes it, size cells across, from the relief meshes of the map's texture pack. Without a HeightMap the ground is flat. |
TextureMap "folder" [LightBlendAlpha Yes/No] [LightBlendPower f] [AffectedArea x y z r]… |
The texture pack. The folder needs map.e5i/map.e5p, a default.jxl, default.webp or default.png overview and default_small.png. AffectedArea entries (a point on the unit sphere and a radius) mark areas where the texture is altered. |
EdgesMap "image" |
Optional edge texture. |
MapShader, TerrainShader, UnitShader, SilhouetteShader |
Accepted, have no effect: the game always draws the map with water_effect_v_mod/water_effect_f and units with its own shaders. To change a shader for one map, give the map a map-specific mod with its own copy of the shader file under shaders/HLSL/ and shaders/GLSL/. |
HeightMap "Maps/EARTH256K/HeightMap.cmap"
TextureMap "Maps/EARTH256K"
Terrain detail: TERRAIN/terrain.txt¶
A map pack whose folder has TERRAIN/terrain.txt (loose, or in the pack) gets detail textures blended into the map
where it is magnified; no line in the map file names it. A file name is looked
up in the map's TERRAIN/ first, then as it is in the game's data (the game's textures are in Images/Terrain).
Types "types.png"
Types2 "types2.png"
Types3 "types3.png"
Strength 1.0
CoastSharpen 1.0
Circumference 40075
Layer "Images/Terrain/grass.png" Size 103 Contrast 1.6 HeightBlend 0.8 Colour 0.4
| Keyword | Meaning | Default |
|---|---|---|
Types, Types2, Types3 |
The types maps: the whole map at 2:1, their R, G, B and A the weights of layers 1–4, 5–8 and 9–12. Weights adding up to less than 1 leave the rest without detail. 4096 × 2048 is plenty, 8192 × 4096 the most; all of one size | — |
Strength f |
The detail's strength; 0: none | 1 |
CoastSharpen f |
0–1: how much the coast is sharpened | 1 |
Circumference km |
Round the map: the sizes below are km of it | 40075 |
Baked n |
The layers' colours are already in the pack's pictures, so the game does not add them again: 1 in the lower levels, 2 in all levels, with the relief's light | 0 |
Layer "file" + options |
One detail texture, at most 12: a seamless picture, 512 or 1024 square, its alpha the height | — |
Layer option |
Meaning | Default |
|---|---|---|
Size km |
One repeat of the texture, the wide scale | 200 |
Fine km |
The fine scale: the same texture smaller, multiplied in | Size / 7.31 |
FineShare f |
How much of the fine scale | 0.8 |
Contrast f |
The strength of this layer's detail | 0.8 |
Hex 0/1 |
Hex tiling of the wide scale: no visible repetition, moved but never turned, as the textures carry a light direction. Its repeats round the map are rounded to a multiple of 64 | 1 |
HeightBlend f |
0–1: where layers meet, the one whose height is greater shows, so borders follow the textures. 0: plain weights | 0.5 |
Colour f |
0–1: the texture's own colour instead of the map's. 0: the map's colour with the texture's pattern; 1: the texture's colour | 0.6 |
ColourFull f |
The same where the layer's weight is full | 1 for the gameplay types Snow, Rock and Mountains, else Colour |
Gameplay "type" |
The gameplay terrain type this layer stands for; it sets the default of ColourFull |
from the file's name: forest, forest_b → Forest; grass → Grassland; rockdesert → Rock Desert; rainforest, savanna, wetland, taiga, farmland, steppe, desert, rock, mountains, tundra, snow their own |
The layers past the 4th need Types2 and past the 8th Types3, or they are left out. A problem goes to Fatal.txt, and
the map is then drawn without the detail. The types maps are ordinary pictures: paint them in an image editor, each
channel the weight of one layer (layer 1 in the red channel of Types, layer 2 in its green …).
4. Regions and factions: OwnershipMap¶
A map is divided into regions (provinces); each region belongs to a faction (player slot). The shipped maps use the multi-country form:
OwnershipMap "Maps/EarthRRUltraV3.Virtual/V7_default.vec"
MultiCountry "Maps/EarthRRUltraV3.Virtual/V7_segment_names.txt"
Borders "Maps/EarthRRUltraV3.Virtual/V7_split.bin"
Ownership "Maps/EarthRRUltraV3.Virtual/V7_split.vec"
Default "Maps/EarthRRUltraV3.Virtual/V7_default.txt"
Player "North America" Color "1188FF" Name "Blue" Portrait Index 15
ModelPrefix "NA"
Events FromFile "Maps/EarthRRUltraV3.Virtual/Events/North America.txt"
Player "Central America" Color "FF9911" Name "Orange" Portrait Index 24
…
| Part | Meaning |
|---|---|
OwnershipMap "file.vec" |
Faction borders for the default assignment (generated, with .vec.cmap). |
MultiCountry "names.txt" |
Region list (below). |
Borders "split.bin" |
The border segments (generated). |
Ownership "split.vec" |
The territory of each region (generated). |
Default "default.txt" |
Which faction owns each region at the start (below). Default AUTO_FROM_SAVE reads the file named like the map file plus .remap.txt (§11). |
GDPInfo "file" |
Optional; read and kept but not used. |
Player … |
One block per faction, at most 10 (more stops loading), in slot order (slot 0 is the first Player). |
A map holds at most 255 regions; more stops loading.
Region list (V7_segment_names.txt)¶
One line per region, then END:
"Alaska" Production 0.04286 Science 0.02190 Espionage 0.08403 0
"Ecuador" Production 0.083624 Science 0.115385 Espionage 0.037879 27 28
"Name"— region name (also used in the default file, events and the UI).Production p Science s Espionage e— the region's share of its faction's economy in each field; within one faction the shares normally add up to 1.GDP gsets all three to g.- Then the numbers of the border segments (from
Borders) that make up the region. A region with no segment numbers is dropped.
Default assignment (V7_default.txt)¶
"Alaska" 0
"Northwest Mexico" 1
…
VARIANT "Cold War"
RENAME "Ukraine" "Ukrainian SSR"
"Ukraine" 4
…
END
| Line | Meaning |
|---|---|
"Region" faction [Original n] [OccupiedSince tick] [OccupationBitscale b] [highlight colour] |
Owner at the start (faction slot, 0-based). Original sets a different original owner (an occupied region). highlight draws the region with an extra colour. Names are matched ignoring case; regions not listed have no owner. |
RENAME "Region" "Display name" |
Shows the region under another name. |
VARIANT "Name" |
Starts an alternative start-up assignment (with its own RENAMEs and region lines) that can be picked in the lobby. The lines before the first VARIANT are the default. |
END |
End of file. |
Player block¶
The faction's name is the quoted string after Player; it is what DefaultEnemy, AIConfig.txt (for
"faction") and event scripts refer to (exact match). Properties may follow in any order:
| Property | Meaning |
|---|---|
Color "RRGGBB[AA]" [Name "colour name"] |
Faction colour and the name of the colour shown in the lobby. |
ColorRemap n |
Colour slot to use instead of the faction's own. |
Portrait Index n / Portrait "image" |
Leader portrait (built-in index or a picture). An invalid index stops loading. |
Icon Index n / Icon "image" |
Faction icon. An invalid index stops loading. |
ModelPrefix "XX" |
Faction-specific unit pictures and models: every picture or model is looked for first under the folder XX/ (e.g. NA/Units/…), then at its normal path. The prefix must be listed in model_info.txt (12 — Other configuration files). |
Events FromFile "file" |
The faction's event script (missions, AI behaviour scripts) — see 15 — Event scripts. A missing file stops loading. Events followed directly by script blocks embeds the script. |
ExecuteEventsForNonActive Yes/No |
The faction's events run even when its slot is not in play. |
Achievement ACH_… |
Steam achievement for winning with this faction (official maps only). |
Active Yes/No |
The slot is in play. |
AI Yes/No [Suspended] |
Computer player. |
AIProductionSuspended, AIScienceSuspended, AIEspionageSuspended, AIDiplomacySuspended, AITransportSuspended Yes/No |
Turns off that part of this computer player. |
AutoDropHostedDisabled Yes/No |
This computer player does not drop its carried units by itself. |
NoSurrender Yes/No / NoSurrender manual |
Never surrender automatically while it has active units / surrender only by player command. |
TechLevel f |
Starting tech level of this faction. |
tech "id" available / tech "id" points |
A technology known at start, or research points already invested. |
AvailableUnits ut …, AvailableMissiles mt … |
This faction's own starting deployment (same syntax as §6). |
ProductionBoost f, ScienceBoost f, EspionageBoost f |
Economy multipliers for this faction. |
MTSwitchOverride "unit" "missile" |
Default weapon for that unit type. |
Further Player properties (diplomacy, research state, statistics) are written by saved games; see §11.
Simple ownership picture¶
Instead of MultiCountry, a map can take faction territories straight from a picture painted in the
Player colours:
OwnershipMap "Maps/MyMap.virtual/ownership.vec"
Player "North" Color "1188FF"
Player "South" Color "FF0011"
Generate from "Maps/MyMap.virtual/SRC/owners.png" [smooth 36000] [filter 25000]
Paint with a hard (non-antialiased) brush using exactly the Player colours; every area must touch its
neighbours along pixel edges, not only at corners. Run the map once to generate the .vec, then remove the
Generate line. Each faction is then one region.
5. Cities¶
Cities
ModelsPath "Maps/EarthRRUltraV3.Virtual/CityModels"
MaxPerPlayer 500 FromFile "Maps/EarthRRUltraV3.Virtual/earth_cities.csv"
relocate "Maps/EarthRRUltraV3.Virtual/earth_cities.reloc.txt"
rename "Bombay" "Mumbai"
rename "Kiev" "Kyiv"
relocate and the rename lines are part of the Cities entry: they must follow it directly.
| Keyword | Meaning | Default |
|---|---|---|
ModelsPath "folder" [Generate], repeatable |
Folders searched for the 3D city models <City name>.bin. Generate (Cheats build) creates the missing models from the map's colours around each city. |
Units/Images/City |
MaxPerPlayer n |
Upper limit of cities per faction. Over the limit, of the two closest cities of a faction the smaller is removed, until the limit is met. | no limit |
FromFile "file.csv" [Generate From "source.csv"] |
City list (below). With Generate From, the source list is read and the final list (after relocation) is written to the first file. Without FromFile, the list follows inline, ending with END. |
— |
relocate "file" [generate] |
Moves cities to adjusted positions (below). With generate, cities on water are moved inside the land and the result is written to the file. |
— |
rename "CSV name" "Display name" |
Shows a city under another name; matched exactly. | — |
SetTotalInitialPopulation "faction" n … |
One value per faction, in slot order: the population used as each faction's 100 %. | sum of its cities |
A missing FromFile list stops loading. Cities on neutral ground and cities of inactive factions are removed at start. A city belongs to the faction
that owns the region it stands in.
City list (earth_cities.csv)¶
Semicolon-separated, one city per line:
Absolute
Albuquerque;916528;0.203801;0.305030
Atlanta; 4975300 ;0.265594;0.312479
- First line
Absolute(orAbsolute;;;): coordinates are map coordinatesx;y. Without it, the two fields are geographic:DD MM SS N|S;DDD MM SS E|W. Name;population;x;y. Population is people.- Optional
WithInitialline afterAbsolute: each line starts with the initial population (initial;Name;population;x;y) — used by saved games. - Optional per-city lines after a city:
Images "folder"(custom city pictures; defaultUnits/Images/City/<Name>). END(orEND;;;) ends the list.
Relocation file (earth_cities.reloc.txt)¶
reloc "Virginia Beach" 0.288773 0.295201
reloc "Name" x y — new position (map coordinates) of the named city (exact name from the CSV).
6. Starting setup and AI¶
Default AvailableUnits
ut "Fighter" 10
ut "Army_Division" 10
Default AvailableMissiles
mt "Low-power nuclear bomb" 10
AvailablePoints -1
AICache "Maps/EarthRRUltraV3.Virtual/ai_cache_new.bin"
DefaultEnemy "North America" "Russia"
MIN_POSITIONING_DISTANCE 50
BOARD_TOLERANCE 120
HOST_TOLERANCE 20
Starting forces and technologies¶
| Keyword | Meaning |
|---|---|
Default AvailableUnits + ut "Unit_ID" n [at tick] lines |
Units every faction starts with (to deploy). at sets when they were added (auto-deployment counts from it). |
Default AvailableMissiles + mt "missile_id" n [extra launchers delay autouse] lines |
Starting missile stock. |
Default AvailableTechnologies + tech "id" lines |
Technologies every faction knows at start. |
Default DisabledTechnologies + tech "id" lines |
Technologies that cannot be researched on this map (lobby default). |
Default TechLevel f |
Starting tech level. |
AvailablePoints n |
Points for buying the starting setup (an AI faction keeps the default list; points above it, the lobby's too, and the value of default units its plans do not want go half to units its plans lack, half to technologies). -1 = calculated from the default units, missiles and technologies; a larger value adds the difference as extra points. |
LimitedEscalationDisabledMissiles "missile" … |
Weapons blocked during the limited-escalation period (lobby default). |
DisabledForAIMissiles "missile" bits … |
Weapons the computer factions whose bits are set (bit 0 = slot 0) do not use. |
Each Default line starts one list; several Default lines may follow each other.
AI¶
| Keyword | Meaning |
|---|---|
AICache "file.bin" [generate from "AIConfig.txt"] |
The AI's site pool: a fixed set of sites per region for silos, airbases, radars, naval points…, scored when a unit is deployed, so nothing in it depends on who owns a region. The game reads only the file with the extension replaced by .aics (ai_cache_new.bin → ai_cache_new.aics); the .bin itself is not read and need not exist. A missing .aics, or one made for another cache format, leaves the AI without sites (a line in Fatal.txt at load): nothing generates it unless asked. It records the checksum of the landing-pairs file (another file: a line in Fatal.txt, still usable), so make it again when that file, the regions, the city positions or a water map change. Make it from a map whose ConditionalWaterMap entry comes before AICache and loads an existing file: the region pairs that share a land border come from there, and made in the same pass as the conditional water map the cache gets no border radars and no border defence. A missing AIConfig.txt stops loading. A saved game's AI plans keep their sites only when the cache is the same one; otherwise they choose new sites. |
DefaultEnemy "faction" "faction" |
Old rivalry: the first faction starts with a low mood toward the second (PastRelations in AI/Mood.txt), which fades like any mood. Not applied between two human players in multiplayer. Repeatable. |
DefaultAlly "faction" "faction" |
Old friendship: the first faction starts with a higher mood toward the second (PastAlliance in AI/Mood.txt), which fades like any mood. Not applied between two human players in multiplayer. Repeatable. |
AIDisabled |
No computer players on this map. |
MIN_POSITIONING_DISTANCE km |
Minimal distance between units the AI places next to each other. Default 100. |
BOARD_TOLERANCE, HOST_TOLERANCE |
How close the AI brings units to a transport or landing point / to the point where it hands them over. Defaults 200 and 25. BOARD_TOLERANCE is also the boarding distance used when generating LandingPairs. AIR_BOARD_TOLERANCE and GROUND_BOARD_TOLERANCE are accepted but have no effect. |
MIN_SHORE_DIST n, MIN_BORDER_DIST n, SHORE_VERTICAL_SHIFT n, BORDER_VERTICAL_SHIFT n |
Spacing of placement points from shores and borders; a unit is 1/4096 of the globe's circumference, about 10 km. Defaults 3, 7, 0, 0. |
AIConfig.txt (input for AICache … generate)¶
MAX_THREADS 12
MIN_POSITIONING_DISTANCE 30
SHORE_DIST 16 // about 160 km
MAX Default 10
MAX SubmarineAttack 15
dist 10000 min 4000 for MissileSilo
dist 120 min 50 for CityControl
END
| Line | Meaning |
|---|---|
MAX_THREADS n, MIN_AI_SHORE_POINTS n |
Accepted, have no effect. |
NO_NAVAL_LINKS |
Leaves out the water routes linking the sites at sea to the naval bases and hide sites. The AI's ships and submarines find those only through these links, so such a cache is for quick tests. |
NAVAL_LINK_RANGE km, NAVAL_LINKS_PER_REGION n, HIDE_LINKS n |
The naval links: naval bases this close to a sea site in a straight line, how many per region, how many hide sites to an attack site. Defaults 5000, 2, 4. |
MIN_AI_LAND_POINTS n, MIN_AI_SEA_POINTS n |
Minimum number of points of each kind per region. Default 10 each. |
MIN_POSITIONING_DISTANCE km |
As in the map file, for the calculation. |
MISSILE_DEFENCE_DIST km, SATELLITE_RANGE km |
Ranges assumed for missile defence and satellites. Default 1000 each. |
BORDER_DIST, WIDE_BORDER_DIST, WIDE_BORDER_MIN_DIST (< WIDE_BORDER_DIST) |
Border-zone widths; a unit is about 10 km, as above. Defaults 10, 40, 20. |
SHORE_DIST, INLAND_SHORE_DIST |
Shore-zone widths, in the same unit. Defaults 32, 48. |
SHORE_SITE_DIST km, SHORE_GUN_RANGE km |
Shore sites (coastal guns) stand at most this far from the main ocean (5–1000, default 100), and the sea within this range of one makes its score (5–5000, default 500). |
BORDER_LIST_RANGE km |
How far each land site's distances to other regions' land are kept, for the rule that keeps a placement away from borders (100–60000, default 1500). |
WATER_SEGMENT n |
Which sea is the open ocean (-1 = the largest). |
MAX <PointType> n / MAX Default n |
Maximum number of points of a type per region. Default 60. MAX Default resets every type, so put it first. for "faction" n between the type and the count is accepted, has no effect. |
dist km [min km] for <PointType> [for <PointType>…] |
The ring around a site over which it is scored (reach to the enemy, cities…). Of several lines for a type, its largest dist and smallest min count; a unit's shorter range narrows the ring at deployment. |
The settings come first, then the MAX lines, then the dist lines: anything after those is not read.
Point types are those of the AI group placements (08 — AI §7):
MissileSilo, CityDefence, Radar, OverHorizonRadar, Airbase, SubmarineAttack, SubmarineHide,
CarrierAttack, MobileMissile, ObjectDefence, NavalBase, Orbit, Shore, CityControl,
BorderDefence, MarinesLanding, AirborneTroopsLanding, TroopsTraining, Industry. ObjectDefence and
Orbit points are created automatically.
7. Game rules (lobby defaults)¶
These values become the defaults of the game-setup screen for this map; the host can still change them.
ScoringMode 3361 // conquest
PeaceTimer 36000 // 10 game minutes without attacks
NoNukesTimer 54000
OccupationThreshold 1.00
AllowAlliances Yes
| Keyword | Meaning | Default |
|---|---|---|
ScoringMode n |
2398 default, 2399 survival, 2400 genocide, 3361 conquest. |
2398 |
PeaceTimer ticks |
Time from the start with no attacks at all. | 0 |
NoNukesTimer ticks |
Time from the start without nuclear weapons. | 0 |
PeaceTimerAddedNum n, NoNukeTimerAddedNum n |
How many times players may extend these timers. | 0 |
CeasefireTimeout ticks |
Minimum duration of a ceasefire. | 36000 (10 game minutes) |
PeaceTreatyTimeout ticks |
Minimum duration of a peace treaty. | 90000 (25 game minutes) |
MinPartnershipTimeToPermanentAlliance ticks |
Partnership time before an alliance can become permanent. | 432000 (2 game hours) |
TimedPermanentAlliances bool |
On: a permanent alliance after MinPartnershipTimeToPermanentAlliance. Off: by the mood held (PermanentAllianceMood, PermanentAllianceTicks in AI/Mood.txt). A save without the line reads on. |
false in a new match |
TimeToAutoDeploy ticks |
Undeployed starting units are deployed automatically after this time. | 54000 |
TimeToFullProductionAfterOccupation ticks |
An occupied region reaches full production after this time. | 36000 |
TimeToFinish ticks |
Length of the end-of-game countdown. | 72000 |
CountdownTrigger f |
Global pollution level that starts the end-game countdown (TimeToFinish). |
0.5 |
OccupationThreshold f |
Share of a region's city population that must be occupied to take over the region; 0.5 or less turns region capture off. | 1.0 |
RegionDestructionThreshold f |
A region whose population falls below this share of its initial population is destroyed; 0 = off. | 0 |
AutoSurrenderThreshold f |
A faction surrenders when its population falls below this share. | 0.15 |
PollutionSpeedCoeff f |
Speed at which radioactive contamination builds up. | 1.0 |
GlobalProductionBoost f, GlobalScienceBoost f, GlobalEspionageBoost f |
Economy multipliers for everyone. | 1.0 |
ProductionDegradesWithLosses Yes/No |
Production falls with population losses. | Yes |
LimitedProductionBenefitFromExpansion Yes/No |
Captured regions add less production. | Yes |
AllowAlliances Yes/No |
Alliances allowed. | Yes |
AllowInstantTechSharing Yes/No |
Allies may share research instantly. | Yes |
AllowTechnologyTrade Yes/No |
Technologies can be traded in deals. Off: nobody can give or ask for one in a deal. | Yes |
EconomicSanctions Yes/No |
Conquest only. A faction sanctioned for its atrocities loses production and science: 0.25 × S, 0.4 × S as a pariah, S the share of the world's production held by the factions sanctioning it. Off: the sanctions still end agreements and trade. The lobby's default: on in single player, off in multiplayer. | No (a map or save without the line) |
GenevaRequiresConsensus Yes/No |
Geneva Convention votes must be unanimous. | No |
AggressiveAISettings Yes/No |
Computer players invade without first completing their defence and research plans. | No |
PredefinedTeams Yes/No |
Factions start allied in the teams set in the lobby. | No |
AllowBuildingOnAlliedTerritory Yes/No |
Units may be deployed on allied territory. | Yes |
AutoSlowDownAllowed Yes/No |
In single player, the game speed drops to at most ×3 while nuclear missiles are in the air. | Yes |
RealisticSatelliteOrbits Yes/No |
Satellites move as real ones, the Earth turning under their orbits, so their tracks drift. No gives the classic orbits, whose tracks stay in place. The campaign missions use it; a new mission that wants them needs the line itself. A map or saved game without this line has the realistic orbits. |
Yes |
DisableMaxRangeOptimization Yes/No |
Recalculate every unit's attack range every tick instead of periodically (slower). | No |
UseIntermediatePointForInvasion Yes/No |
Invasions gather at an intermediate point first. | No |
NoPlayerGameSpeed n |
Game speed when no human player is left. | 3 |
MinKilledToReport n |
Smallest number of casualties reported in the event log. | 100 |
ScoreByKillCoeff, ScoreByLossCoeff, ScoreByPollutionCoeff, ScoreByOccupationCoeff, ScoreByTerritoryLossCoeff |
Weights of the score components. | 1.0 |
ScenarioTotalScore n |
Score to reach in a scenario. | 0 |
ScoringFrom n, ConfigurableTimer n |
Accepted, have no effect. | — |
8. Display settings¶
UIToUse "UI/UI.txt"
OwnershipOverlayAlpha 55
DrawInternalBorders 1.2 // faint border
UnitScaling 0.45
MinUnitZoom 3.5
| Keyword | Meaning | Default |
|---|---|---|
UIToUse "UI/UI.txt" |
Interface layout file. | the game's |
SpecularColor c |
Specular light on the globe. SpecularHighlight Yes/No is accepted, has no effect. |
— |
UseAtmoGlow Yes/No, AtmoGlow c |
Atmosphere glow and its colour. | — |
OwnershipOverlayAlpha n |
Opacity (0–255) of the faction-colour overlay. | 50 |
MapContrastAdjustment n |
Contrast of the map texture. | 30 |
DrawInternalBorders f |
Strength of borders between regions (0–2; 1 = faint). | 1.0 |
DynamicBorderScaling f |
0–1: border width follows zoom. | 0 |
DrawOverlayType n (DrawTerrainTypeOverlay n) |
Overlay shown at start. | ownership |
DrawOwnershipOverlay n |
Bit mask of factions whose territory is coloured. | all |
DrawRadarCoverage Yes/No, DrawRadarCoverageForAllies Yes/No, CoverageBitScale n |
Radar coverage display. | off |
DrawPollution Yes/No |
Show contamination. | Yes |
UnitsInPlayerColor Yes/No |
Tint units in faction colour. | No |
UnitScaling f, CityScaling f, ExplosionScaling f, OrdersScaling f |
Size of unit icons, cities, explosions and order markers. | 0.75, 1, 1, 1 |
UnitMips Yes/No |
Mip-mapping for unit pictures. | No |
MinDiscolorZoom f, MaxDiscolorZoom f |
Zoom range over which the map texture desaturates. | — |
DrawZoomHelper Yes/No, StartHelperZoom f, MinHelperTransparency f, FullHelperZoomTime ticks, HelperColor c |
The "zoom helper" outlines drawn when zoomed out. | on |
MinUnitZoom f, MaxUnitZoom f, MinExplosionZoom f, MaxExplosionZoom f |
Zoom range in which units / explosions are drawn. | all |
ZoomFadeLimit f, ZoomFadePower f, ZoomFadePowerExtra f |
How icons fade with zoom. | 10, 0.5, 0.75 |
ModelZoomFadeLimit f, ModelZoomFadePower f |
The units' 3D models grow with the map up to the zoom ModelZoomFadeLimit, then slower, as MapScale^ModelZoomFadePower: zoomed in they get smaller compared to the map (closer to the real scale), never smaller than at that zoom. The ordinary explosions and the spots where hits are drawn on the models shrink with them. ModelZoomFadePower 1: as the map. |
10, 0.65 |
ModelCloseUpPower f |
Closer in, from the terrain view's zoom, the models grow faster again, as MapScale^ModelCloseUpPower. |
0.8 |
AbstractPictureShare f |
Zoomed out, a unit's drawn length as a share of what its abstract picture shows, turning into its model's length at the switch to the model. | 0.75 |
GlobeView Yes/No |
Start in globe view. | No |
MapScale f, MapShiftX f, MapShiftY f, MapShiftXRel f, MapShiftYRel f |
Initial zoom and position. | — |
9. Building the border and region files: ProcessBorders¶
The region files of §4 are produced from a vector drawing of the borders. ProcessBorders runs one or more
of these steps when the map is loaded in the Cheats build (each step is put behind // once its
files exist; the shipped Earth map keeps them so):
ProcessBorders
ReadSVG "SRC/V7.svg" Generate "SRC/V7_split.txt" [SaveEdited "SRC/V7_split_mod.txt"]
EditPoints "SRC/V7_split.txt" [SaveEdited "SRC/V7_split_mod.txt"]
GenerateSplit Load "SRC/V7_split.txt" Generate "SRC/V7_split.bin" Names "SRC/V7_segment_names.txt"
[SplitCenterPoints "file"] [Now]
GenerateOwnership LoadBin "SRC/V7_split.bin" [GenerateDimmable] LoadNames "SRC/V7_segment_names.txt"
[Factions "V7_default.txt"] SaveDefaults "SRC/V7_default" Generate "SRC/V7_split.vec" [MAP_SIZE 4096]
GenerateDefaults Names "V7_default.txt" Vec "V7_default.vec"
| Step | Does |
|---|---|
ReadSVG … Generate … |
Converts the border drawing into a point-and-edge file and opens it in the point editor (below), saving to SaveEdited or, without it, to the Generate file. Every path of the SVG is a border line; the drawing's canvas is the whole globe (2:1). |
EditPoints … [SaveEdited …] |
Opens a point-and-edge file in the point editor. |
GenerateSplit |
Splits the territory into numbered segments (.bin), one for each point clicked (or listed in the centre points file), and writes the segment numbering into the Names file. The centre of each segment is written to <bin>.points.txt (or SplitCenterPoints) and is used again at the next run. |
GenerateOwnership |
Builds the region territories (Generate: .vec), writes <SaveDefaults>.txt (every region with a random owner, to edit) and <SaveDefaults>.vec with its .vec.cmap. GenerateDimmable marks border lines inside a faction so they are drawn faintly. MAP_SIZE is the grid size (power of 2). |
GenerateDefaults |
Rebuilds the faction borders (Vec: .vec, .vec.cmap) for the region owners the map's OwnershipMap … Default gives. Names is an output, written with those owners: name another file than the one you edit. |
Two options: GenerateSplit … Now makes the split while the map is read, from the centre points file, instead of at
the first frame drawn, so GenerateOwnership in the same run finds its .bin; GenerateOwnership … Factions
"default.txt" (before SaveDefaults) takes the owners from that default assignment instead of random ones.
The point editor (ReadSVG, EditPoints; on the flat map): the points and edges of the borders are drawn on the
map. A left click on a point starts a new border line there; each further left click adds a point; a click on an
existing point (or a point of the line itself) ends the line and saves the file. A right click deletes the edge
nearest the cursor (points left alone go too) and saves.
Splitting (GenerateSplit without Now, on the flat map): if the centre points file exists, its points are used
at the first frame. Each left click inside a closed area of the borders then makes the next segment, in click order:
segment 0, 1, 2… The cursor shows the name of the next segment from the Names file, so write that file first, in the
order you will click; a segment the file lacks is added to it as "Segment N". Instead of clicking, write the centre
points file yourself (one point inside each region, Shift shows the coordinates under the cursor) and add Now.
File formats:
- Point-and-edge file (
V7_split.txt):P x ylines (points, numbered from 0 in order), then for each pointFOR nfollowed byE m lengthlines (an edge to point m). - Centre points (
V7_split.bin.points.txt):Point x yper segment, in segment order (a// commentwith the region name is allowed). - Names file: the region list of §4; each segment number belongs to the region on whose line it stands, so a region can be made of several segments (an island and its mainland).
P 0.077231 0.105880
P 0.083012 0.107807
…
FOR 0
E 18 0.012332
E 1 0.006094
FOR 1
E 0 0.006094
Point 0.096186 0.132258 // segment Alaska
Point 0.067260 0.387693 // segment Hawaii
10. Making a new map, step by step¶
There are three ways, from the least work to the most:
- From a saved game (§11): any position on an existing map — borders, units, technologies — becomes a new map. Nothing has to be generated.
- Small edits (below): cities, starting units, factions and lobby defaults of an existing map, by editing text.
- From zero (below): your own geography. The Cheats build generates the binary files, but you prepare the pictures and lists by hand, and that is laborious.
Small edits to an existing map¶
Copy the map file under a new name into your mod's MAPS/ folder and change it; it keeps using the original map's
data folder. What each edit needs:
| Edit | Where | Make again |
|---|---|---|
| Name, description, camera | header (§2) | nothing |
| Lobby defaults, display | §7, §8 | nothing |
| Starting units, missiles, technologies | Default Available…, Player blocks (§6) |
nothing |
| Faction names, colours, portraits | Player blocks (§4); rename them also in DefaultEnemy/DefaultAlly, events and AIConfig.txt |
nothing |
| Fewer factions | Active No in a Player block, or regions given to other factions in a copy of the default file |
GenerateDefaults (faction borders) |
| Region owners | a copy of the default file (§4), or a VARIANT in it |
GenerateDefaults |
| City names | rename lines (§5) |
nothing |
| City population | a copy of the city list | nothing |
| City added, removed or moved | a copy of the city list | LandingPairs, then the AI cache |
| Region economy | a copy of the region list (Production, Science, Espionage) |
nothing |
Example: a variant of Earth that starts with more armies and a peace timer, under its own name, the rest read from the original files:
MAP
Name idx "Long Peace"
Description ENG "Half an hour of peace, then the arms race."
Restrictions MinScale 0.75 MaxScale 100.0 CenterX 0.5 CenterY 0.5 ShiftX 2 ShiftY 2
… // the original's geography lines, unchanged
Default AvailableUnits
ut "Army_Division" 20
ut "Fighter" 10
AvailablePoints -1
PeaceTimer 108000
…
END
From zero¶
Plan for days, not hours. What you make by hand, and what the Cheats build makes from it:
| You prepare | The Cheats build makes |
|---|---|
| A texture pack, or the use of a shipped one | — (it cannot build a pack) |
| Three water pictures (or SVG outlines) | the water masks .vec + .vec.cmap (§3) |
A terrain picture in the Terrain colours (optional) |
terrain_type.vec (§3) |
| A border drawing (SVG), region names and economic shares, the owners | the region files (§9) |
| A city list (CSV) | the relocation onto land, the city models |
AIConfig.txt (copy Earth's) |
ConditionalWaterMap, LandingPairs, the AI cache |
The texture pack. The map's picture is a texture pack (§3, TextureMap): a folder with the tiles of every zoom
level (map.e5i + map.e5p), the overview Default.* and the preview Default_small.png. The Cheats build cannot
make one. A new geography on Earth's pack (an alternative history: other borders, other cities) uses
TextureMap "Maps/EARTH256K" and Earth's water masks, height map and terrain types, and starts at step 4 below.
Without a height map the ground is flat; leave HeightMap out.
Do the steps in this order, each a run of the map in single player in the Cheats build. After each run move the files it
wrote from the settings folder's Maps/… into the map's folder, and put the step behind //.
- The map file. Start from a copy of
MAPS/EarthRRUltra.txt: yourName, yourTextureMap, thePlayerblocks of your factions (at most 10), anOwnershipMapwithoutMultiCountry(its.vecneed not exist yet), and everything built from regions, cities or water behind//(ConditionalWaterMap,LandingPairs,Cities,AICache,DefaultEnemy, theEventsof the factions):
MAP
Name idx "Twin Continents"
Restrictions MinScale 0.75 MaxScale 100.0 CenterX 0.5 CenterY 0.5 ShiftX 2 ShiftY 2
WaterMap "Maps/Twin.virtual/watermap.vec"
Generate from "Maps/Twin.virtual/SRC/water.png"
WaterMapNoIce "Maps/Twin.virtual/watermap_no_ice.vec"
Generate from "Maps/Twin.virtual/SRC/water_no_ice.png"
WaterMapLand "Maps/Twin.virtual/watermap_land.vec"
Generate from "Maps/Twin.virtual/SRC/water_land.png"
TextureMap "Maps/TwinPack"
OwnershipMap "Maps/Twin.virtual/default.vec"
Player "West" Color "1188FF" Name "Blue" Portrait Index 15
Player "East" Color "FF0011" Name "Red" Portrait Index 17
END
2. The water. Draw the three water pictures (§3) and run the map: the masks are traced. Check the coasts on the map;
fix a picture and run again, or draw the outlines as SVGs and refine them with EditSVG (§3). Laborious: every
strait and isthmus decides where ships and armies can go.
3. The terrain types (optional). Paint the terrain picture and add the TerrainTypeMap entry with Generate
(§3). Without it the map has no terrain types: terrain modifiers of technologies do nothing there.
4. The regions. Two ways:
* One region per faction: paint an ownership picture in the Player colours and generate it (§4, Simple
ownership picture). Quick, but a faction is then one region: no region capture, no regional economy.
* Real regions (the shipped maps' way): draw the region borders as lines in a vector editor on a 2:1 canvas of
the whole globe, every region closed by lines that meet at shared points.
Then, in the ProcessBorders entry (§9), one run each:
1. ReadSVG: the drawing becomes the point-and-edge file; mend gaps and stray lines in the point editor.
2. Write the names file (§4, Region list): one line per region, "Name" Production p Science s Espionage e n,
the numbers 0, 1, 2… in the order you will click.
3. GenerateSplit: click once inside each region in that order. Or write the centre points file and add Now.
4. GenerateOwnership … SaveDefaults "SRC/default" (with GenerateDimmable): the territories and
SRC/default.txt with random owners. Edit its owners (faction slot numbers, §4 Default assignment).
5. Point the OwnershipMap entry at the files (MultiCountry, Borders, Ownership, Default) and run
GenerateDefaults Names "SRC/default_check.txt" Vec "default.vec": the faction borders.
```
OwnershipMap "Maps/Twin.virtual/default.vec"
MultiCountry "Maps/Twin.virtual/names.txt"
Borders "Maps/Twin.virtual/split.bin"
Ownership "Maps/Twin.virtual/split.vec"
Default "Maps/Twin.virtual/default.txt"
Player "West" Color "1188FF" Name "Blue" Portrait Index 15
Player "East" Color "FF0011" Name "Red" Portrait Index 17
```
Laborious: a map like Earth's has about 150 regions; each needs a name, three shares (adding up to 1 within a
faction) and an owner.
- The cities. Write the city list (§5):
Absolute, thenName;population;x;y. Hold Shift over the map to read and copy the coordinates under the cursor. Every region should have at least one city: a region's population is its cities'. Run once withrelocate "…" generateto move cities that stand on water onto the land, then use the written relocation file.ModelsPath "…/CityModels" Generatemakes each city's 3D model from the map's colours around it. - Path finding and landings. Remove the
//beforeConditionalWaterMapandLandingPairs, addgenerateto both, run the map, keep the files, removegenerate. - The AI cache. Copy Earth's
SRC/AIConfig.txtinto your map'sSRC/(it names no faction), addAICache "Maps/Twin.virtual/ai_cache.bin" generate from "Maps/Twin.virtual/SRC/AIConfig.txt"and run once more (it takes minutes). Keep the writtenai_cache.aicsand removegenerate from …. It must be a run of its own, after step 6 (§6). Check the sites with Ctrl + 0 … 9 and Alt + 0 … 8 (10 — Cheats build). - The setup.
DefaultEnemy/DefaultAllypairs, starting units and technologies (§6), lobby defaults (§7), display settings (§8), faction event scripts if you want them. - Test and publish. Play it in single player, with the computer factions (Shift + 0 … 9 to watch each one).
The mod needs the map file and the map's folders with every file the map file names; the
SRC/pictures and drawings are only yours. Delete the generated copies from the settings folder'sMaps/: they are read before the mod's.
What each step needs, and what to make again after a change¶
| Change | Make again, in this order |
|---|---|
| Water masks | ConditionalWaterMap, LandingPairs, the AI cache; cities that now stand on water (relocate) |
| Region borders or their numbering | GenerateSplit, GenerateOwnership, GenerateDefaults, ConditionalWaterMap, LandingPairs, the AI cache |
| Region owners | GenerateDefaults |
| Region names, economic shares | nothing |
| Cities added, removed or moved | LandingPairs, the AI cache (and city models for new cities) |
AIConfig.txt, BOARD_TOLERANCE |
the AI cache (BOARD_TOLERANCE: LandingPairs first) |
| Terrain picture | TerrainTypeMap … Generate |
11. Making a map from a saved game¶
A saved game is a map file with the game state appended, so any position — borders changed by a war, technologies researched, armies deployed — can become a new map that starts from that position. Nothing has to be generated: the masks, regions, cities and AI cache stay those of the original map. The Cheats build does it step by step:
- Set up the position. Start a single-player game on an existing map. Use the cheats to prepare each faction: research with Shift + T, build with Ctrl + click, place units (hold Ctrl to deploy anywhere, Ctrl + T to move a unit), give regions away with Ctrl + O, switch faction with Shift + 0 … 9 (10 §3).
- Save as a scenario: hold Shift when confirming Save. The game writes
Documents/My Games/ICBM-Escalation/SAVES/SAVEn/world.txtandworld.txt.remap.txt. - Copy both files into your mod's
MAPS/folder under the new map's name, keeping the pairing:MAPS/MyMap.txtandMAPS/MyMap.txt.remap.txt. The region owners are read from the file named like the map file plus.remap.txt(Default AUTO_FROM_SAVEin theOwnershipMapentry). - Edit the header of
MyMap.txt: - Replace the first line
MAP Name ID …withMAPand yourNamelines, and checkDescription(§2). The map is listed only whenMAPandNamecome first. - Remove or fill in the
Events FromFile "Scenario/MY_SCENARIO_NAME/…"placeholders in thePlayerblocks: a script file that does not exist stops loading. - Leave the commented-out
ScenarioInfotemplate alone (or delete it); it is needed only for missions. - Adjust the setup: lobby defaults (§7),
Default AvailableUnitsfor the starting deployment (§6), display settings (§8). As long as only owners, units and technologies changed, nothing needs regenerating. - Start the game: the new map appears in the map list and starts with the saved units in place.
The top of such a file after step 4:
MAP
Name idx "Europe Divided"
Description ENG "The war in the east is over. The borders are new, the arsenals full."
Restrictions MinScale 0.75 MaxScale 100.0 CenterX 0.5 CenterY 0.5 ShiftX 2 ShiftY 2
WaterMap "Maps/EarthRRUltraV3.virtual/watermap_16K.vec"
…
OwnershipMap "Maps/EarthRRUltraV3.Virtual/V7_default.vec"
MultiCountry "Maps/EarthRRUltraV3.Virtual/V7_segment_names.txt"
Borders "Maps/EarthRRUltraV3.Virtual/V7_split.bin"
Ownership "Maps/EarthRRUltraV3.Virtual/V7_split.vec"
Default AUTO_FROM_SAVE
…
A normal save (without Shift) can be used the same way, but it also carries the game clock (Time … at the
top — remove it, or the map is not listed), the mod list, AI plans, diplomacy, pollution and score; the
scenario save leaves all of that out.
12. Keys used by saved games and scenarios¶
Saved games and scenarios use the same file with more keys. Map authors do not need them; they are listed so that the keywords in a saved file are recognisable:
GlobalPollution 0.012
CameraFollowMeUnitUID -1
| Keys | Hold |
|---|---|
GlobalPollution, TicksWithoutWarheads, TicksWithoutWarheadsForPlayer, NuclearWarningPlayed |
Global state. |
CameraFollowMeUnitUID |
Camera target. |
ScenarioInfo … |
Campaign and mission description — see 11 — Campaigns and scenarios. |
Alliance …, AIVoting …, BannedTechnologies tech "id" … |
Diplomacy and Geneva Convention state. |
Modifications mod x y type segment [wmap n] … |
Changes to the water masks made during the game. |
UnitFilter …, Highlights hl … |
UI state. |
Player properties APValue, SpyingOn, SpyPriority, NuclearEfficiency, DEFCONLevel, Construction, CurrentResearch, NextResearch, SpyTech, SpyUnit, DisassembledUnits, Relations, CeaseFire, PartnershipFrom, MyAlliance, Agreements, Reparations, Score, stats, History, … |
The faction's state. |
City lines stat, OccupiedSince, captured, OriginalOwner, InRangeAuras, InRangeAurasAllies |
City state. |
UID … (after the map part) |
Units, explosions, plans and the rest of the game state; the map part ends here. |
13. Map-specific mods¶
A map can bring its own mod: data changes that apply only while this map is played. The campaign missions
use one to adjust the economy or a few units for their story. A map for a special scenario can do the same
with any data file: units, technologies, explosions, AI files, espionage.txt, language files.
MAP
Name idx "Border Crisis"
MapSpecificMod "Maps/BorderCrisis.virtual/Mod"
…
MapSpecificMod "folder" names a mod folder, relative to the game folder, with an info.txt like any mod
(12 §2) and files laid out like the game folder. The folder is looked
up like any file — first in Documents/My Games/ICBM-Escalation, then in the enabled mods, then in the game
folder — so it can live inside your own mod. A folder without a valid info.txt (ICBM MOD "Name") is
skipped without a message.
When it is active. The mod is switched on when the map is loaded:
- when the map is picked in the game-setup screen;
- when the game starts;
- when a game saved on this map is loaded (the saved map part keeps the
MapSpecificModline).
It is switched off when another map is loaded or the game ends. It doesn't appear in the mod list, the player can't turn it off, and it doesn't affect achievements. The map list itself (name, description, preview) is read without it.
Priority. The map's mod is searched before everything else: before the game mode's mod
(12 §8) and before the player's enabled mods. Start
its files with USE PREVIOUS to change the current data rather than replace it, so that it works on top of
any game mode and mod:
// Maps/BorderCrisis.virtual/Mod/Tech.txt
USE PREVIOUS "tech.txt"
[TECHNOLOGY] "BORDER_CRISIS_ECONOMY" // no Points, no parent: every faction has it (05)
Name "BORDER_CRISIS_ECONOMY"
[END]
// Maps/BorderCrisis.virtual/Mod/Units/Units.txt
USE PREVIOUS "Units/units.txt"
[UNIT] "VirtualCity" MODIFY
ImprovedBy "BORDER_CRISIS_ECONOMY" Production 2.0
[END]
This is the pattern of the main campaign's Scenario/Main/GDP-Mod. A zero-cost technology without
parents is known to every faction from the start (05), and the
modifier attached to it changes the value on this map only.
ForceLoading. Before a campaign mission starts, the screen where the player spends the mission's
starting points reads the map without its mod. Add ForceLoading to load the mod there too. You need it
when the starting setup or the point costs depend on units or technologies that only the mod defines (the
SNARE campaign uses it). A game saved on such a map keeps MapSpecificMod but not ForceLoading. If you
turn the save into a mission map, add it back.
Multiplayer. Every player needs the same map-mod files, just as they need the map itself; the game compares the data before the game starts.
14. Pitfalls¶
- Order at the start of the file.
MAP, then theNamelines, thenDescription, thenRestrictions, or the map is not listed. Keep the remaining order of the shipped maps (§1). relocateandrenamebelong toCitiesand must follow it directly; elsewhere they stop loading.- Names must match exactly: faction names in
DefaultEnemy,AIConfig.txtand events; city names inrenameand the relocation file. Region names in the default file are matched ignoring case. - Regenerate the derived files (
ConditionalWaterMap,LandingPairs, AI cache) after changing regions, cities or water maps, or ground movement, landings and AI placement will not match the map (§10). ConditionalWaterMapafterWaterMapLand, beforeAICache, and the cache made in a pass after the conditional water map: otherwise the cache has no border sites (§6).- A map without an
.aicshas no AI sites, and one without naval links leaves the AI's ships without bases and hide sites (§6). - Generated files in the settings folder's
Maps/take priority over the map's own folder. Delete them after moving the files into your mod. - At most 10
Playerblocks and 255 regions. - An unknown word stops loading the rest of the map file (§1); check the line number in the message.