Hi,
Trains on curved trails, especially when next to other trains, get rebuilt incorrectly when one deconstructs them and then undo the deconstruction. This happens with standard vanilla Factorio. See following screenshots:
1. Initial setup
2. Deconstruct right side
3. After deconstruction. Now undo with Ctrl+Z
4. Final result of undo after bots finished the reconstruction
5. The right train is incomplete, and has to be reconstructed manually, there is no other solution,
i.e. The undo action has permanently broken the right train.
Factorio 1.1.39, build 58937, win64
[1.1.39] Trains are not rebuilt correctly after performing UNDO
-
- Inserter
- Posts: 24
- Joined: Sat Apr 11, 2020 10:51 am
- Contact:
[1.1.39] Trains are not rebuilt correctly after performing UNDO
Last edited by dabalciunas on Tue Sep 07, 2021 1:22 pm, edited 3 times in total.
-
- Inserter
- Posts: 24
- Joined: Sat Apr 11, 2020 10:51 am
- Contact:
Re: Trains are not rebuilt correctly after performing UNDO
The minimal setup for reproducing this bug can be found in this attached savegame.
- Attachments
-
- BugReport.zip
- (8.03 MiB) Downloaded 124 times
Re: [1.1.39] Trains are not rebuilt correctly after performing UNDO
Hm... this looks to be related to removing train with rails because rolling stocks when placed by the undo action will not stay over the ghost rails but will snap onto real rails that are 2 tiles to the left.
-
- Inserter
- Posts: 24
- Joined: Sat Apr 11, 2020 10:51 am
- Contact:
Re: [1.1.39] Trains are not rebuilt correctly after performing UNDO
In any way it causes this undesired behavior. Please tell me if I can help providing any further information, I'll be looking this thread actively. And many thanks for your support too.
Re: [1.1.39] Trains are not rebuilt correctly after performing UNDO
I am considering this issue to be minor. Core of the issue here is that rolling stock ghosts need to snap onto the rails and there is certain radius of how far they can snap around their original position. Since you removed rails and rolling stocks, when doing undo the rail ghosts appear where the train simply cannot snap onto however in small proximity there are other, real rails (non ghost ones) and the rolling stocks snap onto them. Trying to fix this could break rolling stock blueprint buildability because the rolling stocks would be required to use smaller snap distance value (smaller than 1).