Scenario-defined trains
Contents | Developers pages | Command Line Options | Timetables | Scenario Creation | Developing Installers
It is possible to create a scenario that does not have any trains, either existing in the yard, or in the timetable. Trains can be created (spawned) at the boundaries of the yard from the timetable, and optionally, from an explicit definition. Additionally, trains can be placed at precise locations in the yard. All scenario-defined trains, either spawning or stabled, are defined within a set of Consists tags:
<Scenario app="ProductName" description="MyScenario" startDate="1965-01-01" startTime="00:00:00" >
<Consists loadFromTimetable="true">
<!-- scenario-defined trains go here -->
</Consists>
</Scenario>
To load trains from the timetable defined for this scenario, set the mandatory attribute loadFromTimetable to true. To specify a scenario with no timetable trains, set loadFromTimetable to false.
Defining spawning trains
Defining stabled trains
<ExistingConsist id="9903"
physics="8"
maxTechAllowedSpeed="40"
distance="180"
direction="L"
type="DL"
destination="Arnhem"
commDestination="Ah"
isEngineeringTrain="true"
consistTemplate="13"
entryPoint="SPAWN_ZV_0" >
<Occupying>
<Track>210AT</Track>
<Track>A202T</Track>
</Occupying>
<VisitedPlatformStops>Arnhem,4,--:--,12:14</VisitedPlatformStops>
<UnvisitedPlatformStops>Arnhem,24,08:05,--:--</UnvisitedPlatformStops>
<MovementOrders>
<Order type="Uncouple" track="" station="Arnhem-berg" left="loc<9903" leftDir="L" right="9903w"
rightDir="R" at="0" newID="9903w" leftCalls="true" rightCalls="false"
leftCallsForDelay="false" rightCallsForDelay="false"/>
<Order type="Turnaround" track="" station="Arnhem-Westzijde" />
</MovementOrders>
</ExistingConsist>
Movement orders
You can define movement orders for each scenario-defined train, either a spawning train or stabled train The following types of Movement Orders are available:
0: Renumber 1: Turnaround 2: Couple 3: Uncouple 4: Call 5: ChangeDriver 7: PullUp 8: StopShort 9: StopAhead 10: SwitchLock 13: StableCars 14: SpotCars ??: SpotCarsSpecify 16: MoveTo 17: RunAround 18: ContentChanges
Contents | Developers pages | Command Line Options | Timetables | Scenario Creation | Developing Installers