Skip to content

Commit 5d0be40

Browse files
author
Chris Jakeman
committed
Merge remote-tracking branch 'upstream/master' into menu-options07a
2 parents 1ed5602 + c204d0a commit 5d0be40

File tree

80 files changed

+7122
-2863
lines changed

Some content is hidden

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

80 files changed

+7122
-2863
lines changed

Source/Contrib/SimulatorTester/Program.cs

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
using System.IO;
2424
using System.Windows.Forms;
2525
using Orts.Common;
26+
using System.Diagnostics;
2627

2728
namespace SimulatorTester
2829
{
@@ -31,9 +32,35 @@ internal class Program
3132
static void Main(string[] args)
3233
{
3334
var options = args.Where(a => a.StartsWith("-") || a.StartsWith("/")).Select(a => a.Substring(1));
34-
var files = args.Where(a => !a.StartsWith("-") && !a.StartsWith("/"));
35+
var files = args.Where(a => !a.StartsWith("-") && !a.StartsWith("/")).ToList();
3536
var settings = new UserSettings(options);
3637

38+
if (files.Count != 1 || options.Contains("help", StringComparer.InvariantCultureIgnoreCase))
39+
{
40+
var version = FileVersionInfo.GetVersionInfo(Application.ExecutablePath);
41+
Console.WriteLine("{0} {1}", version.FileDescription, VersionInfo.VersionOrBuild);
42+
Console.WriteLine();
43+
Console.WriteLine("Usage:");
44+
Console.WriteLine(" {0} [options] <save-file>", Path.GetFileNameWithoutExtension(Application.ExecutablePath));
45+
Console.WriteLine();
46+
Console.WriteLine("Options:");
47+
Console.WriteLine(" <save-file> {0} save file to use", Application.ProductName);
48+
Console.WriteLine(" /quiet Do not show summary of simulation (only exit code is set)");
49+
Console.WriteLine(" /verbose Show version and settings (similar to a {0} log)", Application.ProductName);
50+
Console.WriteLine(" /fps <fps> Set the simulation frame-rate [default: 10]");
51+
Console.WriteLine(" /help Show help and usage information");
52+
Console.WriteLine(" ...and any standard {0} option", Application.ProductName);
53+
Console.WriteLine();
54+
Console.WriteLine("The {0} takes a save file and:", version.FileDescription);
55+
Console.WriteLine(" - Loads the same activity as contained in the save file");
56+
Console.WriteLine(" - Runs the simulation at the specified FPS for the same duration as the save file");
57+
Console.WriteLine(" - Compares the final position with that contained in the save file");
58+
Console.WriteLine();
59+
Console.WriteLine("The exit code is set to the distance from the target in meters");
60+
Console.WriteLine();
61+
return;
62+
}
63+
3764
if (settings.Verbose)
3865
{
3966
Console.WriteLine("This is a log file for {0}. Please include this file in bug reports.", Application.ProductName);
@@ -53,7 +80,7 @@ static void Main(string[] args)
5380
LogSeparator();
5481
}
5582

56-
var saveFile = files.First();
83+
var saveFile = files[0];
5784
using (BinaryReader inf = new BinaryReader(new FileStream(saveFile, FileMode.Open, FileAccess.Read)))
5885
{
5986
var cts = new CancellationTokenSource(() => { });

Source/Documentation/Manual/driving.rst

Lines changed: 46 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ tank, then the refilling takes place as the key is held down. If the
170170
locomotive is further away, then the distance to the nearest pickup is
171171
shown instead.
172172

173-
Note also that the key ``<Shift+T>`` will provide immediate refill
173+
Note also that the key ``<Ctrl+T>`` will provide immediate refill
174174
at any time.
175175

176176
Specific Features to Optimize Locomotive Driving
@@ -633,7 +633,7 @@ within the cabview, see :ref:`here <cabs-odometer>`.
633633
.. _debriefeval:
634634

635635

636-
Debrief Evaluation
636+
Activity Evaluation
637637
------------------
638638

639639
``Description``
@@ -643,15 +643,14 @@ This feature displays a real-time evaluation of the player's performance
643643
during the activity run and a final report at the end of an activity.
644644
The evaluation reports various parameters to provide to the player info in order
645645
to improve his train driving ability.
646-
While the activity is running relevant data are stored and displayed.
647-
The stored data are used to generate a report at the end of the activity.
646+
While the activity is running, relevant data are stored and displayed.
647+
The stored data is used to generate a report at the end of the activity.
648648

649649

650650
``How It Works``
651651
''''''''''''''''
652652

653-
Activity evaluation is enabled only for Activity mode, and requires the
654-
"Debrief evaluation" checkbox in the main menu window to be enabled.
653+
Activity evaluation is enabled only for Activity mode.
655654
Checking some checkboxes within the various option tabs of the main menu
656655
provides additional parameters for the activity evaluation.
657656

@@ -664,23 +663,11 @@ and here an example about the Options/Simulation tab:
664663
.. image:: images/dbfeval-options-simulation.png
665664

666665
Checkboxes shown as unchecked in the two above pictures may be checked or
667-
unchecked, but don't have effect to activity evaluation.
666+
unchecked, but don't have any effect on activity evaluation.
668667

669668
A tab named "Evaluation" is present on the F1 Help Information Monitor.
670669
Once the activity is running it displays dynamic information about the player
671670
train performance up to that moment.
672-
673-
If the "Debrief evaluation" checkbox is unchecked, a message reminds this.
674-
675-
676-
677-
.. image:: images/dbfeval-evaluation-unchecked.png
678-
:scale: 100%
679-
:align: center
680-
681-
682-
In case that Debrief evaluation was checked, **Actual status: (**\ |darr| **)**\ , is displayed.
683-
684671

685672

686673
.. image:: images/dbfeval-evaluation-ini.png
@@ -691,7 +678,7 @@ In case that Debrief evaluation was checked, **Actual status: (**\ |darr| **)**\
691678

692679
\newpage
693680

694-
Clicking **Actual status: (**\ |darr| **)**\ expanded real-time display appears.
681+
Clicking **Actual status: (**\ |darr| **)**\ shows an expanded real-time display.
695682

696683

697684
.. image:: images/dbfeval-evaluation-expanded.png
@@ -702,8 +689,6 @@ Clicking **Actual status: (**\ |darr| **)**\ expanded real-time display appears
702689

703690
Clicking **Actual status: (**\ |uarr| **)**\ collapses all items.
704691

705-
Once the activity has ended, the report file is created and a new window displays it.
706-
707692
.. image:: images/dbfeval-evaluation-ended.png
708693
:scale: 100%
709694
:align: center
@@ -713,6 +698,9 @@ Once the activity has ended, the report file is created and a new window display
713698

714699
\newpage
715700

701+
Once the activity has ended, as soon as the player views the Evaluation tab, a report file is
702+
created and shown in an editor window as follows.
703+
716704
This report is made up of several sections.
717705

718706
.. image:: images/dbfeval-report.png
@@ -721,15 +709,12 @@ This report is made up of several sections.
721709

722710
.. raw:: latex
723711

724-
\newpage
712+
The report file OpenRailsEvaluation.txt is saved alongside the log file OpenRailsLog.txt and
713+
the default location for this is the Windows Desktop.
725714

726-
Activity saves (F2) will save also the evaluation data, if the "Debrief evaluation"
727-
checkbox was checked.
728-
In such case the activity saves will have the "Eval" checkbox checked in the resume window.
715+
The Save Game (F2) command also copies any evaluation report alongside the save files so it can be
716+
kept and reviewed. This copy is deleted when the other files for that save are deleted.
729717

730-
.. image:: images/dbfeval-resume.png
731-
:scale: 100%
732-
:align: center
733718

734719
.. _driving-hud:
735720

@@ -1224,6 +1209,38 @@ and the wagon can be rotated or translated.
12241209
It is suggested to read also :ref:`this paragraph <features-route-turntable-operation>`
12251210
to better understand what is possible with turntables and transfertables.
12261211

1212+
.. _driving-containers:
1213+
1214+
Loading and Unloading Containers
1215+
================================
1216+
1217+
Provided that the wagons and the container cranes in the route fulfill the rules indicated
1218+
:ref:`here<features-containers>`, containers can be unloaded and loaded on wagons at
1219+
locations where a container crane is present.
1220+
1221+
.. image:: images/driving-containers.png
1222+
1223+
The loading and unloading operations are started by the player, by pressing the key ``<T>``
1224+
for loading, and the key ``<Shift-T>`` . The operation is performed on the first wagon
1225+
(starting from the locomotive) which is within the container crane displacement range and which
1226+
fulfills the required conditions (e.g. loading space available for loading, container present
1227+
for unloading). So, if a train has only empty wagons and the locomotive is within the container
1228+
crane displacement range, the first wagon is loaded first, then the second and so on up to the
1229+
last wagon within the crane displacement range. At that point, if there are further
1230+
wagons to be loaded, the train must be moved forward so that a new group of wagons is within
1231+
the crane displacement range, and Load operations can be resumed.
1232+
1233+
Every keypress loads or unloads a single wagon.
1234+
1235+
In some cases it can occur that during a load operation the crane stops motion and the following
1236+
message appears on the display: ``"Wagon out of range: move wagon towards crane by {0} metres"``;
1237+
this occurs when the wagon is at the boundary of the crane displacement range; the player must
1238+
move the wagon towards the inside of the crane displacement range and stop the train. The crane
1239+
will then continue its loading mission up to the end.
1240+
1241+
Saves (key ``<F2>``) are rejected and a message appears on the display when a loading
1242+
or unloading operation is ongoing.
1243+
12271244
.. _driving-autopilot:
12281245

12291246
Autopilot Mode

0 commit comments

Comments
 (0)