Skip to content

Commit 8b4f2a5

Browse files
authored
Merge pull request #297 from cjakeman/timetable-window2
Adds a Timetable tab to the map window which is useful for players and timetable creators. https://blueprints.launchpad.net/or/+spec/timetable-window
2 parents af853ea + f8c95d3 commit 8b4f2a5

File tree

16 files changed

+2038
-367
lines changed

16 files changed

+2038
-367
lines changed

Source/Documentation/Manual/appendices.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ The defined ORTS signal types can be set in the signal type definition and used
471471
in the same way as the default MSTS types.
472472

473473
Note that SPEED is a fixed signal type which is available in OR without explicit definition (see below for
474-
details on SPEED type signals). Also note that any type definition starting with OR_” is not valid, these
474+
details on SPEED type signals). Also note that any type definition starting with "OR\_" is not valid, these
475475
names are reserved for future default types in OR.
476476

477477
Syntax:

Source/Documentation/Manual/driving.rst

Lines changed: 97 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -619,8 +619,8 @@ While the activity is running relevant data are stored and displayed.
619619
The stored data are used to generate a report at the end of the activity.
620620

621621

622-
``How it does work``
623-
''''''''''''''''''''
622+
``How It Works``
623+
''''''''''''''''
624624

625625
Activity evaluation is enabled only for Activity mode, and requires the
626626
"Debrief evaluation" checkbox in the main menu window to be enabled.
@@ -672,7 +672,7 @@ Cliking **Actual status: (**\ |darr| **)**\ expanded real-time display appears.
672672

673673

674674

675-
Cliking **Actual status: (**\ |uarr| **)**\ collapses all items.
675+
Clicking **Actual status: (**\ |uarr| **)**\ collapses all items.
676676

677677
Once the activity has ended, the report file is created and a new window displays it.
678678

@@ -708,39 +708,43 @@ In such case the activity saves will have the "Eval" checkbox checked in the res
708708

709709
.. _driving-dispatcher:
710710

711-
Dispatcher Window
712-
=================
711+
Map Window
712+
==========
713+
714+
Use the map window to monitor and control train operation.
715+
The :ref:`Map window <options-map-window>` option must be selected prior to starting the simulation.
713716

714-
The dispatcher window is a very useful tool to monitor and control train
715-
operation. The :ref:`Dispatcher window <options-dispatcher>` option
716-
must be selected.
717-
718-
The dispatcher window is actually created by pressing ``<Ctrl+9>``. The
719-
window is created in a minimized state, so to display it in front of the OR
720-
window you must click on ``<Alt+Tab>`` and select the dispatcher window
721-
icon, or click on one of the OR icons in the taskbar. If you are running OR
722-
in full-screen mode, you must also have the :ref:`Fast full screen Alt+Tab
723-
<options-fullscreen>` option selected to have both the OR and the
724-
dispatcher windows displayed at the same time. After the dispatcher window
725-
has been selected with ``<Alt+Tab>``, successive Alt_Tabs will toggle
726-
between the OR window and the dispatcher window.
717+
The map window is opened and closed by pressing ``<Ctrl+9>``.
718+
After the map window has been selected with ``<Alt+Tab>``, successive
719+
Alt+Tabs will toggle between the OR window and the dispatcher window.
727720

728-
The dispatcher window is resizable and can also be maximized, e.g. on a
729-
second display. You can define the level of zoom either by changing the
730-
value within the ``Res`` box or by using the mouse wheel. You can pan
731-
through the route by moving the mouse while pressing the left button. You
732-
can hold the shift key while clicking the mouse in a place in the map; this
733-
will quickly zoom in with that place in focus. You can hold Ctrl while
734-
clicking the mouse in a place in the map, which will zoom out to show the
735-
whole route. Holding Alt and clicking will zoom out to show part of the
736-
route.
721+
The map window contains 2 tabs: Dispatcher and Timetable. Both provide maps of
722+
the route with each train following its own path.
723+
724+
The map window is resizable and can also be maximized, e.g. on a
725+
second display.
726+
727+
To pan, use the left mouse button to drag the map around.
728+
729+
To zoom, use left and right mouse buttons together and drag vertically
730+
or use the mouse wheel.
731+
732+
To zoom in centred on a location, press Shift and click the left mouse button
733+
at that location.
734+
735+
To zoom out from a location, press Alt and click the left mouse button.
736+
737+
To zoom out fully, press Ctrl and click the left mouse button.
738+
739+
Dispatcher Tab
740+
--------------
737741

738742
.. image:: images/driving-dispatcher.png
739743

740-
The dispatcher window shows the route layout and monitors the movement of
741-
all trains. While the player train is identified by the ``0`` string,
742-
AI trains are identified by
743-
their OR number (that is also shown in the :ref:`Extended HUD for Dispatcher
744+
The dispatcher window shows the route layout, monitors the movement of
745+
all trains and allows you to change switches and signals.
746+
While the player train is identified by the ``0`` label,
747+
AI trains are identified by an Id number (as shown in the :ref:`Extended HUD for Dispatcher
744748
Information <driving-hud-dispatcher>`), followed by the service name.
745749
Static consists are identified as in MSTS.
746750

@@ -807,8 +811,8 @@ will remain centered on that train.
807811

808812
.. _driving-dispatcher-for-ai-trains:
809813

810-
Using dispatcher window for AI trains
811-
-------------------------------------
814+
Using dispatcher tab for AI trains
815+
''''''''''''''''''''''''''''''''''
812816

