[2.0.20] Train moves slightly when connecting locomotive or wagon in a bend

Things that has been reported already before.
TiemDuJardin
Manual Inserter
Manual Inserter
Posts: 2
Joined: Thu Nov 21, 2024 3:25 pm
Contact:

[2.0.20] Train moves slightly when connecting locomotive or wagon in a bend

Post by TiemDuJardin »

I'm making a big artillery train and I noticed that my first parts were off by a tile. Adding locomotives in a bend shows the train snapping but I thought this would cancel out with future locomotives, instead it seems to add up and after a while move the train a bit back. Intuitively, when adding a locomotive at the end, the locomotive should snap to the train while the train stays in the same place.
This problem is pretty niche and I'm not sure if it's easily fixable (the snapping points seem fixed on the tracks and thats why the whole train snaps to the closest point).

Anyways here's a video of the problem:
And here is a picture of the front of the train (originally placed at the stop):
11-21-2024, 16-58-02.png
11-21-2024, 16-58-02.png (3.49 MiB) Viewed 428 times
Attachments
factorio-current.log
(19.91 KiB) Downloaded 31 times
robot256
Smart Inserter
Smart Inserter
Posts: 1245
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Re: [2.0.20] Train moves slightly when connecting locomotive or wagon in a bend

Post by robot256 »

This is not a bug, train alignment on curves is always a little wonky and they do realign themselves when connecting wagons (whether newly placed or not). There is also no guarantee that wagons will line up with inserters if they are stopped with any part of the train on a curved rail.

Once the train starts moving, the gaps between wagons equalize. The next time it drives to the train stop under automatic control, everything will be aligned in a consistent manner.
My mods: Multiple Unit Train Control, RGB Pipes, Shipping Containers, Rocket Log, Smart Artillery Wagons.
Maintainer of Auto Deconstruct, Cargo Ships, Vehicle Wagon, Honk, Shortwave.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4044
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.20] Train moves slightly when connecting locomotive or wagon in a bend

Post by boskid »

Under the hood that is a property of how "vertical selection shift" was implemented: it shifts graphics of a rolling stock by an amount that is dependant on orientation difference between train's front rolling stock and rolling stock that is to be rendered. By adding rolling stocks the train changes which rolling stock is considered to be "front" and as such all rolling stocks in the "back" tail that got attached are visually changing the position. That is effectively a duplicate of 109804 which given the current decisions of graphics team is a wont fix.
Post Reply

Return to “Duplicates”