Way to assign trees to forces other than neutral

Things that we aren't going to implement
jeff.s
Inserter
Inserter
Posts: 22
Joined: Thu Jan 10, 2019 10:49 pm
Contact:

Way to assign trees to forces other than neutral

Post 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.
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5290
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: Way to assign trees to forces other than neutral

Post 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
Post Reply

Return to “Won't implement”