Reference – Map Modding

.DDS files require an image editor with the capability to open the. The NVIDIA Texture Tools for Photoshop allow this, and can be found here.

When saving a .DDS file, the default options will work fine.

Known Working Map Dimensions:

  • 5632 * 2048
  • 1024 * 2048
  • 1024 * 4096
  • 1024 * 8192
  • 1024 * 1024
  • 512 * 512
  • 256 * 256 (minimum)

Known Crash Factors:

  • continent.txt missing province ids.
  • Any file in any folder referring to non-existent province ids
  • default.map province limit not higher than the last placed province in definition.csv
  • terrain.bmp color table not matching the information in terrain.txt
  • rivers.bmp color table not matching the information in terrain.txt
  • trees.bmp color table not matching the information in terrain.txt
  • Map dimensions must be a factor of 128.
  • Any map image file exceeding 50MB.
  • Any province bigger than 1/8 (exact size not confirmed) of the total map size will cause a crash.
  • Minimum province count is ? (todo).

Known Issues:

  • If world_normal.bmp is not exactly half the aspect of the map resolution, then a neon glow effect will occur.
  • If colormap_autumn.bmp or any of the colormaps are not exactly half the aspect of the map resolution, then a neon glow effect will occur.
  • Z collisions ingame due to heightmap error. Unknown cause at the moment.
  • Paint.NET will alter the color index when editing the terrain.bmp/rivers.bmp/trees.bmp. GIMP also does this by default, although there is an option to retain the color table.
  • If you resize the provinces.bmp, make sure you use Nearest Neighbour. Only Nearest Neighbour will preserve hard edges, everything else will alias, essentially corrupting the file. This also applies to terrain.bmp, rivers.bmp and trees.bmp.
  • If the heightmap.bmp does not have a continuous gradient in most places, then the map will glitch out. Basically, don’t go from 90;90;90 to 110;110;110, make sure the steps are 1 to 2 increases.

Mapping Tips

  • Make sure Anti-Alias is turned off when you edit the map files. The only time it should be used is when editing the color maps, which are essentially normal images.
  • When using a Magic Wand tool, make sure the Tolerance is set to 0. This means the tool will only select the exact color, which is quite useful.
  • Use the built-in Nudge tool to set the various positions of models. To use it, add -nudge to the launch options for Europa Universalis 4, and in-game click on the Nudge button to enter the tool.
  • trees.bmp dimensions are x / 7. i.e. 2048 / 7 = 293 (rounded up)

Debugging Tips

  • No error found in the .log file concerning the map will cause a Crash to Desktop. They are mainly either missing provinces or missing position definitions.

EU4 Swatch Map Generator

This python program allows you to generate a province map with 4096 provinces on, with a matching definition.csv. This can be used as a base of a total conversion mod, or simply as a easy way to draw provinces, as you no longer have to keep referencing the definition.csv for colours, since you can eye-drop from the generated image.

Download