Page 1 of 1

Way to assign trees to forces other than neutral

Posted: Mon Aug 17, 2020 1:00 pm
by jeff.s
Currently, it seems that all entities with type "tree" are hard-locked to the "neutral" force (if placed with other forces in /editor it ends up being neutral anyways, and assigning a new value to LuaEntity.force does not work as it does for other types of entities).

Is it possible to have a property on the tree prototype that allows specifying a different force for that type of tree? I'd like to make a mod that gives some weight to the saying that "trees are the real enemy in Factorio"

If the strict neutrality of trees is a vital optimization in the game engine, I understand if it's not possible to do this.

Re: Way to assign trees to forces other than neutral

Posted: Mon Aug 17, 2020 2:28 pm
by Klonan
It is not possible, internally they have no force, which means they are neutral, same as resources and simple entities

This saves a lot of RAM and save game space