Tree growth: Scaled trees.


Provides some scaled versions of normal trees.

4 years ago
0.15 - 0.17
7

b Error on startup

6 years ago
(updated 6 years ago)
util/tree.lua:34: attempt to perform arithmetic on field 'count' (a nil value)

The mod and it's dependents are sadly not usable due to this.

6 years ago

Sorry, the error isn't at line 43, but 34. I've corrected the original post.

tree.minable.count = round(tree.minable.count * areaScale)

This is the offending line. As a workaround I changed it to

tree.minable.count = round((tree.minable.count or 1) * areaScale)

but since I have no idea of what this line is supposed to do and how it interacts with anything else in the mod I have of course no idea whether this is an actual fix. At least the mod loads properly now.

6 years ago
(updated 6 years ago)

Thank you. Unfortunately I do not get notified for posts here so this got lost.
I will fix this soon, but it would be great to know which tree causes this. In particular it is not clear to me either whether there should be anything mined from that tree or not. I will do a fix that should prevent breaking anything. But if the behaviour for some trees feels wrong please tell me.

New response