As a comma-separated file, you may open it with Excel or other similar programs, or a text editor. The adjacencies file is found at /Hearts of Iron IV/map/adjacencies.csv. This will cause the river to use the VFX for emptying into an ocean at the merge point rather than merging into the other river. To avoid player confusion, province paths should either clearly cut or stay clear of a river.ĭo NOT place a green source pixel at the beginning of a river that ends in a red merge pixel. If it intersects multiple river pixels of different types, the crossing type is implementation defined. If the path between two provinces overlaps at least one river pixel, it is considered a river crossing. To correctly render, each river must have exactly one marker, either a start marker (green/yellow) or an end marker (red). Indexes 0 up to including 6 are treated as small rivers for game mechanics, indexes up to including 11 as large rivers. Used to join multiple 'source' paths into one river.įlow-out source. The rivers.bmp file should be in Indexed mode and saved as a 8-bit bitmap image file (.BMP).įlow-in source. Rivers.bmp controls the river placement on the map. If the map is saved with a 32-bit format, the game will crash with a 'warning X4008: floating point division by zero' error. The provinces.bmp file should be in RGB mode and saved as a 24-bit bitmap image file (.BMP). Provinces should be kept contiguous as much as possible. This is likely too small to be easily usable by the player.
It might be necessary to delete this copy after making changes to the original file. If the province definitions are incomplete, the game creates a copy of this file in the user directory, with any incomplete or missing province definitions filled in. Examples:ħ 212 179 179 sea true ocean 0 - a coastal sea provinceġ14 40 15 15 land false plains 1 - an inland plains provinceĢ60 170 235 235 land true urban 1 - a coastal urban province Sea provinces must have the continent of 0. The continent is a 1-based index into the continent list. The valid terrain types are defined in /Hearts of Iron IV/common/terrain. The province ID, as well as the RGB value, must be unique. Defined for land or sea provinces in common/terrain) continent (int) Province id r value g value b value province type (land/sea/lake) coastal (true/false) terrain (plains/hills/urban/etc. The following files all need to have that same resolution:ĭefinition.csv contains the provinces the game recognizes and is arranged in the following format: The map's width and height are taken from provinces.bmp. The name default.map itself is hard-coded. The following sections assume the standard file paths. # Define which indices in trees.bmp palette which should count as trees for automatic terrain assignmentĪll file paths can be changed and are relative to the map/ directory. The file default.map references the bitmaps and text files that make up the map.
In case GIMP is used, in the export settings while exporting to BMP on each map, you need to check the 'Disable writing colorspace information' box. bmp files other than provinces.bmp or world_normal.bmp. 13.1 Supply areas (For versions prior to 1.11)ĭue to not preserving the order of colours in the palette, or Microsoft Paint will not work for terrain.bmp or any.