- Name: Train Coupler
 - Description: Adds the coupler rail, which automatically couples/decouples wagons if it's aligned with a gap when the train stops at a station.
 - Tested with Factorio version: 0.14.22
 - Locale: English
 - License: MIT License. I'd appreciate if you contribute via github instead of forking if I'm still maintaining it, though.
 - Author: NiftyManiac
 - Source: https://github.com/NiftyManiac/factorio-train-coupler
 - Portal download : https://mods.factorio.com/mods/NiftyManiac/TrainCoupler
 
Here's a video demonstration. Attached is a demo save with an example of setting up a railyard for material storage and delivery with this mod.
The coupler rail needs to be researched, and can then be crafted from a single rail. It's pretty simple. If a train stops at a station in its schedule, and it comes to rest with a coupler rail aligned with a gap between wagons, those wagons will be coupled or decoupled.
After a coupling/decoupling takes place, the train immediately goes to the next stop in its schedule; the wait condition is ignored.
If anyone wants to help me improve the graphics, that'd be awesome
Mod Compatibility
- Stringy Train Stops- No issues, but commands cannot be sent to a train that just coupled/decoupled, making things a bit difficult
 
- When coupling two trains, the train with fewer locomotives must have empty space on the other side for coupling to happen properly.
 - Trains will lose their internal energy during coupling/decoupling, so each such event will cost fuel. Can't fix until 0.15.
 - Diagonal coupler rails don't work properly yet.
 - Not tested with other train mods; it's likely to have compatibility issues at the moment.
 - Only one coupling/decoupling action per train per station. I.e. you can't split a train into 3 pieces, or couple and decouple at once, at a single station.
 - If you're in following the train in god-mode, you'll be ejected. Can't fix until 0.15.
 






