Skip to content
catageek edited this page Oct 10, 2012 · 23 revisions

###Definition A train is a group of carts close enough one to each other to be considered as a whole for ByteCart devices. The first cart of a train must hold the destination address of the train, with 32 added to station number. The other carts will go to same destination.

Note : there is no physical link between carts in a train like in plugin TrainCarts. Carts are not tight. A ByteCart train is just a stream of carts with a special mark in the heading cart.

###Train time frame Following a head cart with 32 added to station address, all subsequent carts must follow the previous one in a fixed time frame. Any cart following a train within the time frame will be considered part of the train. Any wagon of the train following its predecessor out of the time frame will be detached from the train with all subsequents wagons. The broken part will eventually turn zombie carts (i.e. with no destination) and will be discarded in garbage collector station.

The train time frame is 14 server ticks, about 0.7 sec.

Be careful : a train or a cart can "catch" another train or cart if moving too close, leaving some possibility of "cart hijacking" in the network.

###Building a train The best way to build a train is to build a chained line of BC7001 start/stop sign, and to place the carts on it.

BC7001 chains will be used to stop the train everywhere applicable, for example just before entering the network, while waiting the extinction of the busy line given by BC9001.

The destination address must be contained in the first cart, with 32 added to the station number.

For example, for a train going to station 1.10.14, you must put the address 1.10.46 (46 = 14 + 32) in the first cart.

###Train features ByteCart signs have full compatibility with trains:

  • BC7010 and BC7011 update only the address of the first cart, leaving other unchanged.

  • BC8010, BC8011 and the BC90XX serie are compatible with trains.

  • Anti-collision features are strongly recommanded in multi-player or multi-train environment.

Clone this wiki locally