Stations set train colour

by ccooke

Set a trains colour when it stops at a station using R, G and B signals

Content
3 years ago
1.1
284
Trains
Owner:
ccooke
Source:
https://github.com/ccooke/factorio-St...
Homepage:
N/A
License:
MIT
Created:
3 years ago
Latest Version:
0.0.5 (3 years ago)
Factorio version:
1.1
Downloaded by:
284 users

Stations Set Train Colour

I couldn't find any mod doing exactly this, so I wrote my own

This mod allows you to set the colour of a train when it arrives (and waits) at a station. Note - nothing will happen unless the train actually stops.

Setting the colour

Connect a circuit network to a station and set the signal.
When a train stops, the R, G, B and A signals will be read and used to set the colour and transparency. They default to 0,0,0,128.

Resetting the colour

Connect a circuit network to a station and set the signal.
When a train stops, the train's colour will be reset to the default.

You can also set the module option Default Reset, which causes all stations to reset colour unless the signal is set.

Precedence

If the signal is set, the station will always reset the train's colour to default.

Module Options

  • Default Reset - Reset train colours by default
  • Default Red, Green, Blue and Alpha - The default colour for trains. Initially set to the vanilla standard of [234,17,0,128]
  • Debug - Generate debug messages
  • Red, Green, Blue and Alpha signals - The names of the signals to use for colour. Do not change these unless you know what you are doing