Prototype flag: nonrotatable
Posted: Fri Feb 16, 2018 11:02 pm
Ok. This is a bit of an odd one, and i'm not sure if this would rather be considered a bug. Here's the situation:
I created a new type = 'electric-energy-interface' prototype, with picture, i.e. with a single picture. Just like the built-in EEI. As it just has one picture this means that it is not visually rotatable. But in the game state it still rotates. The main problem i have with this is that when the entity is blueprinted and the blueprint is rotated, then all contained entities are also rotated. This leads to the situation where the blueprint can't be placed over existing entities because the ones in the blueprint have a different internal rotation even though they are visually the same. I tried setting rotatable=false in on_built_entity but blueprints don't inherit that property.
So it would be nice if something like the following was implemented:
a) Blueprints remember rotatable=false when being created.
b) or add a "nonrotatable" flag that makes any prototype nonrotatable even in blueprints.
c) or someone points me to how to do this right in the first place.
Here's a blueprint string to demonstrate. Just place it down, rotate, and try to place it onto itself.
I created a new type = 'electric-energy-interface' prototype, with picture, i.e. with a single picture. Just like the built-in EEI. As it just has one picture this means that it is not visually rotatable. But in the game state it still rotates. The main problem i have with this is that when the entity is blueprinted and the blueprint is rotated, then all contained entities are also rotated. This leads to the situation where the blueprint can't be placed over existing entities because the ones in the blueprint have a different internal rotation even though they are visually the same. I tried setting rotatable=false in on_built_entity but blueprints don't inherit that property.
So it would be nice if something like the following was implemented:
a) Blueprints remember rotatable=false when being created.
b) or add a "nonrotatable" flag that makes any prototype nonrotatable even in blueprints.
c) or someone points me to how to do this right in the first place.
Here's a blueprint string to demonstrate. Just place it down, rotate, and try to place it onto itself.
BP