[boskid][1.1.61] Train not snapping to station on curved rail

This subforum contains all the issues which we already resolved.
User avatar
SupplyDepoo
Filter Inserter
Filter Inserter
Posts: 306
Joined: Sat Oct 29, 2016 8:42 pm
Contact:

[boskid][1.1.61] Train not snapping to station on curved rail

Post by SupplyDepoo »

Locomotive doesn't snap to train stops when on curved rail (partially).

(Pls don't judge my eco-friendly spaghetti style. :D )
no-snapping.gif
no-snapping.gif (5.87 MiB) Viewed 3239 times
Koub
Global Moderator
Global Moderator
Posts: 7918
Joined: Fri May 30, 2014 8:54 am
Contact:

Re: [1.1.61] Train not snapping to station on curved rail

Post by Koub »

[Koub] I'll move this to won't fix, because I' sure it won't be. The stations are supposed to be on straight rails, almost nothing works well on curved rail stations.
Koub - Please consider English is not my native language.
User avatar
ickputzdirwech
Filter Inserter
Filter Inserter
Posts: 794
Joined: Sun May 07, 2017 10:16 am
Contact:

Re: [1.1.61] Train not snapping to station on curved rail

Post by ickputzdirwech »

Wouldn’t be so sure about that. See 101954
Mods: Shortcuts for 1.1, ick's Sea Block, ick's vanilla tweaks
Tools: Atom language pack
Text quickly seems cold and unfriendly. Be careful how you write and interpret what others have written.
- A reminder for me and all who read what I write
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3272
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [1.1.61] Train not snapping to station on curved rail

Post by boskid »

Reason why locomotive was not snapping in that case is that code for snapping was implemented in a "simplified" way where it only computes distance to move a stock based only on X coordinates or only on Y coordinates and for this it was required for a locomotive to be completly vertical or completly horizontal. I did a tiny cleanup of the locomotive's snap to stop code for 1.1.64 where instead of using X or Y coordinate differences (4 completly unrelated cases, one for each main direction) it uses distance to travel along rails. In this "after cleanup" code a locomotive will also snap while it is on curved rails.
User avatar
SupplyDepoo
Filter Inserter
Filter Inserter
Posts: 306
Joined: Sat Oct 29, 2016 8:42 pm
Contact:

Re: [boskid][1.1.61] Train not snapping to station on curved rail

Post by SupplyDepoo »

Thanks, boskid!
Post Reply

Return to “Resolved Problems and Bugs”