
Note that while railways and supply nodes are buildings, not all traditional building operations apply to them. These are the different types of buildings in the game as of 1.11 (Can also be found inside /Hearts of Iron IV/common/buildings/00_buildings.txt): Make sure that strategic region borders are followed, either by adjusting the state or the strategic regions.īuilding types Main article: Building modding If one province in the state belongs to one strategic region, while a different province in the same state belongs to a different strategic region, a map error will be created, which will cause a game crash on launch if the debug mode is not turned on. The state borders must follow strategic regions, defined in /Hearts of Iron IV/map/strategicregions/*.txt.
#MERGE TOWN BUILDINGS LIST MOD#
Note to move the files generated by the nudge from the user directory of the game into the mod files, as otherwise they'll appear when loaded into base game too or be overwritten by the mod's files. This is also edited in the building section in the nudger, and them being undefined or incorrect counts as a map error that crashes the game without debug mode. The simplest way to compile the positions of models is to use the building section in the nudger, available from the main menu if the debug mode is turned on.Īdditionally, /Hearts of Iron IV/map/airports.txt and /Hearts of Iron IV/map/rocketsites.txt decide in which province in the state the game should put airports or rocket sites. For example, if a province is lacking a definition for a naval base or a floating harbour within a province, whether it's set in the wrong state in the buildings.txt file or missing entirely, attempting to use one within that province (whether by the player or the AI) will cause a crash, marked with the last read script being client_ping. A mismatch will cause errors, taking up space in the log and potentially crashes.

The building models for each state are defined separately from the states themselves, rather being defined in /Hearts of Iron IV/map/buildings.txt.

While state creation can be done mostly manually, there are several things to keep in mind: Each state is contained within a state = Additional notes
