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.
