Map Modding Quick Reference
此页面将作为地图 Mod 快速参考指南,帮助 Mod 作者快速找到适合他们选择的图像编辑器的图像导出设置。它还将包含一些方便的指南和注释,用于常见的地图编辑任务。
有关不同地图文件(图像和文本)的完整参考,请访问地图 modding。
地图导出设置 #
这是在 Europa Universalis IV 中使用地图图像文件时所需地图导出设置的参考指南。
Gimp 导出设置
Map Image |
Dimensions |
Image Mode |
Image Precision |
Export Settings |
Notes |
|---|---|---|---|---|---|
|
Same dimensions as defined in |
灰度模式 |
8 bit integer |
默认BMP格式导出,不做任何设置。 |
|
|
Half the dimensions defined in |
RGB模式 |
8 bit integer |
务必在高级选项中选择 "24 bits R8 G8 B8"导出 |
Guide on how to generate |
|
Same dimensions as defined in |
RGB模式 |
8 bit integer |
务必在高级选项中选择 "24 bits R8 G8 B8"导出 |
|
|
Same dimensions as defined in |
索引模式 |
8 bit integer |
默认BMP格式导出,不做任何设置。 |
|
|
⅛ the dimensions defined in |
索引模式 |
8 bit integer |
默认BMP格式导出,不做任何设置。 |
The scaling can be whatever you like, but a smaller image creates larger clumps of trees, and a larger image will create smaller clumps of trees. Vanilla uses a factor of ⅛. |
|
是 |
RGB模式 |
8 bit integer |
Compression: None Format: RGB8 |
Older versions of GIMP did not support DDS images. If you cannot open or export the DDS file format, first try updating GIMP to the latest version. |
Photoshop 导出设置
Map Image |
Dimensions |
Image Mode |
Image Precision |
Export Settings |
Notes |
|---|---|---|---|---|---|
|
Same dimensions as defined in |
Grayscale |
8 bit integer |
||
|
Half the dimensions defined in |
RGB |
8 bit integer |
||
|
Same dimensions as defined in |
RGB |
8 bit integer |
||
|
Same dimensions as defined in |
Indexed |
8 bit integer |
||
|
⅛ the dimensions defined in |
Indexed |
8 bit integer |
The scaling can be whatever you like, but a smaller image creates larger clumps of trees, and a larger image will create smaller clumps of trees. Vanilla uses a factor of ⅛. |
|
colormap_autumn.dds colormap_spring.dds colormap_summer.dds colormap_water.dds colormap_winter.dds |
Half the dimensions defined in |
RGB |
8 bit integer |
Paint.NET 导出设置
Map Image |
Dimensions |
Export Settings |
Notes |
|---|---|---|---|
|
This file cannot be exported by Paint.NET due to its lack of grayscale BMP support. |
You may edit this file in Paint.NET and copy it to a program such as Gimp for exporting and saving. |
|
|
Half the dimensions defined in |
Dithering: 0 |
|
|
Same dimensions as defined in |
Ensure that Bit Depth is set to "24-bit" when exporting. |
|
terrain.bmp rivers.bmp trees.bmp |
These files cannot be exported by Paint.NET due to its lack of indexed BMP support. |
You may edit these files in Paint.NET and copy it to a program such as Gimp for exporting and saving. |
|
colormap_autumn.dds colormap_spring.dds colormap_summer.dds colormap_water.dds colormap_winter.dds |
Half the dimensions defined in |
B8G8R8 (Linear, R8G8B8) |
法线贴图生成指南 #
本节将介绍如何从 heightmap.bmp 文件生成 world_normal.bmp 文件。 #
Gimp 法线贴图生成
这需要 GIMP 2.10 或更高版本
- Start by opening your
heightmap.bmpfile in Gimp - Change the image mode from "Grayscale" to "RGB"
- In the top bar, click "Image" -> "Mode" -> "RGB"
- Apply the "Normal Map" filter
- In the top bar, click "Filter" -> "Generic" -> "Normal Map"
- Check the "Flip Y" checkbox
- Adjust "Scale" as desired
- Click "OK" to apply the filter
- Scale the image by half
- In the top bar, click "Image" -> "Scale Image..."
- Set both the "Width" and "Height" values to half of the defined
width and height values for your map
- Having the proportions linked (connected chain symbol) means you only need to alter one of the values, not both
- To quickly scale your dimensions in half, simply add
/2to the end of one of your dimension values and press ENTER
- Set "Interpolation" to "Cubic"
- Press "Scale" to perform the scaling operation
- Export the image as
world_normal.bmp- In the top bar, click "Image" -> "Export As..."
- Change the name from
heightmap.bmptoworld_normal.bmp. This step is important! If you forget, you may end up overwriting yourheightmap.bmpfile! - Press "Export" to begin the export
- Check the "Advanced Options" -> "24 bits R8 G8 B8" option
- Press "Export" to export the image
And you're done!
Miscellaneous #
Notes on working with indexed images
Some notes on working with Indexed BMP images. These images are
rivers.bmp, terrain.bmp, and
trees.bmp. provinces.bmp is technically not an
indexed image, but these same principles can be applied to it as
well.
- It's rarely a good idea to create your own indexed images from scratch. Even if you are creating map files for a brand new map, you should create these files by copying from vanilla, then resizing and drawing your map as desired. The reason is that by copying, your image will contain a ready-made colour map built in and ready to go. If you don't do this, you would have to go through the tedious process of manually setting up the colour map of the image.
- Avoid tools and features that introduce "softness" into the image,
since these can introduce extra, undesired colours when each pixels
colour has a specific meaning.
- When scaling any portion of an indexed BMP image (or the whole image), you must not use any interpolation in order to avoid introducing interpolated colours.
- It's important to only use hard-edged tools while editing indexed BMP images (e.g., pencil, bucket fill, line tool). Soft tools like the Paintbrush or the Airbrush can also introduce interpolated colours.
- You must also only use hard selection, rather than "feathered" or "softened" selections as these too can introduce interpolated colours into the image.
