I've poured a stupid amount of time into map modding this weekend and have a few little things to share with you all
I'm sure you map modders already know most of this, but this is more for my own reference more than anything
Plus, I need to do something while my game takes ages to calculate paths...
Feel free to add to or debate about anything on this list. It's all up for discussion, and I'd be more than happy to be proven wrong.
1. Maximum Map Size
The maximum map size appears to be approximately 2750px * 1500px (vanilla is 1960px * 1228px). The map files can be bigger than this, but if anything (including impassable water) other than PTI is placed above or beyond these lines, then the game will crash either during Calculating Paths or Loading Graphics.
2. Permanent Terra Incognita and impassable water
Black areas in provinces.bmp (ie PTI) must be purple in terrain.bmp. The game will crash at Loading Graphics if you have any other terrain colour in a PTI area.
The black edges around the map are saved in the alpha channel of colormap_rivers.dds.
Make sure no provinces are split by impassable water (or PTI?). Having any will cause a crash during Calculating Paths (I think?).
Make sure no provinces have ports in impassable water.
3. Other Files
In default.map, the total provinces is equal the number of actual provinces you have, plus one (PTI?). Having the wrong number will cause it to crash during Loading Graphics.
In positions.txt, make sure no provinces have ports in impassable water.
Make sure that rivers.bmp, terrain.bmp and heights.bmp are saved as 8-bit indexed. They will not load if they are saved as RGB.
Turn off antialiasing in your chosen image editor. It will save lots of headaches later on.
Feel free to add to or debate about anything on this list. It's all up for discussion, and I'd be more than happy to be proven wrong.
1. Maximum Map Size
The maximum map size appears to be approximately 2750px * 1500px (vanilla is 1960px * 1228px). The map files can be bigger than this, but if anything (including impassable water) other than PTI is placed above or beyond these lines, then the game will crash either during Calculating Paths or Loading Graphics.
2. Permanent Terra Incognita and impassable water
Black areas in provinces.bmp (ie PTI) must be purple in terrain.bmp. The game will crash at Loading Graphics if you have any other terrain colour in a PTI area.
The black edges around the map are saved in the alpha channel of colormap_rivers.dds.
Make sure no provinces are split by impassable water (or PTI?). Having any will cause a crash during Calculating Paths (I think?).
Make sure no provinces have ports in impassable water.
3. Other Files
In default.map, the total provinces is equal the number of actual provinces you have, plus one (PTI?). Having the wrong number will cause it to crash during Loading Graphics.
In positions.txt, make sure no provinces have ports in impassable water.
Make sure that rivers.bmp, terrain.bmp and heights.bmp are saved as 8-bit indexed. They will not load if they are saved as RGB.
Turn off antialiasing in your chosen image editor. It will save lots of headaches later on.
Last edited:
- 1