Treeees v4.0.0 with Alien Biomes, 230x speedup
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.
- 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.
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.
The mod ‹Treeees› was made by dodo.the.last and published under The Unlicense.
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.