Trains at abutting stations can't couple

Place to get help with not working mods / modding interface.
Post Reply
deemer
Inserter
Inserter
Posts: 29
Joined: Wed Jun 24, 2015 4:01 am
Contact:

Trains at abutting stations can't couple

Post by deemer »

Hello,

I'm trying to use Automatic Coupler Mod, and I'm oh so close to the behavior I need. I'm willing to tweak the mod to make it work like I want, if I could get a pointer what to change.
regular.png
regular.png (714.38 KiB) Viewed 806 times
I have trains arranged at abutting stations as shown, and I'd like to couple them (automatically, with the mod). Unfortunately, they stop at the stations just slightly too far to couple.

I tried messing with the connection_distance and joint_distance in the base prototypes, but whatever they do (it isn't documented) it doesn't appear to accomplish my goal.

Assuming I can mess with the mod, what should I do? Is there a way to make the connect_rolling_stock() method search farther down the rail for wagons to connect? Or should I move my train forward a tile if it fails, then try again?

Thanks for any help,
deemer

Honktown
Smart Inserter
Smart Inserter
Posts: 1025
Joined: Thu Oct 03, 2019 7:10 am
Contact:

Re: Trains at abutting stations can't couple

Post by Honktown »

Have you looked into storing the contents of the wagon, removing the wagon, and creating a new wagon attached to the other train filled with cargo?
I have mods! I guess!
Link

Post Reply

Return to “Modding help”