Looking for the way train stops are handled

Place to get help with not working mods / modding interface.
User avatar
Jackalope_Gaming
Fast Inserter
Fast Inserter
Posts: 230
Joined: Wed Oct 07, 2015 10:11 pm
Contact:

Looking for the way train stops are handled

Post 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??
Koub
Global Moderator
Global Moderator
Posts: 7955
Joined: Fri May 30, 2014 8:54 am
Contact:

Re: Looking for the way train stops are handled

Post by Koub »

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.
User avatar
Jackalope_Gaming
Fast Inserter
Fast Inserter
Posts: 230
Joined: Wed Oct 07, 2015 10:11 pm
Contact:

Re: Looking for the way train stops are handled

Post by Jackalope_Gaming »

Thanks, Koub.

Does anyone know some of the interactions with these entities?
User avatar
Jackalope_Gaming
Fast Inserter
Fast Inserter
Posts: 230
Joined: Wed Oct 07, 2015 10:11 pm
Contact:

Re: Looking for the way train stops are handled

Post 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.
Post Reply

Return to “Modding help”