Locomotive doesn't snap to train stops when on curved rail (partially).
(Pls don't judge my eco-friendly spaghetti style. )
[boskid][1.1.61] Train not snapping to station on curved rail
- SupplyDepoo
- Filter Inserter
- Posts: 305
- Joined: Sat Oct 29, 2016 8:42 pm
- Contact:
Re: [1.1.61] Train not snapping to station on curved rail
[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.
- ickputzdirwech
- Filter Inserter
- Posts: 791
- Joined: Sun May 07, 2017 10:16 am
- Contact:
Re: [1.1.61] Train not snapping to station on curved rail
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
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
Re: [1.1.61] Train not snapping to station on curved rail
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.
- SupplyDepoo
- Filter Inserter
- Posts: 305
- Joined: Sat Oct 29, 2016 8:42 pm
- Contact: