OpenClonk Bugtracker - OpenClonk
View Issue Details
0001607OpenClonkObjectspublic2016-01-12 22:302017-10-24 21:47
Assigned ToClonkonaut 
PrioritynormalSeverityminorReproducibilityhave not tried
PlatformOSOS Version
Product Version 
Target Version9.0Fixed in Version 
Summary0001607: Plants can still grow too crowded
DescriptionDifferent trees and also cotton can still grow behind each other so that the landscape becomes pretty spammed with trees (which leads to lag).

We should think of a unified way to handle plant crowdedness. This also means that not every plant checks for its own ID but different plants also prevent each other from growing at a spot.

This needs some thinking about what is OK (small mushroom in front of trees) and what isn't. Maybe related to the size of the plant or something like that (i.e. allow 1 big, 1 medium and 2 small plants at each position).
Steps To ReproduceThis is a screenshot from Clonkomotive where the round started to lag because of the plants.

There are spots spammed with firs and spots spammed with mushrooms, deciduous trees and firs.
TagsNo tags attached.
Attached Filesjpg Screenshot001.jpg (2,970,333) 2017-01-04 13:23

2017-01-04 02:33   
Hi! There's been a check-in that references this bug. For more information you can visit the repository browser at this address:

Changeset e4cfd39 by Clonkonaut <>
Let plants grow less crowded, especially different kinds of plants (0001607).

This will need some testing whether all scenarios are still playable.

2017-01-04 13:28   
Maybe smaller plants could be a bit more abundant than larger ones?
2017-01-04 13:36   
(Last edited: 2017-01-04 13:38)
See newly attached screenshot (Screenshot001.jpg). I let Clonkomotive run on /fast for a minute or something.

I modified the standard plant reproduction. First of all, plants now take all other plants into account (not just plants with the same ID). I also changed most of the SeedOffset entries. As you can see, plants now rarely overlap.

I didn't change initial placement of plants which uses PlaceVegetation. So initially placed plants still overlap. I don't know if we want to prevent that (this will most likely either slow down initial placement of plants or result in potentially far less plants than the developer expected).

I also didn't implement any technique to differentiate between small and big plants. So, right now, a big population of flowers (or similar) can suppress tree reproduction. That is probably something we don't want, as you have mentioned (although players could employ slash-and-burn tactics ;) ).

Finally, I didn't touch the special plants which have their own reproduction logic (Big Mushrooms, Cotton, ...). So far, the big mushroom never stroke me as problematic. I have a look at cotton. It doesn't look too bad from the screenshot but maybe I didn't give it enough time to spam the landscape.

Wrote this before I saw Maikel's comment!

2017-10-24 21:47   
I guess this is fine now, haven't had any more complaints.

Issue History
2016-01-12 22:30ZapperNew Issue
2017-01-04 02:33occNote Added: 0005581
2017-01-04 13:23ClonkonautFile Added: Screenshot001.jpg
2017-01-04 13:28MaikelNote Added: 0005582
2017-01-04 13:36ClonkonautAssigned To => Clonkonaut
2017-01-04 13:36ClonkonautStatusnew => feedback
2017-01-04 13:36ClonkonautNote Added: 0005583
2017-01-04 13:38ClonkonautNote Edited: 0005583bug_revision_view_page.php?bugnote_id=5583#r1314
2017-08-20 11:42ZapperTarget Version8.0 => 9.0
2017-10-24 21:47ClonkonautStatusfeedback => resolved
2017-10-24 21:47ClonkonautResolutionopen => fixed
2017-10-24 21:47ClonkonautNote Added: 0005791