Mapgen V2.2 -

While MapGen always had a Unity asset, community demand pushed v2.2 to include native plugins for Godot 4 (GDScript-friendly API) and Unreal Engine 5.3 with Blueprint nodes. No more wrestling with DLL imports or JSON pipelines. Generate a map, get a DynamicMeshComponent in Unreal, or a TileMapLayer in Godot, in two clicks.

Perhaps the most impressive technical achievement. Traditional infinite generators suffer from "float precision drift" at large distances. IDA solves this by anchoring detail to a localized 64-bit spatial hash. Practically, this means you can zoom from a continental overview (scale 1:10,000,000) down to a single meter of dirt beneath a character’s feet—without repetition artifacts or cracks. The transition between LODs is now seamless.

One of the most requested features was the ability to generate maps with more than one climate type. MapGen v2.2 uses a bi-modal system, allowing users to define two dominant climate seeds (e.g., a cold tundra in the north and a scorched desert in the south) and a "transition zone" where they blend. This eliminates the "single-biome continent" look that plagued older generators.

Procedural generation is often caught between two extremes: mathematically impressive but ugly, or artistically controlled but slow. MapGen v2.2 bridges that gap with authority. The hybrid erosion system delivers landscapes that feel ancient and lived-in. The Infinite Detail Anchoring makes the promise of "truly infinite worlds" finally practical. And the new engine plugins lower the barrier to entry for non-programmers.

Whether you are prototyping your dream game, building a campaign setting for your players, or simply fascinated by the beauty of simulated nature, MapGen v2.2 is the most capable, well-documented, and inspiring terrain generator on the market today.

Rating: 9.5/10 – An essential upgrade. The future of worldbuilding is procedural, and it starts here.


Have you used MapGen v2.2 in a project? Share your generated worlds on the official community showcase. For tutorials, API docs, and download links, visit the official MapGen documentation portal.


By upgrading to Mapgen v2.2, developers can create more realistic, engaging, and immersive environments, pushing the boundaries of what's possible in procedural map generation.

MapGen v2.2 is a community-developed tool used to create custom world maps for Hearts of Iron IV (HOI4). It simplifies the modding process by allowing users to generate essential map files—such as province layouts, terrain, and heightmaps—from simple image inputs rather than drawing thousands of pixels manually. Core Requirements for Development

To successfully generate a map using version 2.2, your input files must meet specific technical criteria to avoid crashes or visual glitches:

Resolution: Files should ideally be 5632x2048 to fill the standard game map, or follow a consistent 2.75 aspect ratio.

Format: MapGen requires 24-bit BMP files for land and sea inputs.

Specific Hex Codes: The tool recognizes only three primary colors for the base land input: Land: #9644c0 Ocean: #051412 Lake: #00ff00. Key Features & Workflow

Direct Export: Version 2.2 introduced a "one-click" export feature that sends generated files directly into a blank mod template for immediate testing in-game.

Province Generation: The tool automatically creates a provinces.bmp and definition.csv. Users can adjust the "Province Size" slider within the GUI to control how many provinces are generated.

Terrain Mapping: By providing a terrain input image, MapGen assigns biomes (plains, mountains, forest) based on the colors in your image. Common Troubleshooting

Four-Corner Error: Avoid "cross" intersections where exactly four provinces meet at a single point, as this can cause visual bugs. Shift a single pixel to break the intersection.

Heightmap Multiples: Ensure your map dimensions are multiples of 64 (e.g., 5632 x 2048) to prevent "Height map height is not a multiple of 64" errors.

Launch Settings: Always run HOI4 with the -debug launch option enabled to see error logs and use the "Nudger" tool for fine-tuning after generation. How to Make a Hoi4 Custom Map Mod in 2024

In the context of Hearts of Iron IV (HOI4) modding, a "piece" for MapGen v2.2 typically refers to the blank mod template resource maps used as a starting point for map generation Essential "Pieces" for MapGen v2.2 Mod Template

