Custom Scenarios

From SimRail Wiki
Jump to navigation Jump to search

How to create custom scenarios

Góra Wlodowska

Path to Scenarios

Default directory is: "C:\Steam\steamapps\common\SimRail\SimRail_Data\StreamingAssets\Sceneries"
Or in other words, "Path to Steam Library\SimRail\SimRail_Data\StreamingAssets\Sceneries"

Permissable Loads

LHS Max: 900m and 6000t Normal Line Max: 700m and 4500t Traxxa: max 2500-2800t
Dragon2: 3200-3500 up an incline

Rolling Stock

Freight
424Z/424Z_brazowy
424Z/424Z
Concrete_slab
Gas_pipeline
Pipeline
Sheet_metal
Steel_circle
T-beam
Tie
Tree_trunk
Wooden_beam
RandomContainerAll
RandomContainer3x20
RandomContainer1x40
RandomContainer2040
RandomContainer1x20
RandomContainer2x20

412W/412W_v4_364-9_b Variant
412W/412W_v4_364-9 Variant
Coal
Sand
Ballast
WoodLogs
Passenger
11xa/112A_50 51 19-08 136-0 Variant
11xa/112A_51 51 19-70 003-4 Variant
11xa/111A_50 51 20-00 608-3 Variant
11xa/111A_50 51 20-08 607-7 Variant
11xa/111A_51 51 20-70 829-9 Variant
11xa/111A_51 51 20-71 102-0 Variant
z2/a9emnouz_61511970214-5
z2/a9mnouz_61511970234-3
z2/b11mnouz_61512170064-0
z2/b11mnouz_61512170098-8
z2/wrmnouz_61518870191_1
z2/b11gmnouz_61512170107-7
Locos
4E/EU07-096 - PKP Cargo
4E/EU07-085 - PKP IC
4E/EP07-135 - Green
PKP Dragon2/E6ACTad
Traxx/E186-134
EMU
Elf/EN96-001 - PR
Elf/EN76-022 - KM
Elf/EN76-006 - KŚ
Pendolino/ED250-018 Variant
Brake Settings
G, P, and T - entered between weight and car parameters
Example
412W/412W_v4_364-9_b Variant:G:55@Coal
412W/412W_v4_364-9_b Variant - Stock G - Brake Setting
55 - Weight (in tons)
Coal - Load 412W Brown variant with 55t of coal and brakes set to G.
Example MOW Train
4E/EP07-135+412W/412W_v4_364-9 Variant::53@Ballast+424Z/424Z::48@Tie+412W/412W_v4_364-9 Variant::53@Ballast+412W/412W_v4_364-9 Variant::52@Ballast+412W/412W_v4_364-9_b Variant::58@Sand+412W/412W_v4_364-9 Variant::54@Ballast+424Z/424Z::48@Tie+412W/412W_v4_364-9 Variant::54@Ballast+424Z/424Z::48@Tie+412W/412W_v4_364-9 Variant::51@Ballast+412W/412W_v4_364-9 Variant::56@Ballast+412W/412W_v4_364-9_b Variant::52@Sand+412W/412W_v4_364-9 Variant::54@Ballast+424Z/424Z::48@Tie+412W/412W_v4_364-9 Variant::51@Ballast+412W/412W_v4_364-9_b Variant::52@Sand+412W/412W_v4_364-9 Variant::54@Ballast+412W/412W_v4_364-9 Variant::53@Ballast+424Z/424Z::48@Tie+424Z/424Z::48@Tie+412W/412W_v4_364-9 Variant::55@Ballast+412W/412W_v4_364-9 Variant::55@Ballast

Actions

__
"$type": "SimrailEvent.PostNotify",
"res": { "$ref": "210" },
"timeout": 2.0
__
"$type": "SimrailEvent.VehicleStartupTutorial",
"train": { "$ref": "1000" },
"willFinish": { "$ref": "5000" },
"tutorial": 7
__
"$type": "SimrailEvent.SetObjectiveState",
"objective": { "$ref": "5000" },
"state": 1
__
"$type": "SimrailEvent.SetCabPaper",
"res": { "$ref": "220" },
"position": 1
__
"$type": "SimrailEvent.TrafficCommand",
"commandText": "
__
$type": "SimrailEvent.FinishAction"
__
"$type": "SimrailEvent.TimerAction",
"timer": { "$ref": "207" },
"action": 1
__
"$type": "SimrailEvent.CoroutineDelayAction",
"delay": 3.0,
"until": false
__
"$type": "SimrailEvent.WeatherCommand",
"instant": false,
"weatherCode": 741,
"temperature": 22.3,
"pressure": 1000,
"humidity": 92,
"visibility": 1000,
"windSpeed": 10,
"windDeg": 30

Triggers

__
"$type": "SimrailEvent.ObjectiveStateTrigger",
"objective": { "$ref": "250" },
"state": 3
__
"$type": "SimrailEvent.TrainArrivedTrigger",
"stationName": "Sosnowiec Dańdówka",
"train": { "$ref": "1000" }
__
"$type": "SimrailEvent.TimerFinishTrigger",
"timer": { "$ref": "300" }
__
"$type": "SimrailEvent.ImmediateOnceTrigger"
__
"$type": "SimrailEvent.AtTimeTrigger",
"time": 5.0
__
"$type": "SimrailEvent.PlayerCallTrigger"
__
"$type": "SimrailEvent.TrainDepartureTimeTrigger",
"stationName": "Będzin Ksawera",
"train": null
__
"$type": "SimrailEvent.TrainAnyDepartureTrigger",
"train": { "$ref": "249" }
__
"$type": "SimrailEvent.TrainSignalProximity",
"signalName": "Sk_E",
"distance": 30.0,
"maxSpeed": 0.0,
"train": { "$ref": "1000" }

Trigger Conditions

Objective based condition
"$type": "SimrailEvent.ObjectiveStateCondition",
"objective": { "$ref": "1376" },  <- ID objective do sprawdzenia
"state": 3, <- stan objective który wymagasz
"invert": false <- czy odwrócić warunek?

Execute Trigger Only Once
"$type": "SimrailEvent.ExecOnceCondition", 
"invert": false <- czy odwrócić warunek?

Przykład Użycia na Trigger lub Action array:

 {
                "$id": "13386", <- musi być niepowtarzalny
                "$type": "SimrailEvent.SetObjectiveState", <- rodzaj action lub trigger, w tym przypadku to SimRailEvent.SetObjectiveState
                "objective": { "$ref": "1576"  }, <- ID of objective który chcesz uaktywnić
                "state": 1 <- stan w który chcesz objective wprowadzić
              }

Author: PJK