[2.1.11] Wires between two walls are not preserved on undo

We are aware of them, but do not have solutions that don't cause other issues. They go here in order not to take space in the main bug thread list.
charredUtensil
Burner Inserter
Burner Inserter
Posts: 8
Joined: Sat Jun 10, 2017 6:38 am
Contact:

[2.1.11] Wires between two walls are not preserved on undo

Post by charredUtensil »

1. Build two separate gate segments with walls around them
2. Connect a green wire between the two gates
3. Use the deconstruction planner to mark both gates for removal
4. Undo

Expected: Walls and gates are unmarked for destruction and green wire is restored between gates
Actual: Walls and gates are unmarked, but the wire is gone

Other notes:
- This does not affect blueprints or copy + paste - the pasted segment appears correctly.
- If only one of the two gates is removed, the wire is reconnected properly.
- Some variations are inconsistent depending on whether the two walls are on the same gate segment and whether the editor is open or not.

Context: I discovered this bug because I'm designing a new standardized circuit control for my space fleet in 2.1. I'm (ab)using gates to connect a wire across walls on the front of my platforms with a constant combinator at the end, in order to kill thrusters in case of damage.
charredUtensil
Burner Inserter
Burner Inserter
Posts: 8
Joined: Sat Jun 10, 2017 6:38 am
Contact:

Re: [2.1.11] Wires between two walls are not preserved on undo

Post by charredUtensil »

I did some more tests of this and found that it does reproduce on 2.1.12, and that given a large set of wires connecting arbitrary walls together, it appears to be deterministic which connections fail to restore, but there's no clear pattern.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4728
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.1.11] Wires between two walls are not preserved on undo

Post by boskid »

This is not as simple as it sounds to be. Walls try to remove wires when they are no longer connected to a gate and gate can be removed for multiple reasons and they are not all related to player interactions. This is similar to 123031 and 118468 as in both cases there are some additional changes to the world happening that are triggered by player but not part of the player interaction itself and as such they cannot be recorded as part of the undo. For now i am going to move this to Minor issues.
Post Reply

Return to “Minor issues”