This tool generates playable maps for Dominions 5.

I started this project because I wanted to make a robust map generator for Dominions 5 that allowed the user to manually tweak the results. I have written about this project on my blog if you want to learn more about it. If you're interested in viewing the source code or reporting a bug, check out the github page.





FEATURES

Manual editing tools that allow the user to modify provinces and connections.

Support for 2-22 player layouts (as well as 30 player layouts!)

Support for generic starts.

Support for disciples mode.

Support for maps featuring nations from all ages.

World generation algorithm that prioritizes fairly distributing valuable province types and reduces clustering.

Advanced settings panel for users that want more control over world generation.

Map layouts are stored in XML files and users can create their own custom layouts.

Nation data is stored in XML files so users can tweak individual nation settings and create entries for custom nations.

Option to cluster water nations together in one large body of water.

Map output generates standard map files as well as a PNG preview image with all thrones and player starts labeled.

Unique sprites that denote certain province modifiers. For example, wastelands with the 'warmer province' modifier will have cacti.

Generated maps wrap seamlessly along the X and Y axis.





HOW TO USE

Run the program. You'll see a list of players on the left. Choose a player count and select which nations will be used. Click the generate button. Once the map is generated, you can move the camera around by clicking and dragging. Right click on a province node or connection node to open the editor panel for that node. Once you are happy with the map, click the export button. Maps are exported to the data folder.





CHANGELOG

1.4.6 -- Sept 4, 2020

Added support for 30 player maps (credit to GRandpa for this addition).

Adjusted min and max zoom levels for the camera controls.

Mac build is no longer missing nation and layout files.

1.4.5 -- July 3, 2020



Province border colors and dominion overlay colors can now be modified in the advanced settings panel.

Reorganized some UI elements.

Updated nation data.

1.4.4 -- June 2, 2020

Added support for new EA nation.

Fixed bug where some provinces would turn purple after manual editing.

1.4.3 -- Mar 20, 2020

All nation data is now stored in XML files in the data folder.

Adjusted water allowances for coastal nations.

Slightly reduced random lake placement frequency.

1.4.2 -- Mar 17, 2020

Fixed bug where map files had incorrect province borders in some cases.

Fixed bug where some winter sprites don't render.

Fixed bug where map preview image displayed some sprites incorrectly.

1.4.1 -- Mar 14, 2020

Added burst compilation in Windows builds, massively increasing map generation speed (credit to Klockan for this addition).

Several general optimizations which improve map generation speed (credit to Klockan for this addition).

Fixed memory leaks (credit to Klockan for this addition).

Added support for new LA nation.

Fixed bug where water nations had incorrect terrain data if nation themed starts option was disabled.

UI is now hidden during map generation.

1.4.0 -- Jan 25, 2020

Map generation now happens in real-time (credit to Klockan for this addition).

Improved general performance (credit to Klockan for this addition).

Camera controls are now smoother (credit to Klockan for this addition).

Reduced water province allowance for coastal nations.

Coastal nations are now ignored by the clustered underwater nation option.

Removed generic coastal start option since Dominions does not handle it properly.

Adjusted the starting terrain type for some nations.

1.3.9 -- Nov 30, 2019

Fixed bug where provinces would not regenerate correctly in some cases.

Updated nation data. All nations with terrain-specific recruitment now have the terrain they require in their capring.

1.3.8 -- Nov 27, 2019

Added support for 2 new nations.

Slightly increased road connection frequency.

Updated nation terrain data for several nations.

Added support for generic island nation starts.

Mountain terrain flag placement is now based on mountain and mountain pass connections. The old mountain terrain logic can be enabled via advanced settings if you preferred the old system.

1.3.7 -- Nov 11, 2019



Updated to Unity 2019.2.11.

Updated nation data.

Reduced sea province count for underwater nations and some coastal nations by 10%.

Underwater provinces are no longer generated with the farmland flag.

Kelp forest frequency has been tweaked down slightly.

Terrain type frequencies that are nonzero but less than 1 are now rounded up to 1. This means you'll see a bit more terrain variety on smaller maps.

1.3.6 -- Sept 27, 2019

Adjusted incorrect player spawn on the default 11 player map layout.

Added compact layouts for 10, 11, 13 and 14 player maps (thanks to Lucid and Whatts for your help).

1.3.5 -- Aug 17, 2019

Reduced sea province count for underwater nations by 10%.

1.3.4 -- May 27, 2019

Lake generation now avoids creating lakes connected to large bodies of water.

Updated nation data.

1.3.3 -- April 10, 2019

Fixed UI display issue on smaller resolutions.

Updated default world generation parameters.

1.3.2 -- April 5, 2019

Added layouts for 21 and 22 player maps.

Updated 13 and 14 player layouts.

Updated nation data.

Swamps and wastelands are no longer randomly placed in cap rings.

