Cities: Skylines

Cities: Skylines

271 ratings
Terrain Generator
   
Award
Favorite
Favorited
Unfavorite
Mod
File Size
Posted
Updated
32.768 KB
1 Jun, 2015 @ 10:42am
13 Dec, 2016 @ 6:29am
6 Change Notes ( view )

Subscribe to download
Terrain Generator

Description
Terrain Generator

Quickly generate great looking terrain to be used as a base for creating your own maps!

This mod creates random fractal terrains using the diamond square algorithm.

This mod will work with new maps only! If you already have placed watersources, roads, ship paths, etc those might get lost when creating a new terrain, or will go all goofy depending on your map. I.e. watersources can get underground where you won't be able to move/delete them.

This mod adds a new 'pyramid' button in the bottom button bar in the Map Editor.

Demos
Some example maps created using this mod can be downloaded here:
Demo 1
Demo 2
Demo 3

Init Tab
On the init tab you can configure the random number generator. Note that the generated landscapes are seamlessly generated. Normally you can leave these setting to default.

To create a mountain in the center, put all settings to "Sea" and put only the Center setting to "Mntn". To create a lake surrounded by mountains, put all settings to "Mntn" and only the Center setting to "Sea".

All values are pretty much randomized heavily anyway so don't expect pretty volcano's out of the box.

If you check "Use for resources too" you can control the natural resource generation with these initialization settings. But instead of height, mountain stands for oil and sea stands for fertility. If you put everything at "Sea" and Center at "Mntn" you create oil in the center of the map.

Generating Terrain

There are a few parameters to play with.

* Smoothness defines the global 'rockyness' of the terrain. 10 is real smooth, below 5 is probably useless.

* Scale defines the height of the terrain. A scale of 0 will generate a flat terrain.

* Offset will shift the centerpoint of the terrain. With the scale at 1.0 some clipping might occur which you can adjust using this offset.

* Blur; 0 means no blurring, 2 generates real soft terrains.

After creating a new terrain you must modify your water level, click 'Reset Water To Sea Level' a couple of times and put the simulation speed to max. It can take a while for the water to settle. Leave it running for a few minutes atleast.

Generating Resources

Resources are created using the same algorithm as the terrain itself. The order is fertility, forest, ore, forest and oil. So forests are placed twice, between fertility/ore and between oil/ore.

Forest Level specifies the thickness of the forest. Put this value near 0 you create thin lines around your other resource areas. Put this value closer to 1 and you create big and large forests.

Ore level works the same as forest level. Setting both forest and ore levels to 1 will still generate a tiny bit of oil and fertile land.

Smoothness and scale work the same as for terrain generation. A scale towards 0 and smoothness towards 1 can generate real large smooth areas with interesting patterns.

Note that 'Delete trees before generating' can be a bit buggy currently. The new resources are generated before all trees are gone. To circumvent this, and for best results, this please delete all trees (from the tree tab) manually before generating new resources.

Generating Trees

If follow resources is on, the forest resources previously created are used to specify where trees will be placed.

If follow resources is off a random pattern is used.

Note: If you delete all trees your forest areas will also be gone!

Also note that tree generation can plant trees underwater currently. And you might want to tidy up your shore lines a bit.

Just play around and have fun !

Info

Thanks to other modders for their work on UI code. Kudos to Cities-Skylines-Mapper[github.com] Crossings[github.com] and Skylines-FPSCamera[github.com].

This mod was basically inspired by Charles Randall[www.bluh.org] and another excellent explanation is from Hunter Loftis[www.playfuljs.com]

Learn more about the diamond square algorithm on Wikipedia[en.wikipedia.org] and on Gameprogrammer[www.gameprogrammer.com].

If you find bugs or have feedback let me know!

This mod is also available on github[github.com].

Changelog

December 13th 2016
* Fix some crashes loading/unloading the mod.

June 27th 2015:
* Fix a case where the icon was not showing in the tabbar after selecting a new map with a different biome.

June 14th 2015:
* Add configurable ore level.
* Add random number initialization config.

June 12th 2015:
* Added natural resources and tree generation.
* New icon, draggable window and loads of other UI improvements.

June 1st 2015:
* First public release.
44 Comments
BerglinJ2028 28 Mar, 2023 @ 2:48pm 
Is this mod still working?
Larsen 12 Mar, 2023 @ 9:21am 
please update so this works :( best mod ever...
Ricebug 12 Aug, 2022 @ 10:58am 
The icon is not showing up in the editor.
Crashy 8 Jun, 2021 @ 1:53am 
Oh, uh. Is there also a way to have the resources generate on land, not under water?
Crashy 8 Jun, 2021 @ 1:49am 
I also found that if you use the Terrain Heights in the Info Views, you can get a look at the land vs water levels.
Crashy 8 Jun, 2021 @ 1:43am 
I'm trying not to be dumb, but what do you mean center point of the terrain?
icecoole 28 May, 2021 @ 4:00pm 
Mod seems to work well in the editor. I exit game each time after a save if I want to test map or leave the editor to do something else. Exiting game seems to prevent a lot of crashes and problems. It is a pain but it is worth while. Excited to use this mod. Will comment further after further use. I have the Vanilla version of the game with minimal mods.
Canadian 23 Feb, 2021 @ 2:51pm 
i made a map using this, i saved it, i tried to make a save using it, didnt work
then i tried loading the map in the editor again, and all that happened was i saw a flat landscape with a big pillar in the middle. and all that was on screen was a error message.
SleepyDragon 13 Jan, 2021 @ 7:34pm 
So I was working on a map and I can no longer find the icon for this. It shows up if I start a new map, but not the map that I originally had it on. Any idea what might cause that?
me22ca 22 Nov, 2020 @ 5:37pm 
Thanks for including the references! I'm off to go read about the algorithm :)