Skip to content

Commit fd28a41

Browse files
committed
Merge branch 'master' into feature/less-windows-forms
2 parents 6fa5eed + ca63633 commit fd28a41

File tree

189 files changed

+21276
-12766
lines changed

Some content is hidden

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

189 files changed

+21276
-12766
lines changed

Source/ContentChecker/ContentChecker.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFrameworks>
4-
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net472</TargetFrameworks>
3+
<TargetFramework Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFramework>
4+
<TargetFramework Condition="'$(TargetFramework)' == ''">net472</TargetFramework>
55
<OutputType>Exe</OutputType>
66
<IsPublishable>False</IsPublishable>
77
<AssemblyTitle>Open Rails Content Checker</AssemblyTitle>

Source/Contrib/ActivityEditor/ActivityEditor/ActivityEditor.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFrameworks>
4-
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net472</TargetFrameworks>
3+
<TargetFramework Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFramework>
4+
<TargetFramework Condition="'$(TargetFramework)' == ''">net472</TargetFramework>
55
<OutputType>WinExe</OutputType>
66
<AssemblyName>Contrib.ActivityEditor</AssemblyName>
77
<ApplicationIcon>..\..\..\ORTS.ico</ApplicationIcon>

Source/Contrib/ActivityEditor/LibAE/LibAE.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFrameworks>
4-
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net472</TargetFrameworks>
3+
<TargetFramework Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFramework>
4+
<TargetFramework Condition="'$(TargetFramework)' == ''">net472</TargetFramework>
55
<OutputType>Library</OutputType>
66
<AssemblyName>Contrib.LibAE</AssemblyName>
77
<IsPublishable>False</IsPublishable>

Source/Contrib/ContentManager/ContentManager.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFrameworks>
4-
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net472</TargetFrameworks>
3+
<TargetFramework Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFramework>
4+
<TargetFramework Condition="'$(TargetFramework)' == ''">net472</TargetFramework>
55
<OutputType>WinExe</OutputType>
66
<RootNamespace>ORTS.ContentManager</RootNamespace>
77
<AssemblyName>Contrib.ContentManager</AssemblyName>

Source/Contrib/DataCollector/DataCollector.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFrameworks>
4-
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net472</TargetFrameworks>
3+
<TargetFramework Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFramework>
4+
<TargetFramework Condition="'$(TargetFramework)' == ''">net472</TargetFramework>
55
<OutputType>Exe</OutputType>
66
<RootNamespace>ORTS.DataCollector</RootNamespace>
77
<AssemblyName>Contrib.DataCollector</AssemblyName>

Source/Contrib/DataConverter/DataConverter.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFrameworks>
4-
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net472</TargetFrameworks>
3+
<TargetFramework Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFramework>
4+
<TargetFramework Condition="'$(TargetFramework)' == ''">net472</TargetFramework>
55
<OutputType>Exe</OutputType>
66
<RootNamespace>Orts.DataConverter</RootNamespace>
77
<AssemblyName>Contrib.DataConverter</AssemblyName>

Source/Contrib/DataValidator/DataValidator.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFrameworks>
4-
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net472</TargetFrameworks>
3+
<TargetFramework Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFramework>
4+
<TargetFramework Condition="'$(TargetFramework)' == ''">net472</TargetFramework>
55
<OutputType>Exe</OutputType>
66
<AssemblyName>Contrib.DataValidator</AssemblyName>
77
<IsPublishable>False</IsPublishable>

Source/Contrib/SimulatorTester/SimulatorTester.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFrameworks>
4-
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net472</TargetFrameworks>
3+
<TargetFramework Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFramework>
4+
<TargetFramework Condition="'$(TargetFramework)' == ''">net472</TargetFramework>
55
<OutputType>Exe</OutputType>
66
<RootNamespace>Orts.SimulatorTester</RootNamespace>
77
<AssemblyName>Contrib.SimulatorTester</AssemblyName>

Source/Contrib/TrackViewer/Drawing/DrawTerrain.cs

+7-1
Original file line numberDiff line numberDiff line change
@@ -486,8 +486,14 @@ void UpdateCamera(DrawArea drawArea)
486486
float camHeight = width / device.Viewport.AspectRatio / 2;
487487
Vector3 cameraPosition = cameraTarget;
488488
cameraPosition.Y = -camHeight;
489+
float nearPlaneDistance = camHeight / 2;
490+
if (nearPlaneDistance <= 0)
491+
{
492+
// distance is too close for CreatePerspectiveFieldOfView
493+
return;
494+
}
489495
basicEffect.View = Matrix.CreateLookAt(cameraPosition, cameraTarget, new Vector3(0, 0, 1));
490-
basicEffect.Projection = Matrix.CreatePerspectiveFieldOfView(MathHelper.PiOver2, device.Viewport.AspectRatio, camHeight / 2, camHeight * 2);
496+
basicEffect.Projection = Matrix.CreatePerspectiveFieldOfView(MathHelper.PiOver2, device.Viewport.AspectRatio, nearPlaneDistance, camHeight * 2);
491497

492498
}
493499
#endregion

Source/Contrib/TrackViewer/TrackViewer.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFrameworks>
4-
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net472</TargetFrameworks>
3+
<TargetFramework Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFramework>
4+
<TargetFramework Condition="'$(TargetFramework)' == ''">net472</TargetFramework>
55
<OutputType>WinExe</OutputType>
66
<RootNamespace>ORTS.TrackViewer</RootNamespace>
77
<AssemblyName>Contrib.TrackViewer</AssemblyName>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
this empty directory supresses a warning during sphinx build

Source/Documentation/Manual/driving.rst

+97-9
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ can select different views using the keyboard, as described in
3838
:ref:`Changing the View <driving-changing-view>`.
3939

4040
Cab Letter-Boxing
41-
----------------
41+
-----------------
4242

4343
OR manages not only cab interiors using 2D images in a MSTS-compatible
4444
way, but also supports 3D models. Most 2D cab images follow MSTS practice,
@@ -576,6 +576,97 @@ appears on the car's display line until the air pressure has fallen to zero.
576576
More information about manipulating the brakes during coupling and
577577
uncoupling can also be found :ref:`here <driving-hud-brake>`.
578578

579+
.. _train-operations-monitor:
580+
581+
Ctrl-Alt-F9 Train Operations Monitor
582+
------------------------------------
583+
584+
This Open Rails Train Operations window has a vertical view of the entire train:
585+
586+
.. image:: images/TrainCarOperations-01.png
587+
:align: center
588+
:scale: 100%
589+
590+
|
591+
592+
This window shows the whole train in vertical mode. Any car can be selected by clicking on the Car ID.
593+
Two arrows will then appear pointing to the selected car.
594+
595+
By clicking on the selected CarId the "Train Operations Viewer" window will be displayed:
596+
597+
.. image:: images/TrainOperationsViewer-02.png
598+
:align: center
599+
:scale: 100%
600+
601+
|
602+
603+
From the "Train Operations Viewer" window, we can set all the available systems, as in the “Car Operation menu”:
604+
605+
- FrontBrakeHose
606+
- FrontAngleCock
607+
- CouplerFront
608+
- CouplerRear
609+
- RearAngleCock
610+
- RearBrakeHose
611+
- HandBrake
612+
- BleedOffValve
613+
- ToggleElectricTrainSupplyCable
614+
- ToggleMU
615+
- TogglePower
616+
- ToggleBatterySwitch
617+
618+
This is where all the symbols are placed:
619+
620+
.. image:: images/TrainOperationsViewer.png
621+
:align: center
622+
:scale: 100%
623+
624+
|
625+
626+
The red cross on the handbrake symbol (or another), indicates that it is not available.
627+
628+
Any changes made in this window will also appear in the "Train Car Operations" window:
629+
630+
.. image:: images/TrainOperationsViewer-03.png
631+
:align: center
632+
:scale: 100%
633+
634+
|
635+
636+
After a change in the braking system that keeps the train stopped, the CarID changes to a cyan colour.
637+
In this way, it is easy for the user, to find out which car is stopping the train.
638+
639+
A click on the right arrow hides all non-system brake symbols, inside the "Train Car Operations" window:
640+
641+
.. image:: images/TrainCarOperations-04.png
642+
:align: center
643+
:scale: 100%
644+
645+
|
646+
647+
To make the text bold, click the left arrow:
648+
649+
.. image:: images/TrainCarOperations-05.png
650+
:align: center
651+
:scale: 100%
652+
653+
|
654+
655+
While the "Train Operations Viewer" window is visible, we can modify the "Train Car Operations" window,
656+
but if we open the "Train Operations" window <F9> and click on any CarID, the "Car Operation Menu" will
657+
appear and it will point to the previously selected CarID in the "Train Operations Viewer" window.
658+
The "Car Operations Menu" is updated from the "Train Operations Viewer" window.
659+
A click on the CarID in the “Train Operations Viewer” will close the window.
660+
661+
If the train is very long and not all the cars are displayed in the "Train Car Operations" window, we can scroll by clicking on the white down arrow (vertical scroll bar) at the bottom right.
662+
Once the required car has been selected, it will remain visible on the last row:
663+
664+
.. image:: images/TrainCarOperations-06.png
665+
:align: center
666+
:scale: 100%
667+
668+
|
669+
579670
.. _driving-activity:
580671

581672
F10 Activity Monitor
@@ -637,7 +728,7 @@ within the cabview, see :ref:`here <cabs-odometer>`.
637728

638729

639730
Activity Evaluation
640-
------------------
731+
-------------------
641732

642733
``Description``
643734
'''''''''''''''
@@ -710,8 +801,6 @@ This report is made up of several sections.
710801
:scale: 80%
711802
:align: center
712803

713-
.. raw:: latex
714-
715804
The report file OpenRailsEvaluation.txt is saved alongside the log file OpenRailsLog.txt and
716805
the default location for this is the Windows Desktop.
717806

@@ -1262,8 +1351,7 @@ or unloading operation is ongoing.
12621351
Autopilot Mode
12631352
==============
12641353

1265-
When in activity mode or in Explore in activity mode, through this feature
1266-
it is possible to stay
1354+
Through this feature it is possible to stay
12671355
in the cab of the player train, but to let Open Rails move the train,
12681356
respecting path, signals, speeds and station stops.
12691357

@@ -1276,8 +1364,8 @@ but it can also be used to run an activity (or part of it, as it is
12761364
possible to turn autopilot mode on or off at runtime) as a trainspotter or
12771365
a visitor within the cab.
12781366

1279-
Autopilot mode is active only in activity mode (i.e. not in explorer or
1280-
timetable modes).
1367+
Autopilot mode is available in activity, timetable and explore in activity
1368+
mode (i.e. not in explorer mode).
12811369

12821370
When starting the game with any activity, you are in player driving mode.
12831371
If you press Alt+A, you enter the autopilot mode: you are in the loco's
@@ -1300,7 +1388,7 @@ auto mode.
13001388
Station stops, waiting points and reverse points are synchronized as far as
13011389
possible in the two modes.
13021390

1303-
Cars can also be uncoupled in autopilot mode (but check that the train will
1391+
In activity mode cars can also be uncoupled in autopilot mode (but check that the train will
13041392
stop in enough time, otherwise it is better to change to player driven
13051393
mode). A static consist can also be coupled in autopilot mode.
13061394

Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

Source/Documentation/Manual/news.rst

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ What's been added
1515
-----------------
1616

1717
- detailed map which tracks player train
18+
- self-installing content
19+
- new rolling stock lighting controls, including horn-activated flashing lights
1820
- partial turntables
1921
- cab controls operated remotely from a tablet or control desk
2022
- animations for cab windows
@@ -30,6 +32,7 @@ What's been improved
3032
--------------------
3133

3234
- sky, sunrise and sunset appearance
35+
- auto-pilot extended to timetables
3336
- wheelslip, exhaust and steam
3437
- layout of map window
3538
- F9 menu for controlling cars and brakes

Source/Documentation/Manual/options.rst

+9-7
Original file line numberDiff line numberDiff line change
@@ -83,20 +83,22 @@ The player can select the unit of measure of brake pressure in the
8383
When set to *automatic* the unit of measure is the same as that used in
8484
the cabview of the locomotive.
8585

86-
Other units
87-
-----------
86+
Other units of measure
87+
----------------------
8888

8989
This selects the units displayed for length, mass, pressure, etc. in the
9090
:ref:`F5 Train Driving Info Window and also the Alt+F5 HUD <driving-hud>` of the simulation.
9191

92+
These windows use the abbreviations *t-us* for short tons (2000 lb),
93+
*t-uk* for long tons (2240 lb) and *t* for metric tons (1000 kg).
94+
95+
The option *Route* sets the units based on the data in the route files. The route's TRK file may contain ``MilepostUnitsMiles ()`` or
96+
``MilepostUnitsKilometers ()`` to specify the units of distance for this route.
97+
9298
The option *Player's Location* sets the units according to the Windows
9399
*Language and Region* settings on the player's computer.
94100

95-
The option *Route* sets the units based on the data in the route files.
96-
The other options are self-explanatory.
97-
98-
These windows use the abbreviations *t-us* for short tons (2000 lb),
99-
*t-uk* for long tons (2240 lb) and *t* for metric tons (1000 kg).
101+
The other choices for units of measure are straightforward.
100102

101103
Note: The units displayed by the :ref:`F4 Track Monitor <driving-track-monitor>` (e.g. velocity and
102104
distance) are always based on data read from the route files.

Source/Documentation/Manual/software-platform.rst

+5
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,11 @@ If you choose to develop your own pages, please consider sharing them with the O
159159
160160
.. image:: images/switch-panel.png
161161

162+
- The Train Car Operations page has the same functionality as the :ref:`Ctrl-Alt-F9 Train Operations Monitor <train-operations-monitor>`.
163+
Advantage of having this windows as a web page is that it can be shown outside the Open Rails main window.
164+
Even on another display like for instance a tablet. It has more or less the same functionality, more details
165+
to be found :ref:`here <train-operations-monitor>`.
166+
162167
.. _web-server-api:
163168

164169
Application Programming Interfaces (APIs)

0 commit comments

Comments
 (0)