SpawnInfo

From SignalWiki
Jump to navigation Jump to search

Contents | Developers pages | Command Line Options | Timetables | Scenario Creation | Developing Installers


The SpawnInfo timetable variable defines additional properties that alters spawning behaviour. The items are comma-delimited.

Spawning Speed
SPAWNKMH:<value>
Defines the speed of the spawning train.
<value> must be a positive integer, in km/h.
Spawn Timeout
SPAWNTIMEOUT:<value>
Defines the time after spawning, when the train will start.
<value> must be a positive integer, in seconds.
Alternative spawn track
ALTSPAWN:<value>
When the normal spawn track is unavailable, spawn to this alternative track
<value> is the full name of the alternative spawn track.
Alternative platform/timetable stops
ALTSTOP:<station0>;<station1> ... <stationN>><altstation0>;<arrive0>;<depart0>;<altstation1>;<arrive1>;<depart1> ... <altstationN>;<arriveN>;<departN>
Used only when ALTSPAWN is defined and used. If ALTSPAWN is defined, but train spawns to to the default track, these values are ignored!

The ALTSTOP variable is actually 2 lists, with a > in the middle. The first semi-colon list is stations to discard from the normal list of stations at which to stop. The second list is stops to add and their arrival/departure times. Times are defined using the HH:mm format. If the time is undefined, use --:-- .

Examples

The example below spawns the train going 25km/h.

SPAWNKMH:25

The example below spawns the train going 25km/h, and indicates that the train should spawn to SPAWN_SOMESTATION_5.

SPAWNKMH:25,ALTSPAWN:SPAWN_SOMESTATION_5

The example defines an example of alternative stations (if the train spawns at SPAWN_SOMESTATION_5).

ALTSPAWN:SPAWN_SOMESTATION_5,ALTSTOP:ALittleStop;AnotherStation>LittleTown;--:--;07:20;BiggerTown;07:28;07:30;FinalTown;07:41;--:--



Contents | Developers pages | Command Line Options | Timetables | Scenario Creation | Developing Installers