
This might be an indication that two provinces inadvertently share a color. Perhaps pixels are spread around the world in provinces.bmp": The province has a width/height of more than 1/8th of the total map width/height. The game connects the bottom left and the top right provinces but this situation is confusing to the player and should be avoided. Please fix pixels at coords": Four provinces share a common corner. When debug mode is enabled, it will warn about the following conditions: Provinces that share a pixel edge neighbor each other and are connected. Each pixel belongs to the province with the matching RGB value. Provinces.bmp controls the location and shape of the provinces on the map. The file must have Windows-style line endings (CRLF!) Each of these islands internally counts as a province visually, although a division will be occupying all of them simultaneously and therefore is adressed on a logical level as one province. What is meant by homogenous/heterogenous is explained in the picture down below:Īs you can see in this picture there are 5 highlighted islands. So far the highest amount of created provinces is 21939. Apparently the number of displayable provinces is actually a set number and gets influenced by the number of homogenous areas on the map. Last province before they don't get displayed anymore seems to be 21651 as of current knowledge. HOI4 has a limit(between 19K and 22K) of displaying provinces.

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. Due to not preserving the order of colours in the palette, or Microsoft Paint will not work for terrain.bmp or any.