Updated cave and mountain sprites.

1.3.1 -- April 1, 2019

Added option to change province border opacity.

Fixed issue where roads would sometimes be invisible.

Updated river shaders.

Updated farm province shader.

1.3.0 -- Mar 31, 2019

Massively improved framerate and general performance.

Improved sprite placement for mountain connections and large provinces.

Updated house and coral reef sprites.

Updated nation data.

Updated default world generation parameters.

World generation algorithm now produces less mountain connection clusters.

1.2.4 -- Mar 29, 2019



Map layouts are now stored in XML files and users can add their own custom layouts.

Added a new 4 player map layout.

1.2.3 -- Mar 27, 2019

Optimized province polygons to have less triangles.

Optimized sprite rendering and improved framerate.

Updated plains and wasteland province shaders.

Updated nation data.

Updated default world generation parameters.

1.2.2 -- Mar 22, 2019



Added anti-clustering logic for province size modifiers.

Updated default world generation parameters.

Added missing labels to advanced settings menu.

Fixed issue where disciples dropdown menus were incorrect size.

1.2.1 -- Mar 20, 2019



Updated disciples spawn placement algorithm.

Added support for generic starts.

Updated user interface.

Updated sprites for all province types.

Updated mountain connection sprites.

Updated default world generation parameters.

Anti-clustering algorithm is now applied to all non-plains province types as long as their maximum distribution percentage is less than 30%.

1.2.0 -- Mar 17, 2019

Overhauled world generation logic and exposed world generation parameters in the advanced settings menu.

Updated default world generation parameters. Mountains, highlands, caves, wastelands and swamps are slightly less common now.

Updated kelp sprites.

Updated mountain province sprites.

Updated mountain pass sprites.

Updated bridge sprites.

Improved mountain and river placement logic.

Improved sea generation logic.

Improved mountain and road shaders.

Fixed bug with river shaders not displaying properly in winter.

Added dirt sprites for roads.

Updated nation data.

Improved road and river polygon generation algorithm.

Fixed rare bug where certain province polygons would fail to render.

Fixed bug that occurs with world generation when national starts option is disabled.

Added more map stats to the description field of outputted map files.

1.1.4 -- Mar 11, 2019



Added shorelines to water provinces.

Added small shorelines to rivers.

Updated all province shaders and overhauled water province shaders.

Added new bridge sprites.

Updated several mountain and cave sprites.

1.1.3 -- Feb 25, 2019

Changing a land province to a sea province now reverts all of its connections to normal.

Fixed bug with connection generation that would cause map generation to fail.

Added more coral reef sprites.

Added quit button.

Improved dropdown menus.

1.1.2 -- Feb 23, 2019

Fixed issue where clustered water starts option wasn't functioning as intended.

Fixed river connection generation bug that caused map generation to fail.

Fixed case where connection sprites would sometimes be placed incorrectly.

Tweaked world generation to produce fewer clusters of high and low value terrains such as wastelands, swamps and farms.

Updated sprites for river and mountain connections.

Updated sprites for cave and mountain provinces.

1.1.1 -- Feb 22, 2019

Revamped river and mountain connection placement logic to be more consistent and slightly reduced the density of these connections.

Fixed bug where rivers would sometimes be placed incorrectly.

Shallow rivers now have a bridge sprite.

Updated some nation data.

1.1.0 -- Feb 19, 2019

Updated world generation to have real seamless wrapping.

Map output now includes a PNG file with labeled starts, for convenience.

Updated several province shaders.

Added more sprites for several province types and improved winter sprites.

Added safety check to ensure every province has at least 2 standard connections.

Fixed map regeneration bug.

Fixed bug where underwater nations weren't properly positioned when 'clustered underwater nation starts' option was enabled.

Road connections no longer overlap sprites.

Mountain pass connections now have a different appearance.

Updated some nation data.

1.0.5 --- Feb 10, 2019

Updated world generation logic and fixed some rare bugs.

Added UI option for clustering all water nation starts.

Added accessibility check for throne provinces.

Updated cap ring generation logic. All nations are now guaranteed to have 5 provinces in their cap ring. Cap rings also will have more variance in their province types with this change.

Updated nation data.

Fixed texture bug on deep sea provinces.

Improved mountain pass placement.

1.0.4 --- Feb 8, 2019

Fixed bug caused by incorrect nation data for certain underwater nations.

Updated world generation logic for sea provinces.

Added more sea sprites.

1.0.3 --- Feb 7, 2019

Fixed bug caused by editing provinces containing player starts.

Fixed bug where deep sea provinces had incorrect terrain flags.

Updated kelp forest sprites.

Updated sea province shaders and river shaders.

1.0.2 --- Feb 6, 2019



Updated image output to use TGA format instead of PNG.

Updated map layouts for disciples mode.

1.0.1 --- Feb 5, 2019