Exactly as it sounds, various tree parameters:
* The damage state of a tree from pollution, so it can be healed (the map-settings imply this happens automatically, but I have never seen it actually happen, despite real-world days of zero pollution).
* Which "variant" of the entity it is (not all trees with the same entity name look the same, being rotated and colored differently)
Tree pollution-damage, color variant, and more
Re: Tree pollution-damage, color variant, and more
I added LuaEntity::tree_stage_index for the next version, the variant can already be read/set using https://lua-api.factorio.com/latest/Lua ... _variation.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Re: Tree pollution-damage, color variant, and more
That does not really address my needs; I need the ability to basically perfectly clone a tree.
![Image](https://i.imgur.com/cM2ZM3K.gif)
Re: Tree pollution-damage, color variant, and more
You can read and set the variant, color index and the "pollution damage" as you call it, what is missing to clone the tree?
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Re: Tree pollution-damage, color variant, and more
Your linked parameters make no mention of pollution damage.Bilka wrote: Fri Jun 07, 2019 6:47 am You can read and set the variant, color index and the "pollution damage" as you call it, what is missing to clone the tree?
![Image](https://i.imgur.com/cM2ZM3K.gif)
Re: Tree pollution-damage, color variant, and more
That's the same thing
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Re: Tree pollution-damage, color variant, and more
...How would I be supposed to know this? I really recommend changing the name to something descriptive of its actual function.
![Image](https://i.imgur.com/cM2ZM3K.gif)
Re: Tree pollution-damage, color variant, and more
It's actual function is reading the tree stage. Trees can/could spawn with different stages depending on the tree richness setting, so naming it something related to pollution would be wrong. If you browse the wiki, you will find that we also call it stage on there, so it should be obvious enough for most users.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Re: Tree pollution-damage, color variant, and more
In that case there should be some mention on the documentation that this is also pollution damage, because Ctrl-F for "pollution" coming up with zero results makes the user not dig deeper.Bilka wrote: Fri Jun 07, 2019 2:59 pm It's actual function is reading the tree stage. Trees can/could spawn with different stages depending on the tree richness setting, so naming it something related to pollution would be wrong. If you browse the wiki, you will find that we also call it stage on there, so it should be obvious enough for most users.
![Image](https://i.imgur.com/cM2ZM3K.gif)