[Rseding91] [for 0.16] [0.15.28] blueprint construction of same entity fails
Posted: Fri Jul 14, 2017 8:11 am
Generally it is safe and works well to deconstruct a large area, and while this deconstruction is still going, put another blueprint over it to construct in its place. Some robots might have to wait for a while until they can build the new entity, but that's fine.
Things break when that new blueprint happens to build the same entity type in the same spot as is currently planned for deconstruction. In that case the entity ends up being deconstructed but is never rebuilt. This came up for me after having to move an already deployed large blueprint for straight train tracks over by a few tiles: To move all the ancillary stuff around the train tracks themselves (power, signals, some lights, etc.) I decided I'd just deconstruct the whole track and immediately after rebuild it, but moved slightly (along the train track). This meant most of the track track overlapped with where it was before (except at the ends), but all the stuff next to the train tracks moved a bit. This resulted in most of the train track being destructed, while the other entities around it didn't have this overlap and moved just fine.
It seems it would be better if (a) constructing the same entity type over an entity planned for deconstruction undoes the deconstruction-planning, though it would still need to adjust the configuration of the entity, if it is e.g. a combinator or something or (b) still deconstruct it, but then actually shortly after construct it again with the new config, like it would if it was a different entity type.
I tried to find an existing bug for this, as I assume I'm not the first one to find this issue, but I failed, so I'm filing it to be sure.
Thanks for an awesome game!
Things break when that new blueprint happens to build the same entity type in the same spot as is currently planned for deconstruction. In that case the entity ends up being deconstructed but is never rebuilt. This came up for me after having to move an already deployed large blueprint for straight train tracks over by a few tiles: To move all the ancillary stuff around the train tracks themselves (power, signals, some lights, etc.) I decided I'd just deconstruct the whole track and immediately after rebuild it, but moved slightly (along the train track). This meant most of the track track overlapped with where it was before (except at the ends), but all the stuff next to the train tracks moved a bit. This resulted in most of the train track being destructed, while the other entities around it didn't have this overlap and moved just fine.
It seems it would be better if (a) constructing the same entity type over an entity planned for deconstruction undoes the deconstruction-planning, though it would still need to adjust the configuration of the entity, if it is e.g. a combinator or something or (b) still deconstruct it, but then actually shortly after construct it again with the new config, like it would if it was a different entity type.
I tried to find an existing bug for this, as I assume I'm not the first one to find this issue, but I failed, so I'm filing it to be sure.
Thanks for an awesome game!