Enhanced Map Tool - Til-Weimann/tilw-terrain-tools GitHub Wiki

Introduction

This tool allows Arma Reforger modders to easily create much improved paper maps for their terrains.

[!NOTE] If this tool helped you, consider linking it in your mod description, so other modders can find out about it.

Example: Paper Map created using the Enhanced Map Tool

t

Usage

  1. Click the green "<> Code" button in the top right of this repository, and select "Download ZIP".
  2. From the ZIPs tilw-terrain-tools-main folder, extract the "EnhancedMapsTool" folder to a place of your liking.
  3. The tool needs the GDALDEM application to work, it is included in QGIS (bin subfolder). Download it if you don't have it yet.
  4. Open conf.yml from the EnhancedMapTool folder with a text editor, and paste the path to gdaldem.exe so the tool can find it.
  5. Download the Enhanced Maps mod from the Workshop.
  6. Add the mod as a project to the Workbench launcher. Right click your terrain mod, select "Open with Addons", choose Enhanced Maps and open.

[!TIP] Enhanced Maps does not need to be a dependency of your mod.

  1. Open your terrain world, switch to the Terrain Tools "Info & Diags" tab.
  2. Again open conf.yml, this time entering cell-size (planar resolution), height-range-min and height-range-max from the Info & Diags tab, if they differ.
  3. Switch back the the Terrain Tools main tab, and click "Export Heightmap" after selecting "Modified" instead of "Base" on the right of the button. Save it specifically as "hm.png" in the data subfolder of the EnhancedMapTool folder.
  4. Go into the data subfolder using Windows Explorer, click into the right side of the top file path bar and copy the folder path.
  5. Switch back to the Workbench and find the Tree Export tool, it has a pine tree icon. Paste the copied data path into the tool options, and click Export in the bottom. This will export tree positions to the data folder.
  6. Run the requirements.bat file, it will make sure you have all necessary Python dependencies, wait until it's finished then close it. You of course need to install Python before if you don't have it yet.
  7. You should now be good to run the generate.py script from the EnhancedMapTool folder. It will create a RESULT.png file, which is the map texture - you can rename it to something else, like the name of your terrain.
  8. Import the PNG into the Workbench, the standard path is UI/Textures/Map/worlds/.
  9. Open the imported EDDS texture, go into the import settings on the right and change "Color Space" to "To SRGB", then hit "Reimport Resource (PC)" in the top.
  10. Back in your terrain world, find your MapEntity prefab and set "Satellite background texture" to the texture.

Q&A

I don't have QGIS and don't want to install it. Is there another way?

You do need the gdaldem.exe application, however you can also install gdal / gdaldem via the OSGeo4W installer (or from other distributors) if you don't want QGIS.

My trees were not plotted correctly, or the water level is too low or high.

Make sure your terrain is located at the 0 0 0 coordinate. If it's not, either fix that or use the terrain-coords option in the config. Specifically vegetation offset can also happen when cell-size was not set correctly.

Can I customize the map somehow?

Yes, the conf.yml file has extra parameters that allow you to make some adjustments.

Ingame, the map looks brighter / has less contrast than the generated image outside of the Workbench.

Most likely, you missed step 14 or did it incorrectly.

The python script doesn't run correctly, but automatically closes before I can see what's wrong.

In the folder, click the top bar like when copying the file path, type "cmd", press enter. Now enter "generate.py" to run the script. This way, the window will always stay open and allow you to read any errors.

The requirements.bat script displays this error: 'pip' is not regognized as an internal or external command

Make sure you to tick "Add Python to environment variables" when installing Python.

I need help with my general Python setup, I can't get it to work.

I'll gladly help with things related to the actual script, but I will not help you with installing Python, use your favorite search engine for this.

I have a question, how do I best contact you?

On Discord, my name is tilw. I am active on the ARMA discord.