Mapgen V2.2 < Windows >
MapGen v2.2 is a widely used, though aging, tool designed to help modders create custom world maps for the grand strategy game Hearts of Iron IV (HOI4)
Data Structures / Outputs
- Tile x, y, elevation, biome, temp, moisture, river_id?, river_size, vegetation_density, feature_list[]
- Layered outputs: elevation_map (float), moisture_map (float), temp_map (float), biome_map (enum), river_map (int), poi_list (objects)
- Vector layers: coast_polylines, river_polylines, biome_polygons
- Metadata: config, seed_hash, generation_time, version ("2.2")
Understanding Mapgen v2.2: The Next Frontier in Procedural World Building mapgen v2.2
The guardian nodded in approval. "Then take a vial of the water," it said. "But remember, the true map is not one of lines and places, but of the heart and its journeys." MapGen v2
: The tool will generate several critical files for your mod: provinces.bmp : The actual province map used by the game. heightmap.bmp : Controls the 3D elevation of the terrain. terrain.bmp : The visual texture of the land. definition.csv : The text file linking province IDs to their colors. Tile x, y, elevation, biome, temp, moisture, river_id
Biome Rules (example thresholds)
- Ocean: elevation <= sea_level
- Beach: elevation in (sea_level, sea_level+0.02)
- Snow: elevation > 0.9 OR temp < -0.5
- Tundra: temp < -0.2 && moisture < 0.3
- Taiga: temp between -0.2 and 0.1 && moisture > 0.3
- TemperateForest: temp 0.1–0.5 && moisture > 0.4
- Grassland: temp 0.1–0.6 && moisture 0.2–0.4
- Desert: moisture < 0.15 && temp > 0.3 (Customize via biome_rules object.)
- Output tile indices, color maps, and splat maps for texturing.
- Produce vector outlines for coasts, rivers, and biome borders.
Conclusion
Mapgen v2.2 brings significant improvements and new features to the table, making it an attractive choice for developers looking to create rich, immersive environments. With its modular architecture, improved Perlin noise, and support for multiple biomes, Mapgen v2.2 is well-suited for a wide range of applications, from game development to scientific visualization.