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??
Looking for the way train stops are handled
- Jackalope_Gaming
- Fast Inserter
- Posts: 230
- Joined: Wed Oct 07, 2015 10:11 pm
- Contact:
Re: Looking for the way train stops are handled
Took the liberty to move your topic in the modding help subforum, where I think it belongs.
Koub - Please consider English is not my native language.
- Jackalope_Gaming
- Fast Inserter
- Posts: 230
- Joined: Wed Oct 07, 2015 10:11 pm
- Contact:
Re: Looking for the way train stops are handled
Thanks, Koub.
Does anyone know some of the interactions with these entities?
Does anyone know some of the interactions with these entities?
- Jackalope_Gaming
- Fast Inserter
- Posts: 230
- Joined: Wed Oct 07, 2015 10:11 pm
- Contact:
Re: Looking for the way train stops are handled
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.
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.