Treeees


Let the trees on your map spread over time similar to real vegetation

Content
3 years ago
0.17 - 1.1
12.1K
Environment
Owner:
dodo.the.last
Source:
N/A
Homepage:
N/A
License:
The Unlicense (Public Domain)
Created:
4 years ago
Latest Version:
4.5.1 (3 years ago)
Factorio version:
0.17 - 1.1
Downloaded by:
12.1K users


Treeees v4.0.0 with Alien Biomes, 230x speedup

Treeees v1.x

Algorithm


We find pairs of trees within the love radius and add them to a consideration list. With increasing pollution of each tree the love radius is reduced proportionally, so the older trees have less chances to propagate. Accumulated pollution damage is considered within this age calculation, too. The trees will become grey and die faster.
From this consideration list we randomly select trees to be the origin (parents) for the new tree. These selected trees emit one single seed which falls within a randomly selected area around the coordinates of the parent trees. During this stage we add wind speed and direction vectors as bias for the target coordinates calculation.
The new tree type is selected randomly from the origin consideration list at this iteration. We then check this type of tree against peak based configuration of the map for temperature, moisture, elevation, distance and tile restrictions as factors for placement on the chunk with selected coordinates. Further we implement perlin noise generator for influence calculation for placement of new trees on the map. The color of the tree is chosen within boundaries defined by the color variance parameter.
If all of the environmental factors are within boundaries for the selected tree type then this tree is placed on the map. This way we use the world generator of factorio with all user preferences for new tree placement.

Map Settings


  • love radius: maximal distance up to which the trees can be considered as parents (as tiles)
  • spawn rate: delay between consecutive algorithm runs (as ticks)
  • color variance: tree color variance from the parent (factor between 0 and 1)

We place one single tree on each surface per algorithm run. Since the trees are placed only on the discovered map area (i.e. active chunks) we recommend to set the spawn rate high for early stages of the game. This way we avoid cluttering of the base.

When using this mod we recommend to have game settings set to produce preferably sparse vegetation and let it develop using our mod during the gameplay.

Documentation


Compatibility


The tree generation is compatible with the mod Alien Biomes and possibly others. We develop and test under Space Exploration. Please report on the mod page discussion if any incompatibilities are discovered.
Works with multiplayer.

License


The mod ‹Treeees› was made by dodo.the.last and published under The Unlicense.

Notes


The information on this mod page represents the state of the current release and might be updated without prior notification or public announcement. Please refer to the «Documentation» section of this page for details.