: To see your map in-game, you often need a specific blank mod template, such as the one by BMP Source Files : The program requires specific image files (usually heightmaps . These must use exact RGB codes to function correctly: : 5, 20, 18. : 0, 255, 0. External Assets

: Users often integrate high-quality topography or satellite imagery from sources like NASA Visible Earth to generate realistic terrain pieces. Common Issues & Tips Anti-Aliasing : If you are editing your map "pieces" in tools like , you must turn off anti-aliasing

. This prevents the software from creating slight color variations that the game would incorrectly treat as new provinces. Size Constraints : Your heightmap "piece" must have a height that is a multiple of 64 (e.g., standard map size is 5632x2048). Template Resources : Community members often share "resource maps" (like the Russia Map Resource

The "story" of MapGen v2.2 is a classic tale of a community-made tool that became a legend for its ambition, quirks, and the creative chaos it enabled for Hearts of Iron IV (HOI4) modders. 🎨 The Tool That Built Worlds

Released around 2018 (during the Waking the Tiger era), MapGen v2.2 was designed to do the impossible: let anyone build a custom world for HOI4 without needing a degree in computer science.

The Promise: Users could "paint" a map using specific RGB colors to define land, sea, and biomes. mapgen v2.2

The Magic: With one click, it generated thousands of files—provinces, states, heightmaps, and rivers—that would normally take weeks to code by hand. 🛠️ "Enabling Shitty Map Designs Since 2018"

This became the unofficial motto of the tool. Because it was so easy to use, the community was suddenly flooded with:

Fantasy Overhauls: Entire continents based on Lord of the Rings or original D&D worlds.

Historical Snipers: Highly detailed maps of specific battles, like the Stalingrad scenario, built by combining MapGen with satellite imagery.

Pure Chaos: Randomly generated "blob" worlds where geography made zero tactical sense, leading to some of the most bizarre and entertaining HOI4 gameplay ever seen. ⚠️ The "MapGen Curse" (The Quirks)

Despite its power, using v2.2 was often an exercise in patience. Modders tell stories of the tool’s "personality":

The "Four Corners" Bug: If exactly four provinces met at a single pixel cross (+), the game engine would sometimes throw a fit, requiring users to manually move a single pixel to fix it.

State Explosion: If a user set the province size too small, MapGen would "vomit" over 9,000 tiny text files, instantly crashing the tool or the game.

Outdated but Essential: As HOI4 updated to newer versions (like 1.9 or 1.10+), MapGen v2.2 became technically obsolete. However, because it was so much better than nothing, the community wrote "survival guides" to keep it running on modern game versions. 🗺️ Why It Matters Today

MapGen v2.2 proved that there was a massive appetite for Total Conversion Mods. It paved the way for more modern tools and inspired countless modders to try their hand at world-building. Even today, if you see a HOI4 mod with a completely custom landmass, there’s a high chance its ancestors were born in a messy, 24-bit BMP file inside MapGen v2.2.

Are you looking to use MapGen for a specific mod idea, or are you trying to troubleshoot a "broken" map generation? I can help you with the technical steps if you tell me what you're building!

MapGen v2.2 is a popular, albeit aging, software tool specifically designed for creating custom world maps for Hearts of Iron IV (HOI4) mods. Developed by community member Jamestom999, it automates the tedious process of generating the numerous game files (provinces, terrain, heightmaps, and rivers) required for a functional custom map. Key Features and Functionality

MapGen v2.2 simplifies map creation through a graphical interface that allows you to define the physical characteristics of your world before exporting them into the game's engine.

Automated File Generation: It generates essential HOI4 files including provinces.bmp, definition.csv, heightmap.bmp, terrain.bmp, and rivers.bmp.

Custom Terrain and Biomes: Users can provide a base map where different colors correspond to specific biome or terrain types, such as urban areas, forests, or plains.

Configurable Geography: The tool offers control over the size and density of provinces and states, as well as the complexity of rivers and mountain heightmaps.

Direct Export: Version 2.2 introduced a feature to export maps directly into a blank mod template for HOI4. Technical Requirements

To function correctly, MapGen v2.2 requires input files that follow strict specifications: File Format: Maps must be saved as 24-bit BMP files.

Resolution: The standard resolution for a full map is 5632x2048, though smaller maps are possible if they maintain the 2.75 aspect ratio.

Color Codes: The tool uses specific hex codes for land (#9644c0), ocean (#051412), and lakes (#00ff00).

No Anti-Aliasing: It is critical that colors remain "flat" with no fading or shading between them, as anti-aliasing can cause the tool to interpret slight color variations as separate provinces. Usage Tips and Limitations

Stability: The tool is often described by the modding community as "unstable" and "outdated," sometimes requiring users to supplement it with other tools like Astro's Quick Custom Map Setup Tools to fix manpower or state issues.

Post-Processing: After generation, files like the color map often need to be converted to .DDS format using an external converter for the game to recognize them.

Province Limits: Creating too many small provinces can cause the game to crash during loading.

For more details on setting up a custom world, the Steam Community HOI4 Guide provides a comprehensive walkthrough on using MapGen v2.2 alongside other essential tools like Notepad++. While MapGen always had a Unity asset, community

Are you planning to build a specific mod or do you need help troubleshooting a map generation error?

MapGen v2.2: Enabling shitty map designs since 2018 : r/hoi4

Understanding Mapgen v2.2: The Next Frontier in Procedural World Building

In the world of game development and tabletop RPGs, the ability to generate expansive, believable landscapes on the fly is often the difference between an immersive experience and a repetitive one. Mapgen v2.2 has emerged as a significant milestone in this space, offering a sophisticated toolkit for creators who need high-quality procedural generation without the overhead of enterprise-level software.

Whether you are a solo indie dev or a Dungeon Master looking to spice up your campaign, here is everything you need to know about the capabilities, improvements, and applications of Mapgen v2.2. What is Mapgen v2.2?

Mapgen v2.2 is a procedural generation algorithm and toolset designed to create realistic 2D and 3D terrain maps. It utilizes a combination of Voronoi diagrams, Perlin noise, and simulated hydraulic erosion to move beyond "random blobs" of land. Instead, it creates geologically plausible continents, islands, and mountain ranges.

The "v2.2" update focuses heavily on optimization and biome diversity, ensuring that the maps generated aren't just aesthetically pleasing, but also functional for gameplay mechanics like pathfinding and resource distribution. Key Features of the v2.2 Update 1. Refined Tectonic Plate Simulation

Unlike earlier versions that simply placed mountains at random high-noise intervals, v2.2 introduces a refined tectonic simulation. By simulating the collision and pulling apart of "plates," the tool generates mountain ranges and oceanic trenches that look like they belong on a real planet. 2. Dynamic Climate and Biome Mapping

One of the standout features of v2.2 is its moisture and temperature gradient system. The tool calculates:

Rain Shadows: Mountains actually block moisture, creating lush forests on one side and arid deserts on the other.

Latitude Effects: Automatic temperature scaling from poles to the equator.

Biome Variety: Supports over 20 distinct biomes, including tundra, chaparral, steppe, and tropical rainforest. 3. Improved Hydraulic Erosion

Standard noise-based maps often look "bumpy" but lack character. Mapgen v2.2 uses a particle-based erosion system. It simulates millions of "raindrops" falling on the terrain, carving out river valleys and depositing sediment in floodplains. This results in realistic drainage basins and river networks that flow logically toward the sea. 4. Export Versatility

Recognizing that creators use various engines, v2.2 supports a wide array of export formats:

High-bit-depth Heightmaps (for Unity, Unreal Engine, and Godot). SVG and PNG (for print and 2D web applications).

JSON data (for developers who need to script specific gameplay triggers based on terrain type). Applications for Mapgen v2.2 For Game Developers

Building a massive open world by hand is a Herculean task. Mapgen v2.2 serves as a "base layer." Developers can generate a massive world, export the heightmap into their engine of choice, and then manually polish key locations. This saves hundreds of hours of initial world-sculpting. For Tabletop Worldbuilding

Dungeon Masters can use v2.2 to generate world maps that feel lived-in. The logical placement of rivers and fertile plains makes it easy to decide where ancient civilizations would have built their capital cities or where trade routes would naturally form. For Procedural Art

The aesthetic output of v2.2 is clean and professional. Many artists use the tool to generate "satellite-view" art for sci-fi settings or stylized parchment maps for fantasy novels. How to Get Started

Getting started with Mapgen v2.2 is generally straightforward, as many versions are available as web-based tools or open-source repositories on GitHub.

Seed Selection: Start with a random seed or input a specific string to generate a unique layout.

Adjust Parameters: Tweak the "ruggedness," "sea level," and "erosion cycles" sliders to find the right balance for your world.

Refine Biomes: Use the moisture and temperature offsets to turn your world into an ice planet, a desert wasteland, or a balanced Earth-like sphere.

Export: Save your map in the resolution and format that fits your project. Conclusion

Mapgen v2.2 represents a perfect balance between complexity and accessibility. It provides the mathematical "heavy lifting" required to simulate a world, leaving the creative storytelling to the user. As procedural generation continues to evolve, tools like Mapgen v2.2 remain essential for anyone looking to build worlds that feel vast, logical, and truly epic. Have you used MapGen v2

MapGen v2.2 is a community-developed tool designed for Hearts of Iron IV (HoI4) modders to automate the creation of custom game maps. Released around 2018, it quickly became a staple for creators who wanted to bypass the tedious process of manually drawing thousands of province pixels and writing the corresponding code. Key Features

Automated File Generation: Converts a simple 24-bit BMP image into the complex web of files HoI4 requires, including provinces.bmp, definition.csv, and height maps.

Province Control: Allows users to adjust the density and size of provinces, ranging from tiny strategic points to massive regions.

Terrain & Biome Mapping: Maps specific hex color codes in your source image to game biomes (e.g., urban, forest, or mountains).

Direct Export: Includes a "one-click" feature to export generated maps directly into a blank mod template for immediate testing. The "MapGen Experience"

While revolutionary for its time, using MapGen v2.2 is often described as an exercise in "organized chaos."

"Enabling Shitty Map Designs": The developer, Jamestom999, jokingly marketed the tool with this tagline, acknowledging how it lowered the barrier to entry for modding—for better or worse.

The Struggle with Stability: Because it was built for older versions of HoI4, users frequently encounter crashes or "scattershot countries" where provinces aren't correctly assigned.

Precision is Mandatory: It requires exact RGB values—such as #9644c0 for land and #00ff00 for lakes—and any "anti-aliasing" or color fading in your source image will break the tool. Current Status

MapGen v2.2 is a legacy external tool used by the Hearts of Iron IV (HoI4)

modding community to automate the creation of custom game maps. While powerful for generating basic province layouts and terrain files, it is no longer officially maintained and often requires manual fixes for modern versions of the game. Getting Started with MapGen v2.2

To use the tool effectively, you must provide several "input" image files (typically in

format) that the software uses to generate the final game files. Steam Community Land Input

: A black and white map where white represents land and black represents sea. Terrain Input

: A map defining where different biomes (forest, desert, plains) are located. Province Size Input

: A grayscale map where white areas generate large provinces and black areas generate small, dense ones. Boundary Input

: Defines the rough borders of the regions you want the tool to respect when generating provinces. Steam Community Core Workflow Preparation : Create your input maps in a graphics editor like Generation : Drag and drop these files into the MapGen GUI. Output Files

: 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.

: Use the built-in feature to export these directly into a blank mod template. Common Issues & Troubleshooting

Guide :: Создание собственной карты Hoi4 НЕАКТУАЛЬНО

Here’s a professional write-up for MapGen v2.2, suitable for release notes, a changelog, or a project summary.


For developers who care about the numbers, MapGen v2.2 brings a rewritten noise evaluation kernel. The system now uses a hybrid of Simplex (for primary landmass shapes) and Domain-warped Perlin (for micro-terrain). But the real magic lies in the historical simulation queue.

You can now layer generators non-destructively. For example:

Each pass can be toggled, blended, or reordered at runtime. This is a paradigm shift: MapGen v2.2 no longer generates a map; it generates a geological history.

One of MapGen’s strongest assets is its community. With v2.2, the official MapGen Hub (a Discord server with 15,000+ members) has launched a shared repository of biome presets and erosion macros. Want a Mars-like desert? A tropical archipelago chain like Indonesia? Users share .mgbiome files that you can drop directly into your project.

Additionally, version 2.2 introduces MapScript—a lightweight Lua-like DSL for procedural rule design. Example: if altitude < 0.2 and rainfall > 0.8 then spawn_mangroves(). This makes the tool accessible to designers without deep programming skills.