Page 1 of 1

Automatic Coupler Mod compatibility

Posted: Sat Nov 18, 2017 5:56 pm
by ChurchOrganist
Has anyone tried this mod out with Automatic Coupler?

I'm about to start a new map on my server featuring this mod along with several other rail mods, including Automatic Coupler.

It has occurred to me that the two may well not be compatible as Automatic Coupler removes locomotives from a train and then re-attaches them at the other end.

Any comments??

Re: Automatic Coupler Mod compatibility

Posted: Sat Nov 18, 2017 6:29 pm
by Optera
I don't see how Automatic Coupler and LTN could be combined in a meaningful way.
From what I've gathered automatic coupler requires fine tuned train schedules for automatic switching.
LTN automatically assigns basic 3 stop schedules and expects trains to wait fully assembled in designated depots.


Technically they shouldn't conflict.
Currently LTN will mostly ignore coupling and decoupling of trains as it uses the main locomotives unit_number to identify trains. It is even possible to add or remove wagons or secondary locomotives from trains currently assigned a delivery.

The version for Factorio 0.16 I'm currently working on however will use train.id to better keep track of trains entering and leaving stations. While this version will eliminate some overhead from on_train_state_changed for my sanity's sake I will probably just invalidate a delivery if the corresponding trains composition is changed.

Re: Automatic Coupler Mod compatibility

Posted: Sat Nov 18, 2017 7:49 pm
by ChurchOrganist
As I thought - better to leave Automatic Coupler for another playthrough then I think.

Thanks for your input.

Oh - and awesome mod :)