Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be πŸ“–

Province Map Builder

An asset by OskarUnn
The page banner background of a mountain and forest
Province Map Builder hero image

Quick Information

0 ratings
Province Map Builder icon image
OskarUnn
Province Map Builder

Plugin for building province maps for grand strategy games. Define a map shape from an image, divide it into region layers, define metadata for each region, and render an interactive map at runtime.

Supported Engine Version
4.6
Version String
0.3.1
License Version
MIT
Support Level
community
Modified Date
23 days ago
Git URL
Issue URL

Province Map Builder

A Godot 4.6 editor plugin for building province maps for grand strategy games. Define a map shape from an image, divide it into region layers, define metadata for each region, and render an interactive map at runtime.

Features

  • Map outline import β€” select an image in the Layers tab to extract the landmass outline as an editable polygon
  • Divide-down layer hierarchy β€” define as many layers as you need (e.g. Continents β†’ Countries β†’ Provinces), each layer subdivides the one above it
  • Voronoi auto-subdivision β€” generate child regions automatically using Voronoi cells, with Lloyd relaxation for more natural-looking results
  • Typed region data β€” write a GDScript class to define per-region properties (strings, numbers, booleans, colors); the editor generates a typed form for each region
  • Paint & inspect modes β€” click regions on the map to paint property values or inspect and edit all fields at once
  • Runtime node (ProvinceMap2D) β€” add to any scene to render the map, receive hover/click signals, query and mutate region data, and run pathfinding between regions

Requirements

  • Godot 4.6

Installation

Search for Province Map Builder in the Godot Asset Library, or open the plugin page directly: https://godotengine.org/asset-library/asset/4973

Then enable the plugin in the engine: Project β†’ Project Settings β†’ Plugins β†’ enable Province Map Builder

Manual

  1. Download the latest release zip from the releases page
  2. Copy the addons/province_map_builder/ folder into your project's addons/ directory

Then enable the plugin in the engine: Project β†’ Project Settings β†’ Plugins β†’ enable Province Map Builder

Quick Start

  1. Add a ProvinceMap2D node to your scene and create a new ProvinceMap resource on it in the Inspector β€” the Province Map dock opens at the bottom of the editor
  2. In the Layers tab, select an image to define the map outline (opaque pixels = landmass, transparent = sea); the outline is extracted as an editable polygon
  3. Drag vertices to reshape the outline, click an edge to insert a new vertex, or right-click a vertex to delete it
  4. Add child layers and click Subdivide to split them into Voronoi regions; adjust point count, relaxation, and seed until the result looks right
  5. In the Metadata tab, assign a custom schema script to the layer β€” it defines the typed properties each region holds (e.g. terrain, owner) and the rules for how those properties are rendered as colors; then use Paint mode to fill in values or Inspect mode to edit a region's full data
  6. Configure the ProvinceMap2D node in the Inspector: select which layer and render mode to display, and set border style and color
  7. At runtime, connect to ProvinceMap2D signals to detect which region was hovered or clicked, call find_path to run pathfinding between regions, or use the mutation API to update region data and trigger a redraw

See the full documentation for a detailed walkthrough and runtime API reference.

License

MIT β€” see LICENSE

Plugin for building province maps for grand strategy games. Define a map shape from an image, divide it into region layers, define metadata for each region, and render an interactive map at runtime.

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Province Map Builder icon image
OskarUnn
Province Map Builder

Plugin for building province maps for grand strategy games. Define a map shape from an image, divide it into region layers, define metadata for each region, and render an interactive map at runtime.

Supported Engine Version
4.6
Version String
0.3.1
License Version
MIT
Support Level
community
Modified Date
23 days ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers