Console Commands

Train Sim World's debug console can be accessed using the Universal Unreal Engine Unlocker.

A full list of commands is available here. While some of them are standard UE4 game commands, the functions of most of the TSW-specific commands are not yet known.

## **General Command Information**

The camera built into UUU is very useful. You can activate it with the command ToggleDebugCamera. Whilst the camera is active, trains under your control can pass through the boundries which would normally terminate the session. This is useful for exploring areas outside the limits imposed by the game itself. Whilst you cannot control the train when the camera is active, you can quickly switch back by using the same command as before.

## **Environmental Commands**

There are several environmental commands which allow the user to quickly switch between weather and lighting conditions. These commands are helpful when it comes to taking screenshots, as well as simulating dynamic weather during a scenario. The image below shows the same scene under different weather conditions:

Several useful environmental commands:

ts2.dbg.SetCloudiness <0-1> // Sets the amount of cloud, zero being clear skies and one being completely overcast.
ts2.dbg.SetGroundSnow <0-1> // Sets the amount of snow, zero being no snow, one being maximum snow.
ts2.dbg.SetPiledSnow <0-1> // Sets the amount of piled snow, zero being none, one being maximum.
ts2.dbg.SetPrecipitation <0-1> // Sets the level of rain, zero being none, one being torrential downpour.
ts2.dbg.SetWindAngle <0-360> // Sets the angle from which the wind blows, zero being North, 90 East, 180 being South and 270 being West.

ts2.dbg.SetWindStrength <0-100> // Sets the strength of the wind, zero being still and 100 being stormy.
ts2.dbg.SetTemperature <0> // Sets the ambient temperature in Celcius, with zero and below causing percipitation to fall as snow.

ts2.dbg.SetLocalDateTime <YYYY.MM.DD-HH.MM.SS> // Sets the date and time in game.

## **Signalling Commands**

Console commands can be used to change signals and set routes, permitting the player to access areas of the map not usually accessible. It should be noted that the Dispatcher has overall control, so if the dispatcher has set a route, you cannot override it. To get around this issue, you can start a game just before 00:00, once the clock passes 00:00 the Dispatcher surrenders control of the routes, this allows you to set routes as you please. You can then use the SetLocalDateTime command to change back to the time you desire.

Useful signalling commands:

ts2.signals.SetRoute <SignalID> <Route ID> // This command allows a route to be set from one signal to the next. The signal ID is found on a plate attached to most signals, this identifies the signal. For ground signals these are expressed as they appear on the signal (BR880 for example). For main signals, they are expressed with an underscore between the alpha and the numeric parts of the ID (BR\_881 for example.) Each signal has one or more routes which it controls, these are expressed as a number from 0 and up. See the examples below for futher explaination:

To set route zero on this ground signal, use the command ts2.signals.SetRoute 884 0

To set route one on this main signal, use the command ts2.signals.SetRoute D\_941 1