Skip to content

Commit 6167a5d

Browse files
committed
Update OR manual with trainset elevator info
1 parent 18f1a65 commit 6167a5d

File tree

1 file changed

+92
-0
lines changed

1 file changed

+92
-0
lines changed

Source/Documentation/Manual/features-route.rst

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,98 @@ The animation block for the above transfertable is as follows::
313313
3600 is not a mandatory value, however to have a reasonable transfer speed a number of
314314
animation keys equal to 60 - 90 every meter should be selected.
315315

316+
317+
Locomotive and wagon elevators
318+
------------------------------
319+
.. index::
320+
single: Elevator
321+
322+
The elevator is managed by ORTS as a vertically moving transfertable. So files needed
323+
are the same as used for a transfertable, with content modified where needed.
324+
325+
Info to identify an elevator in a route is stored in file turntables.dat, as it is
326+
for turntables and transfertables. The same file can store info for moving tables of
327+
different types. Here a turntables.dat file that contains info for an elevator::
328+
329+
1
330+
Transfertable(
331+
WFile ( "w-005578+014976.w" )
332+
UiD ( 75 )
333+
XOffset ( 0 )
334+
YOffset ( -0.18 )
335+
ZOffset ( 13.405)
336+
VerticalTransfer ( 1 )
337+
TrackShapeIndex ( 37301 )
338+
Animation ( "TRACKPIECE" )
339+
Length ( 26.81 )
340+
)
341+
342+
What identifies this as an elevator is the presence of the VerticalTransfer parameter
343+
with value 1. The other difference to a transfertable is the presence of the YOffset
344+
parameter, which is the vertical offset of the zero position of the elevator with respect to
345+
the shape file zero.
346+
347+
An example of the animation block in the elevator shape file is shown here below::
348+
349+
animations ( 1
350+
animation ( 1800 30
351+
anim_nodes ( 2
352+
anim_node BASIN (
353+
controllers ( 0 )
354+
)
355+
anim_node TRACKPIECE (
356+
controllers ( 1
357+
linear_pos ( 2
358+
linear_key ( 0 0 -1.92177 0 )
359+
linear_key ( 1800 0 6.07823 0 )
360+
)
361+
)
362+
)
363+
)
364+
)
365+
)
366+
367+
wich generates a vertical movement with a span of 8 meters which is covered in 60
368+
seconds. Of course the 1800 value may be modified to get the desired motion speed.
369+
370+
The elevator must also be defined as a TrackShape in tsection.dat. It is suggested
371+
to define it in a route specific ``tsection.dat`` extension file, which, for the
372+
sample elevator, is as follows::
373+
374+
375+
376+
include ( "../../../Global/tsection.dat" )
377+
_INFO ( Track section and shape addition for transfer table derived from turntable 27m )
378+
379+
TrackSections ( 40000
380+
381+
_SKIP ( No change here )
382+
383+
)
384+
385+
386+
TrackShapes ( 40000
387+
388+
_INFO(TrackShape for for vertical transfer table derived from turntable 27m)
389+
390+
TrackShape ( 37301
391+
FileName ( A1t27mVerticalTransfertable.s )
392+
NumPaths ( 2 )
393+
SectionIdx ( 1 0 -0.18 0.0000 0 338 )
394+
SectionIdx ( 1 0 7.82 0.0000 0 338 )
395+
)
396+
)
397+
398+
To insert the elevator in a route using TSRE5 it must be reminded that the latter
399+
doesn't look at the tsection.dat file within the Openrails subfolder. So, for the sole
400+
time of the editing of the route, the TrackShape() block must be inserted in the global
401+
tsection.dat. After route editing is terminated, the block may be removed.
402+
Tsection.dat build 38 or higher is required within the main Global folder.
403+
404+
At runtime the elevator is moved with the keys used for transfertables and turntables.
405+
Alt-C moves the elevator upwards, while Ctrl-C moves the elevator downwards.
406+
407+
316408
.. _features-route-turntable-operation:
317409

318410
Path laying and operation considerations

0 commit comments

Comments
 (0)