[2.1.7] Upgrading a train that is parked on a crossing non-elevated rails causes rolling stock to disconnect

Bugs which we just recently fixed in our development version and will reach you in the next release.
vmainen
Burner Inserter
Burner Inserter
Posts: 10
Joined: Tue Apr 25, 2017 1:47 pm
Contact:

[2.1.7] Upgrading a train that is parked on a crossing non-elevated rails causes rolling stock to disconnect

Post by vmainen »

Minimal example blueprint:

Reproduce:

1. Place the blueprint (or replicate what you see in image).
2. Use upgrade planner to upgrade the whole train.
3. The train splits in three, only the first wagon is connected, the two latter cars are a single section each.
4. The front part of the train still leaves on schedule (not in this blueprint though, but my railnetwork is full of disconnected trains now).

Possibly related to: viewtopic.php?t=134143
Attachments
train-disconnect-example.png
train-disconnect-example.png (1.02 MiB) Viewed 298 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 16935
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.1.7] Upgrading a train that is parked on a crossing non-elevated rails causes rolling stock to disconnect

Post by Rseding91 »

This looks like a failure of the rolling stock joint system itself. The whole "on curves, the rolling stock render differently compared to their actual position". If you remove any of the middle cargo wagons and attempt to manually re-build them they will never re-connect the train properly. The upgrade logic just gets caught in the cross-fire of that issue.
If you want to get ahold of me I'm almost always on Discord.
vmainen
Burner Inserter
Burner Inserter
Posts: 10
Joined: Tue Apr 25, 2017 1:47 pm
Contact:

Re: [2.1.7] Upgrading a train that is parked on a crossing non-elevated rails causes rolling stock to disconnect

Post by vmainen »

Here's two other, not-so-convoluted examples from a real game.

In barely-on-curve.png the locomotive is barely on the curve, but the train that was in front of it has been disconnected and then it started driving. The train used to be 2-8-2 so 2 locomotives on each end.

stupidstacker.png does not display a problem right now, but it's another place where I saw this happening. The 1-4 trains had been turned to 1-2 trains because it cuts at the curve again. I call the example stupidstacker, because due to space restrictions I had to build it like that, so the parked train is still on the stacker.
Attachments
barely-on-curve.png
barely-on-curve.png (1.22 MiB) Viewed 192 times
stupidstacker.png
stupidstacker.png (2.12 MiB) Viewed 192 times
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4600
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.1.7] Upgrading a train that is parked on a crossing non-elevated rails causes rolling stock to disconnect

Post by boskid »

Thanks for the report. Issue is now fixed for 2.1.8.
Post Reply

Return to “Resolved for the next release”