Signal Controlled Trains


Send trains to stations receiving signals that match the train's cargo, or use signals to send a train to pickup cargo. Includes an option to automatically add refuelling stops to train schedules.

Content
1 year, 6 months ago
1.1
420
Transportation Logistics Trains Circuit network

g Explanation

1 year, 6 months ago

Hi,

I want to use this mod, but I am very confused about how it works in the game. I don't understand how to set up the network and send control signals to a specific station if they are on the same network.

Can you provide a minimal example to help me understand better? I appreciate your work.

Thanks,
Apollo

1 year, 6 months ago

Sure,

Consider this setup, where the train has a schedule like this.

After the train leaves the 'Supply' station, it will be given supply network 1, as determined by the depot signal. The mod will then check what cargo the train has, and then attempt to locate a station that 'wants' the train's cargo, which you indicate via a negative signal for that resource. The station must also be in the same network, which is indicated by the skip signal. Since the 'Demand' station meets both those requirements, it will be automatically added to the train's schedule along with a temporary stop, and the conditions will be copied from the **next station in the schedule (in this case, the one named 'Random'). After leaving the Demand station, the demand stop will be removed from the train's schedule.

Now, a vanilla wagon will hold 2000 ore. That means the train will deliver twice, at which point the station will only be receiving a signal of -1000 iron ore because the chests are also connected to the train stop. Which means the 3rd time the train leaves the supply stop, there will no longer be any eligible stations for the mod to add to the train's schedule, and it will proceed as normal, resulting in this train just looping between 'Supply' and 'Random'.

Hope that clears things up :)

1 year, 6 months ago

Yes, this helps a lot! As shown in this screenshot, it is so easy. :)

Thanks a lot!

1 year, 6 months ago

You're welcome! Feel free to contact me on the Factorio Discord as well as well if you need more help. (I go by OceanPhantom#2028 over there) It's a bit easier to share screenshots and such that way.

New response