@@ -505,6 +505,26 @@ reference is in the form of ``train name:timetable description``, where the
505
505
description is the text at the intersection of the first ``#comment `` row and
506
506
``#comment `` column in the other timetable file.
507
507
508
+ Train Commands
509
+ ''''''''''''''
510
+
511
+ Gradient
512
+ To provide a realistic behaviour on gradients, the gradient command has been introduced.
513
+
514
+ Syntax
515
+ ``$gradient /perc=n /speed=s ``
516
+
517
+ The gradient command must be set in a ``#speed `` field of a train.
518
+
519
+ Functionality
520
+ When gradient is set, forced acceleration is turned off if the leading engine of the train is on a
521
+ rising gradient which exceeds n percent.
522
+ However, forced acceleration is turned on if the speed of the train drops below speed s.
523
+ This is to ensure the train will not stall, and also that the train will restart if it has come to a stop on a
524
+ gradient, e.g. due to a signal.
525
+ The dimension of the speed value depends on the definition of the speed field (see manual for details of speed fields).
526
+
527
+
508
528
Station Commands
509
529
''''''''''''''''
510
530
@@ -1088,7 +1108,7 @@ junction somewhere beyond that station.
1088
1108
1089
1109
.. _timetable-cmd-request-stop :
1090
1110
1091
- ``$req `` Request Stop
1111
+ ``$req ``
1092
1112
1093
1113
A request stop is set in a timetable by placing an 'x' between hours and minutes, e.g. 13x21, or by just
1094
1114
setting an 'x' in the station departure field.
@@ -1101,31 +1121,27 @@ junction somewhere beyond that station.
1101
1121
1102
1122
Definition for ``$req `` command : $req /pu=n /pd=n [/laststop | /approach] [/message | /sound]
1103
1123
1104
- Details :
1124
+ Details
1125
+ ``/pu=n `` : probability that stop is required to pick up passengers, n is percentage, 0 <= n <= 99.
1105
1126
1106
- ``/pu =n `` : probability that stop is required to pick up passengers, n is percentage, 0 <= n <= 99.
1127
+ ``/pd =n `` : probability that stop is required to set down passengers, n is percentage, 0 <= n <= 99.
1107
1128
1108
- ``/pd=n `` : probability that stop is required to set down passengers, n is percentage, 0 <= n <= 99.
1129
+ ``/laststop `` : message is displayed at last fixed stop, indicating if stop at request stop is required
1130
+ to set down passengers. Note that message is always displayed, indicating that stop is required, or not.
1109
1131
1110
- ``/laststop `` : message is displayed at last fixed stop, indicating if stop at request stop is required
1111
- to set down passengers. Note that message is always displayed, indicating that stop is required, or not.
1132
+ ``/approach `` : message is displayed, or sound is played, at preset fixed distance from stop if
1133
+ request stop is required to set down passengers. Note that no indication if given if stop is not required .
1112
1134
1113
- ``/approach `` : message is displayed, or sound is played, at preset fixed distance from stop if
1114
- request stop is required to set down passengers. Note that no indication if given if stop is not required.
1135
+ ``/message `` : message is displayed on approach if stop is required. Only valid if ``/approach `` is set.
1115
1136
1116
- ``/message `` : message is displayed on approach if stop is required. Only valid if ``/approach `` is set.
1117
-
1118
- ``/sound `` : sound is played on approach if stop is required. Only valid if ``/approach `` is set.
1137
+ ``/sound `` : sound is played on approach if stop is required. Only valid if ``/approach `` is set.
1119
1138
1120
1139
1121
1140
Definition for special signal
1141
+ Signals must be placed next to the platform. This signal may be any type of signal except NORMAL.
1142
+ At least one signal is required for each direction.
1122
1143
1123
- Signals must be placed next to the platform. This signal may be any type of signal except NORMAL.
1124
- At least one signal is required for each direction.
1125
- A special function must be used for this signal in the related script :
1126
-
1127
-
1128
- TRAIN_HAS_REQUEST_STOP()
1144
+ A special function must be used for this signal in the related script : TRAIN_HAS_REQUEST_STOP()
1129
1145
1130
1146
This function will return 'true' if approaching train is to stop at the request stop in order to set down
1131
1147
passengers, otherwise it returns 'false'.
@@ -1135,121 +1151,104 @@ junction somewhere beyond that station.
1135
1151
1136
1152
Apart from this function, the signal must set two variables :
1137
1153
1138
- ``ORTSReqStopVisDistance `` : distance from station at which AI train is assumed to be able to
1139
- 'see' if stop is required to pick up passengers.
1154
+ ``ORTSReqStopVisDistance `` : distance from station at which AI train is assumed to be able to
1155
+ 'see' if stop is required to pick up passengers.
1140
1156
1141
- ``ORTSReqStopAnnDistance `` : distance from station at which message is displayed or sound is
1142
- played if ``/approach `` is set in ``$req `` command.
1157
+ ``ORTSReqStopAnnDistance `` : distance from station at which message is displayed or sound is
1158
+ played if ``/approach `` is set in ``$req `` command.
1143
1159
1144
1160
Functionality
1161
+ Based on the values of ``/pu `` and ``/pd ``, it is determined if a request stop is required, either to set down
1162
+ or to pick up passengers.
1145
1163
1146
- Based on the values of ``/pu `` and ``/pd ``, it is determined if a request stop is required, either to set down
1147
- or to pick up passengers.
1148
-
1149
- If the train is stopped and a departure time is set, the train will depart at the defined departure time
1150
- or after the defined station dwell time has passed, whichever is the latest time.
1151
-
1152
- If the train is stopped and no departure time is set, the train will depart after the station dwell time
1153
- has passed.
1154
-
1155
- Note that if a stop is not required, the train may pass through the station without stopping even if it
1156
- passes before the defined departure time.
1164
+ If the train is stopped and a departure time is set, the train will depart at the defined departure time
1165
+ or after the defined station dwell time has passed, whichever is the latest time.
1157
1166
1158
- Player train
1167
+ If the train is stopped and no departure time is set, the train will depart after the station dwell time
1168
+ has passed.
1159
1169
1160
- Set down.
1170
+ Note that if a stop is not required, the train may pass through the station without stopping even if it
1171
+ passes before the defined departure time.
1161
1172
1162
- If ``/laststop `` is set, a message is shown at the moment of departure from the last fixed stop before
1163
- one or more request stops, which indicate, per stop, if the stop is required to set down passengers.
1164
- Note that the message is always shown.
1173
+ Player train
1174
+ Set down
1175
+ If ``/laststop `` is set, a message is shown at the moment of departure from the last fixed stop before
1176
+ one or more request stops, which indicate, per stop, if the stop is required to set down passengers.
1177
+ Note that the message is always shown.
1165
1178
1166
- If ``/approach `` is set, a message is shown or a sound is played when the train has reached the distance
1167
- from the request stop as defined in the signal definition using the ``ORTSReqStopAnnDistance ``
1168
- variable. Note that in this situation, the message is displayed or the sound is played only if the
1169
- request stop is required.
1170
-
1171
- Pick Up
1172
-
1173
- If a stop is required to pick up, this is visualized by the state of the special signal. It is up to the player
1174
- to approach the station at such a speed that a proper stop can be made in time if required. There is
1175
- no other indication of the state of this signal than the visualization, the state is not shown if the Track
1176
- Monitor window or otherwise.
1177
-
1178
- Display in Next Station Window
1179
+ If ``/approach `` is set, a message is shown or a sound is played when the train has reached the distance
1180
+ from the request stop as defined in the signal definition using the ``ORTSReqStopAnnDistance ``
1181
+ variable. Note that in this situation, the message is displayed or the sound is played only if the
1182
+ request stop is required.
1179
1183
1180
- A request stop will be shown in the next station window with an 'x' displayed in the arrival and
1181
- departure times. When the stop was required, normal arrival and departure times are shown for
1182
- previous stop. If the stop was not required and the train passed through the station, then when the
1183
- train has indeed cleared the station, that station is shown as previous stop but no arrival time is
1184
- shown, and the departure time is set to 'skipped' .
1184
+ Pick Up
1185
+ If a stop is required to pick up, this is visualized by the state of the special signal. It is up to the player
1186
+ to approach the station at such a speed that a proper stop can be made in time if required. There is
1187
+ no other indication of the state of this signal than the visualization, the state is not shown if the Track
1188
+ Monitor window or otherwise .
1185
1189
1186
- Spoiler
1190
+ Display in Next Station Window
1191
+ A request stop will be shown in the next station window with an 'x' displayed in the arrival and
1192
+ departure times. When the stop was required, normal arrival and departure times are shown for
1193
+ previous stop. If the stop was not required and the train passed through the station, then when the
1194
+ train has indeed cleared the station, that station is shown as previous stop but no arrival time is
1195
+ shown, and the departure time is set to 'skipped'.
1187
1196
1188
- A 'spoiler' indication which shows if the stop is required to set down or pick up, can be shown if the
1189
- Next Station Window is displayed (normally using key F10), by pressing keys ALT+F10.
1197
+ Spoiler
1198
+ A 'spoiler' indication which shows if the stop is required to set down or pick up, can be shown if the
1199
+ Next Station Window is displayed (normally using key F10), by pressing keys ALT+F10.
1190
1200
1191
- When ALT+F10 is pressed, and the next station is a request stop, a line is displayed at the boƩom of
1192
- the window showing if stop is required or not.
1201
+ When ALT+F10 is pressed, and the next station is a request stop, a line is displayed at the boƩom of
1202
+ the window showing if stop is required or not.
1193
1203
1194
- NOTE : this spoiler function is not yet available and will be included later.
1204
+ NOTE : this spoiler function is not yet available and will be included later.
1195
1205
1196
- Sound
1206
+ Sound
1207
+ When a sound is to be played on approach, as defined in the ``$req `` command, the definition for this
1208
+ sound must be included in the .sms sound file for the cab for the locomotive on the player train.
1197
1209
1198
- When a sound is to be played on approach, as defined in the ``$req `` command, the definition for this
1199
- sound must be included in the .sms sound file for the cab for the locomotive on the player train.
1210
+ The trigger for this sound is trigger 270.
1200
1211
1201
- The trigger for this sound is trigger 270.
1202
-
1203
- AI Train
1204
-
1205
- An AI train will approach the station as any normal station. When the stop is required, the train will
1206
- stop as normal. When no stop is required at all, the train will cease to slow down for the approach
1207
- when it has reached the distance from the station as defined in the signal variable
1208
- ``ORTSReqStopVisDistance ``, and will then start to accelerate again to regain to normal speed.
1212
+ AI Train
1213
+ An AI train will approach the station as any normal station. When the stop is required, the train will
1214
+ stop as normal. When no stop is required at all, the train will cease to slow down for the approach
1215
+ when it has reached the distance from the station as defined in the signal variable
1216
+ ``ORTSReqStopVisDistance ``, and will then start to accelerate again to regain to normal speed.
1209
1217
1210
1218
.. _timetable-depart-early :
1211
1219
1212
1220
Allow Depart Early
1213
-
1214
- In a timetable, it is indicated that a train is allowed to depart early by placing a '*' between hours and
1215
- minutes, e.g. 17*23, or by setting just a '*' in the station departure field.
1221
+ In a timetable, it is indicated that a train is allowed to depart early by placing a '*' between hours and
1222
+ minutes, e.g. 17*23, or by setting just a '*' in the station departure field.
1216
1223
1217
1224
Functionality
1218
-
1219
1225
Player Train
1226
+ When a player train is allowed to depart early, the normal departure indication is given as soon as
1227
+ the train has been stopped at the station for the normal required stop time as set for that station,
1228
+ and the route ahead is clear.
1220
1229
1221
- When a player train is allowed to depart early, the normal departure indication is given as soon as
1222
- the train has been stopped at the station for the normal required stop time as set for that station,
1223
- and the route ahead is clear.
1224
-
1225
- Display in Next Station Window.
1226
-
1227
- When “allow depart early” has been set for a station, a '*' is shown in the departure time. When the
1228
- train has departed, the '*' is also shown in the departure time for previous station stop.
1230
+ Display in Next Station Window
1231
+ When “allow depart early” has been set for a station, a '*' is shown in the departure time. When the
1232
+ train has departed, the '*' is also shown in the departure time for previous station stop.
1229
1233
1230
1234
AI Train
1231
-
1232
- When an AI train is allowed to depart early, the train will depart as soon as the train has been
1233
- stopped at the station for the normal required stop time as set for that station, and the route ahead
1234
- is clear.
1235
+ When an AI train is allowed to depart early, the train will depart as soon as the train has been
1236
+ stopped at the station for the normal required stop time as set for that station, and the route ahead
1237
+ is clear.
1235
1238
1236
1239
.. _timetable-passing-time :
1237
1240
1238
1241
Passing Time
1242
+ Passing time can be defined by placing a 'P' between hours and minutes, e.g. 14P53.
1239
1243
1240
- Passing time can be defined by placing a 'P' between hours and minutes, e.g. 14P53.
1241
-
1242
- Functionality
1243
-
1244
- Player Train
1245
-
1246
- When a passing time is set, the station will be shown in the NextStationWindow as a normal stop,
1247
- but showing a departure time only. When the station is passed, the actual passing time is also shown
1248
- as normal, but also a departure time only.
1249
-
1250
- AI Train
1244
+ Functionality
1245
+ Player Train
1246
+ When a passing time is set, the station will be shown in the NextStationWindow as a normal stop,
1247
+ but showing a departure time only. When the station is passed, the actual passing time is also shown
1248
+ as normal, but also a departure time only.
1251
1249
1252
- There is no processing of passing time for AI trains.
1250
+ AI Train
1251
+ There is no processing of passing time for AI trains.
1253
1252
1254
1253
1255
1254
.. _timetable-start :
0 commit comments