Skip to content

Commit 39a9fa4

Browse files
committed
Merge remote-tracking branch 'upstream/master' into pr/890
2 parents a229f1b + d279e38 commit 39a9fa4

File tree

331 files changed

+9078
-9991
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

331 files changed

+9078
-9991
lines changed

Build.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ IF "%Mode%" == "Stable" (
163163
REM Create binary and source zips.
164164
CALL :delete "OpenRails-%Mode%*.zip" || GOTO :error
165165
PUSHD "Program" && 7za.exe a -r -tzip -x^^!*.xml "..\OpenRails-%Mode%.zip" . && POPD || GOTO :error
166-
7za.exe a -r -tzip -x^^!.* -x^^!obj -x^^!lib -x^^!_build -x^^!*.bak -x^^!Website "OpenRails-%Mode%-Source.zip" "Source" || GOTO :error
166+
7za.exe a -r -tzip -x^^!.* -x^^!obj -x^^!lib -x^^!_build -x^^!*.bak "OpenRails-%Mode%-Source.zip" "Source" || GOTO :error
167167

168168
ENDLOCAL
169169
GOTO :EOF

Docs/Contributing.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,22 @@ You are free to make any modifications to the Open Rails code that you like; tha
2020

2121
In most cases, you can get started immediately with making the changes and creating a pull request. We do ask for some additional steps to be taken for some bugs and all new features, but they can come before or after the pull request. Please feel free to share ideas and proposals as pull requests!
2222

23-
**Note:** You must start your work from the "master" branch and merged pull requests back into the "master" branch, unless we direct you otherwise.
23+
**Note:** You must fork the Open Rails repository before you start working on it. We do not allow you to push branches to the official repository.
24+
25+
**Note:** You should do your work on separate branches; they must be created from the "master" branch and pull requests must merge back into the "master" branch, unless we direct you otherwise.
2426

2527
### Documentation and translations
2628

2729
If you'd like to improve the [documentation](./), [manual](../Source/Documentation/Manual), or [translations](../Source/Locales) you can get started immediately.
2830

2931
There are no requirements for the pull request.
3032

33+
### Contributed projects
34+
35+
If you'd like to improve the [contributed projects](../Source/Contrib) you can get started immediately.
36+
37+
There are no requirements for the pull request.
38+
3139
### Bug process
3240

3341
If you'd like to fix a bug, you can get started immediately. If the fix turns out to be very small, you do not even need a bug report. Otherwise, you will need to make sure it has been reported on [our bug tracker on Launchpad](https://bugs.launchpad.net/or). If it has not, you can report the bug *and* fix it!
@@ -154,7 +162,7 @@ When we start preparing for a new Stable Version, all code in the Testing Versio
154162

155163
### Submitting your code
156164

157-
When you're done writing code, you should make a pull request on GitHub. The title and description of the requests should concisely indicate what bug or feature you've implemented and you will need to include links to whichever of the following are appropriate:
165+
When you're done writing code, you should make a pull request on GitHub from your fork's branch back to the official repository's "master" branch. The title and description of the requests should concisely indicate what bug or feature you've implemented and you will need to include links to whichever of the following are appropriate:
158166

159167
* Bug report
160168
* Road-map card

Docs/Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Open Rails is a free train simulator supporting the world's largest range of dig
1010
## Documentation
1111

1212
* [Read the FAQ](http://www.openrails.org/learn/faq/?utm_campaign=documentation&utm_source=readme&utm_medium=referral)
13-
* [Read the manual online](https://open-rails.readthedocs.io/en/1.3.1/) or the PDF included with the program, found in the main menu under "Documents"
13+
* [Read the manual online](https://open-rails.readthedocs.io/en/latest/) or the PDF included with the program, found in the main menu under "Documents"
1414
* [Get additional materials, including tutorials, from our website](http://www.openrails.org/learn/manual-and-tutorials/?utm_campaign=documentation&utm_source=readme&utm_medium=referral)
1515
* [Read more about the project on our website](http://www.openrails.org/discover/open-rails/?utm_campaign=documentation&utm_source=readme&utm_medium=referral)
1616

Source/Documentation/Manual/appendices.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ Voltage volt V
5858
Mass Flow g/h
5959
\ kg/h
6060
\ lb/h lb/h lb/h
61+
Volumetric Flow m^3/s air flow m^3/s
62+
meters
63+
\ ft^3/min
64+
\ L/min
65+
\ L/s
6166
Speed m/s other m/s m/s meter per second
6267
\ km/h
6368
\ kph kph kilometer per hour
@@ -123,7 +128,8 @@ The following folders are also written to by Open Rails.
123128
Save images AppData\\Roaming\\Open Rails\\shunt_1 2021-07-18 19.46.35.png
124129
Replays AppData\\Roaming\\Open Rails\\shunt_1 2021-07-18 19.46.35.replay
125130
Evaluations AppData\\Roaming\\Open Rails\\shunt_1 2021-07-18 19.46.35.dbfeval
126-
Loading progress bar AppData\\Roaming\\Open Rails\\Load Cache\\3cd9... ...0ce2.dat
131+
Loading progress bar AppData\\Roaming\\Open Rails\\Cache\\Load\\3cd9... ...0ce2.cache-or
132+
Timetable path files AppData\\Roaming\\Open Rails\\Cache\\Path\\4ae2... ...4132.cache-or
127133
==================== ========================================================================================
128134

129135

Source/Documentation/Manual/cabs.rst

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,37 @@ An example of implementation of the above controls in a .cvf file follows::
679679
)
680680

681681

682+
Air Flow Meter
683+
--------------
684+
685+
.. index::
686+
single: ORTS_AIR_FLOW_METER
687+
688+
This cabview control is used on some locomotives, particularly in North America, to show the
689+
volumetric flow rate of air moving from the main res to the brake pipe during release/recharge.
690+
Such an indication can be used to determine when brake pipe charging is complete,
691+
measure the amount of brake pipe leakage, and so on.
692+
The control will only function on locomotives with air brakes.
693+
694+
Here is an example implementation of ORTS_AIR_FLOW_METER as an analog dial::
695+
696+
697+
Dial (
698+
Type ( ORTS_AIR_FLOW_METER DIAL )
699+
Position ( 258 271 1 32 )
700+
Graphic ( "white_needle.ace" )
701+
Style ( NEEDLE )
702+
ScaleRange ( 0 150 )
703+
ScalePos ( 295 65 )
704+
Units ( CUBIC_FT_MIN )
705+
Pivot ( 24 )
706+
DirIncrease ( 0 )
707+
)
708+
709+
Applicable user-defined units are CUBIC_FT_MIN, LITERS_S, LITERS_MIN, and CUBIC_M_S. Cubic meters per
710+
second will be used if no units are specified.
711+
712+
682713
Animated 2D Wipers
683714
------------------
684715

@@ -819,6 +850,8 @@ and the mirrors.
819850
The control blocks are like the one shown for the cab light. The Type strings
820851
are ORTS_LEFTDOOR, ORTS_RIGHTDOOR and ORTS_MIRRORS.
821852

853+
Animation for 2D cab windows is described :ref:`here <features-windows>` .
854+
822855
.. _cabs-generic-items:
823856

824857
Cab controls for generic items
@@ -1025,6 +1058,7 @@ Rotation may be applied, with the same syntax, also to DigitalClock cab controls
10251058

10261059
Display and animation of cabview controls in side views of 2D cabs
10271060
------------------------------------------------------------------
1061+
.. _cabs-side-views:
10281062

10291063
This is possible adding after the CabViewControls ( ) compound block an
10301064
ORTSCabviewControls ( ) compound block, that has the same format as the
@@ -1154,6 +1188,40 @@ Development Rules
11541188
StartDirection ( 12 0 0 )
11551189
)
11561190

1191+
- If also a rear cab is present, a second ``ORTS3DCab`` has to be added,
1192+
as follows::
1193+
1194+
ORTS3DCab(
1195+
ORTS3DCabFile ( Cab.s )
1196+
ORTS3DCabHeadPos ( 0.9 2.4 5.2 )
1197+
RotationLimit ( 40 60 0 )
1198+
StartDirection ( 12 180 0 )
1199+
)
1200+
1201+
- Alternate 3D cab viewpoints may be added, as in the example here below::
1202+
1203+
ORTSAlternate3DCabViewPoints
1204+
(
1205+
ORTSAlternate3DCabViewPoint(
1206+
ORTS3DCabFile ( Cab.s )
1207+
ORTS3DCabHeadPos ( 0.9 2.4 5.2 )
1208+
RotationLimit ( 40 60 0 )
1209+
StartDirection ( 12 0 0 )
1210+
)
1211+
ORTSAlternate3DCabViewPoint(
1212+
ORTS3DCabFile ( Cab.s )
1213+
ORTS3DCabHeadPos ( -0.8 2.4 5.2 )
1214+
RotationLimit ( 40 60 0 )
1215+
StartDirection ( 12 30 0 )
1216+
)
1217+
)
1218+
1219+
1220+
- To switch between alternate cab viewpoints ``Ctrl-Shift-1`` must be pressed.
1221+
If there aren't alternate viewpoints defined, and if there is no rear cab,
1222+
pressing ``Ctrl-Shift-1`` toggles between the base viewpoint and a symmetrical
1223+
one on the longitudinal axis.
1224+
11571225
.. index::
11581226
single: EXTERNALWIPERS
11591227
single: AMMETER
@@ -1177,6 +1245,7 @@ Development Rules
11771245
font. If no ace is specified, the default will be used.
11781246
- Mirrors and doors can be operated from 3D cabs. The names used are
11791247
``LEFTDOOR``, ``RIGHTDOOR`` and ``MIRRORS``.
1248+
- Animation for 3D cab windows is described :ref:`here <features-windows>` .
11801249
- like the 2D cabs, also 3D cabs can have a night version. Night textures, named like the
11811250
corresponding day textures, must be located within a ``NIGHT`` subfolder of the
11821251
``CABVIEW3D`` folder. To enable night cabs an ``.sd`` file with the same name as the

Source/Documentation/Manual/driving.rst

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -537,13 +537,16 @@ By clicking in this menu it is possible:
537537
for both electric and diesel locomotives;
538538
- to connect or disconnect locomotive operation with that of the player
539539
locomotive;
540-
- to connect or disconnect the car's air hoses from the rest of the consist;
541-
- to toggle the angle cocks on the air hoses at either end of the car
542-
between open and closed;
543-
- to toggle the bleed valve on the car to vent the air pressure from the
540+
- enable or disable the battery switch;
541+
- to connect or disconnect the Electric Train Supply;
542+
- to connect or disconnect the car's brake hoses from the rest of the consist;
543+
- to open or close the angle cocks on the air hoses at either end of the car;
544+
- to open or close the bleed valve on the car to vent the air pressure from the
544545
car's reservoir and release the air brakes to move the car without brakes
545546
(e.g. humping, etc.).
546547

548+
Grayed out choices are not applicable for the chosen car.
549+
547550
By toggling the angle cocks on individual cars it is possible to close
548551
selected angle cocks of the air hoses so that when the cars are uncoupled,
549552
the air pressure in the remaining consist (and optionally in the uncoupled
@@ -764,7 +767,9 @@ The following information is displayed in the basic display:
764767
Train brake HUD line has two Brake Reservoir pressure numbers: the first is
765768
the Equalization Reservoir (EQ) and the second is the Brake Cylinder (BC)
766769
pressure. The two BP numbers report the brake pressure in the lead engine
767-
and in the last car of the train. The unit of measure used for brake
770+
and in the last car of the train. Additionally, the brake flow is shown,
771+
which measures the rate of air flowing into the brake pipe during release
772+
and recharge. The unit of measure used for brake
768773
pressure is defined by the option :ref:`Pressure unit <options-pressure>`.
769774
- Engine Brake = percentage of independent engine brake. Not fully
770775
releasing the engine brake will affect train brake pressures.
@@ -1088,10 +1093,24 @@ More information on connecting brakes and manipulating the brake hose
10881093
connections can be found :ref:`here <physics-hud-brake>` and
10891094
:ref:`here <driving-car-operations>`.
10901095

1091-
Doors and Mirror Commands
1092-
-------------------------
1093-
1094-
Note that the standard keys in OR for these commands are different from
1096+
Doors, Mirror and Windows Commands
1097+
----------------------------------
1098+
.. _driving-anim-commands:
1099+
1100+
Note that these commands are active only if the trainset is equipped with
1101+
the related animations.
1102+
1103+
=================== =====================================
1104+
Command Function
1105+
=================== =====================================
1106+
``<Q>`` Door left open/close
1107+
``<Shift+Q>`` Door right open/close
1108+
``<Shift+V>`` Mirror rotate clock/counterclockwise
1109+
``<Ctrl+Q>`` Window left open/close
1110+
``<Ctrl+Shift+Q>`` Window right open/close
1111+
=================== =====================================
1112+
1113+
Note that the standard keys for doors and mirror in OR are different from
10951114
those of MSTS.
10961115

10971116
Wheelslip Reset

0 commit comments

Comments
 (0)