813817
What is described here is valid only for activity mode and explore in
814818
activity mode.
@@ -822,7 +826,7 @@ re-route it without getting it back on the original route.
822826
It is suggested to look at this video which explains some practical case
823827
https://youtu.be/-f0XVg7bSgU before continuing reading.
824828

825-
To perform this correctly and in a way more similar to reality, some rules have to
829+
To perform this correctly and in a way closer to reality, some rules have to
826830
be followed.
827831
The concept is that switches must be manually thrown only if they aren't reserved by a train.
828832
To be sure of this it is necessary to force to stop the last signal(s) between train(s)
@@ -844,6 +848,63 @@ waiting points in the abandoned part of route will be lost.
844848

845849
The re-routed train may be also the player train (be it autopiloted or not).
846850

851+
Timetable Tab
852+
-------------
853+
854+
This tab shows the same route and trains as the dispatch tab but, with its focus on a timetable
855+
of trains, is provided to assist timetable builders.
856+
857+
In this tab, for clarity, you can use the checkboxes to hide or reveal the labels for platforms,
858+
sidings, switches, signals and trains. The simulation time is also on view.
859+
860+
As shown below, the basic red train label identifies the train.
861+
862+
.. image:: images/timetable_tab1.png
863+
864+
Trains are drawn in green except that locos are drawn in brown. To indicate direction, the leading
865+
vehicle is draw in a lighter shade.
866+
867+
The "Active trains" selection shows trains that are currently delivering a service.
868+
The "All trains" selection also shows inactive and static trains with labels in dark red.
869+
870+
Inactive trains are not part of a current service - i.e. their start time has not been reached or
871+
they have arrived at their destination and not yet been re-formed for another service - see
872+
:ref:`#dispose commands<timetable-dispose>`.
873+
874+
Static trains do not move and are shown in gray. They created with the $static command.
875+
876+
.. raw:: latex
877+
878+
\clearpage
879+
880+
When you select the "Train state" checkbox, the train labels extend to provide key information matching
881+
that from the :ref:`HUD <driving-hud-dispatcher>` as shown below:
882+
883+
.. image:: images/timetable_tab2.png
884+
885+
.. raw:: latex
886+
887+
\clearpage
888+
889+
The path element of the train state can be very lengthy, so this is only shown where the path
890+
contains the characters # & * ^ ~ which indicate :ref:`a track section that is in contention <driving-hud-section-state>`.
891+
892+
In the image below, train 192 crosses the path of train 117.
893+
894+
.. image:: images/timetable_tab3.png
895+
896+
.. raw:: latex
897+
898+
\clearpage
899+
900+
The "Signal state" checkbox reveals the aspect of each signals and also indicates the id number
901+
of the train that is approaching. In this image, signal 462 is showing an APPROACH_1 aspect for train 114.
902+
903+
.. image:: images/timetable_tab4.png
904+
905+
The adjustment for "Daylight offset (hrs)" is provided for convenience to advance the sun as it moves
906+
across the sky so that night time trains can be more easily observed in daylight.
907+
847908
Additional Train Operation Commands
848909
===================================
849910

