Page 1 of 1

Looking for the way train stops are handled

Posted: Tue Mar 01, 2016 3:18 am
by Jackalope_Gaming
I'm looking for the code and files that show how locomotives and train stops work together. Specifically, where a locomotive stops in relation to a train stop and whether that can be changed. I've been fiddling a bit with entity lengths to make locomotives and wagons exactly 8 units long horizontally and am now contemplating how train stops behave just in case they're a significant factor in making sure locomotives and wagons behave themselves.

The main things I've been looking at are whether a locomotive's collision box, selection box, or drawing box affect where it stops in relation to a train stop or if it's something else entirely that I haven't yet found.

Could I please get some insight from someone who knows how these all interact??

Re: Looking for the way train stops are handled

Posted: Tue Mar 01, 2016 6:56 am
by Koub
Took the liberty to move your topic in the modding help subforum, where I think it belongs.

Re: Looking for the way train stops are handled

Posted: Sun Mar 20, 2016 1:29 am
by Jackalope_Gaming
Thanks, Koub.

Does anyone know some of the interactions with these entities?

Re: Looking for the way train stops are handled

Posted: Fri Apr 08, 2016 8:26 pm
by Jackalope_Gaming
An update for anyone else that's curious about this:

According to the post at viewtopic.php?f=91&t=19458&start=30#p146196 it seems locomotives stop when their front joint_distance is .5 tiles behind the center of the train stop.