Skip to content

Commit a06ddb2

Browse files
committed
Merge branch 'master' into Sharpe49-power-supply
2 parents 03a1d12 + 7df5318 commit a06ddb2

File tree

18 files changed

+1253
-1101
lines changed

18 files changed

+1253
-1101
lines changed

Docs/Design for Virtual Filesystem.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -141,22 +141,29 @@ This example has a base package for the Kuju stock stuff, an XTracks package and
141141
...
142142

143143
## Paths and References
144-
Files in a package can contain references to files in the same or other packages. For example:
144+
Files in a package can contain references to files in the same or other packages. For example,
145+
a reference from one OR content package to another:
145146

146-
/OR/SomePackage/Shapes/bungalow.s
147+
/OR/SomePackage/Shapes/bungalow.shape-or
147148

148-
refers to file
149+
which might refer to physical file:
149150

150-
C:\Users\Ryan\Open Rails\SomePackage.zip\SomePackage\Shapes\bungalow.s
151+
C:\Users\Ryan\Open Rails\SomePackage.zip\SomePackage\Shapes\bungalow.shape-or
151152

152-
Files in the MSTS-organised packages can continue to use legacy references such as:
153+
A reference from one MSTS content package to another:
154+
155+
/MSTS/SomePackage/Shapes/bungalow.s
156+
157+
This also works as a reference from an OR content package to an MSTS one.
158+
159+
References from one MSTS content package to another may also use a legacy reference such as:
153160

154161
..\..\SomePackage\Shapes\bungalow.s
155162

156-
but files in the OR-organised packages must start from the /OR root and may not use ".."
163+
but files in the OR content packages must start from the /OR root and may not use ".."
157164

158165

159166
### For OR assets that are inextricably linked with other assets (paths and activities vis-a-vis routes)
160-
An activity must be linked to a route. In OR packages, this will be achieved with a more restrictive reference:
167+
An activity must be linked to a route. In OR packages, this constraint will be achieved with a more restrictive reference, such as:
161168

162169
"Route": "/OR/SomePackage/Routes/SomeRoute.route-or"

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

Source/Locales/Contrib/cs.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ msgstr ""
33
"Project-Id-Version: Contrib\n"
44
"POT-Creation-Date: 2015-10-25 09:17+0100\n"
55
"PO-Revision-Date: 2015-10-25 09:18+0100\n"
6-
"Last-Translator: Altmann <altmann@bk.ru>\n"
6+
"Last-Translator: Howkyn"
77
"Language-Team: \n"
88
"Language: cs\n"
99
"MIME-Version: 1.0\n"
@@ -26,7 +26,7 @@ msgstr "0.1"
2626
#: ../../Contrib/ActivityEditor/ActivityEditor/AboutActEdit.cs:19
2727
#: ../../Contrib/ActivityEditor/ActivityEditor/AboutActEdit.Designer.cs:136
2828
msgid "Copyright by Open Rails project"
29-
msgstr "Chráněno autorským právem Open Rails projektu"
29+
msgstr "Chráněno autorským právem projektu Open Rails"
3030

3131
#: ../../Contrib/ActivityEditor/ActivityEditor/AboutActEdit.cs:20
3232
msgid "OR"

0 commit comments

Comments
 (0)