@@ -2009,6 +2070,8 @@ A detailed explanation of the various columns follows:
20092070
refer to the train numbers as shown at the start of each row. Below,
20102071
<n> indicates such a number.
20112072

2073+
.. _driving-hud-section-state:
2074+
20122075
- <n> section is occupied by train <n>.
20132076
- (<n>) section is reserved for train <n>.
20142077
- # (either with <n> or on its own) section is claimed by a train
2.51 KB
Loading
64.8 KB
Loading
68 KB
Loading
52.3 KB
Loading
58.3 KB
Loading

Source/Documentation/Manual/options.rst

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ sometimes use a view other than the cabview to follow the train, and
3232
therefore will not see the alerter warning, selecting the related option
3333
*Also in external views* enables the alerter in those views as well.
3434

35-
.. _options-dispatcher:
35+
.. _options-map-window:
3636

37-
Dispatcher window
37+
Map window
3838
-----------------
3939

4040
It is suggested to always select this option. When this option is selected,
@@ -45,7 +45,7 @@ option :ref:`Fast fullscreen Alt+Tab <options-fullscreen>`.
4545

4646
Through this window you can monitor train movements and also influence
4747
them, by setting signals and switches. A complete description of the
48-
dispatcher window can be found :ref:`here <driving-dispatcher>`.
48+
dispatcher tab can be found :ref:`here <driving-dispatcher>`.
4949

5050
.. image:: images/options-dispatcher.png
5151

@@ -252,12 +252,14 @@ Fast full-screen Alt+Tab
252252

253253
When this option is selected, and OR is running full-screen, pressing
254254
Alt+Tab leaves OR full-screen and running, and allows the
255-
:ref:`Dispatcher Window <driving-dispatcher>` to be shown in front of it. If this option is not selected, OR is
256-
minimized. The Dispatcher Window :ref:`option <options-dispatcher>` must also be selected and the
257-
Dispatcher Window started with Ctrl+9 to display the Dispatcher Window.
258-
Each successive press of Alt+Tab will toggle between the Dispatcher window
255+
:ref:`Dispatcher Window <driving-dispatcher>` to be shown in front of it.
256+
If this option is not selected, OR is minimized.
257+
Each successive press of Alt+Tab will toggle between the map window
259258
and the OR window.
260259

260+
Note: To display the Map Window, the :ref:`Map window option <options-map-window>`
261+
must also be selected and the Map Window started with Ctrl+9.
262+
261263
Glass on in-game windows
262264
------------------------
263265

Source/Menu/Options.Designer.cs

Lines changed: 25 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Source/Menu/Options.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public OptionsForm(UserSettings settings, UpdateManager updateManager, bool init
140140
checkAlerterExternal.Checked = Settings.Alerter && !Settings.AlerterDisableExternal;
141141
checkSpeedControl.Checked = Settings.SpeedControl;
142142
checkConfirmations.Checked = !Settings.SuppressConfirmations;
143-
checkViewDispatcher.Checked = Settings.ViewDispatcher;
143+
checkViewMapWindow.Checked = Settings.ViewDispatcher;
144144
checkUseLargeAddressAware.Checked = Settings.UseLargeAddressAware;
145145
checkRetainers.Checked = Settings.RetainersOnAllCars;
146146
checkGraduatedRelease.Checked = Settings.GraduatedRelease;
@@ -431,7 +431,7 @@ void buttonOK_Click(object sender, EventArgs e)
431431
Settings.AlerterDisableExternal = !checkAlerterExternal.Checked;
432432
Settings.SpeedControl = checkSpeedControl.Checked;
433433
Settings.SuppressConfirmations = !checkConfirmations.Checked;
434-
Settings.ViewDispatcher = checkViewDispatcher.Checked;
434+
Settings.ViewDispatcher = checkViewMapWindow.Checked;
435435
Settings.UseLargeAddressAware = checkUseLargeAddressAware.Checked;
436436
Settings.RetainersOnAllCars = checkRetainers.Checked;
437437
Settings.GraduatedRelease = checkGraduatedRelease.Checked;

0 commit comments

Comments
 (0)