How does the train identification number work?

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
Post Reply
User avatar
brunzenstein
Smart Inserter
Smart Inserter
Posts: 1063
Joined: Tue Mar 01, 2016 2:27 pm
Contact:

How does the train identification number work?

Post by brunzenstein »

and how to set this up / use it correct?

User avatar
Lav
Filter Inserter
Filter Inserter
Posts: 384
Joined: Mon Mar 27, 2017 10:12 am
Contact:

Re: How does the train identification number work?

Post by Lav »

brunzenstein wrote:and how to set this up / use it correct?
When you connect a train station to a circuit network, you can set the checkbox to transmit train ID and decide what signal to use ("T" by default).

If a train arrives to the station, and the relevant checkbox is set, station generates a circuit signal with non-zero value. This value is generated for as long as the train stays on the station. All other time a zero value is generated. You can use this to detect that the train has arrived and what train specifically.

Each train is assigned a unique numeric ID which is always a positive integer. You cannot change train's ID unfortunately, so you have to read the assigned train ID's and work with them.

Muche
Long Handed Inserter
Long Handed Inserter
Posts: 53
Joined: Fri Jun 02, 2017 6:20 pm
Contact:

Re: How does the train identification number work?

Post by Muche »

I'll add that each substantial change of the train (adding or removing a wagon/locomotive) changes this ID; schedule changes are okay though.

Tekky
Smart Inserter
Smart Inserter
Posts: 1039
Joined: Sun Jul 31, 2016 10:53 am
Contact:

Re: How does the train identification number work?

Post by Tekky »

The current system of Train-IDs is only a half-baked feature that was introduced in 0.15.11 in order to fix this bug.

I hope that in version 0.16, it will be possible to assign Train-IDs yourself, as has been suggested in the following thread:

viewtopic.php?f=6&t=46969 Constant Combinator for Locomotive

Post Reply

Return to “Gameplay Help”