Skip to content

Commit 6399647

Browse files
author
Chris Jakeman
committed
Merge remote-tracking branch 'upstream/master' into webserver-time
2 parents ec62bce + f793f15 commit 6399647

Some content is hidden

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

75 files changed

+6714
-3229
lines changed

.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,20 @@
1616
/Source/Help
1717
/Source/Locales/**/*.bak
1818

19+
## Ignore Visual Studio Code configuration files.
20+
##
21+
## Get latest from https://github.com/github/gitignore/blob/master/Global/VisualStudioCode.gitignore
22+
23+
.vscode/*
24+
!.vscode/settings.json
25+
!.vscode/tasks.json
26+
!.vscode/launch.json
27+
!.vscode/extensions.json
28+
*.code-workspace
29+
30+
# Local History for Visual Studio Code
31+
.history/
32+
1933
## Ignore Visual Studio temporary files, build results, and
2034
## files generated by popular Visual Studio add-ons.
2135
##

Source/Documentation/Manual/cabs.rst

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -266,15 +266,18 @@ Further OR cab controls
266266
-----------------------
267267

268268
OR supports the cabview control to open/close the left doors, the right doors
269-
and the mirrors.
269+
and the mirrors. Moreover it supports the controls for the battery state and for
270+
the key state; these two controls have no effect on the state of the locomotive.
270271

271272
.. index::
272273
single: ORTS_LEFTDOOR
273274
single: ORTS_RIGHTDOOR
274275
single: ORTS_MIRRORS
276+
single: ORTS_BATTERY
277+
single: ORTS_POWERKEY
275278

276279
The control blocks are like the one shown for the cab light. The Type strings
277-
are ORTS_LEFTDOOR, ORTS_RIGHTDOOR and ORTS_MIRRORS.
280+
are ORTS_LEFTDOOR, ORTS_RIGHTDOOR, ORTS_MIRRORS, ORTS_BATTERY and ORTS_POWERKEY.
278281

279282

280283
High-resolution Cab Backgrounds and Controls
@@ -411,28 +414,38 @@ Note that you cannot use the MS Cabview editor on the .cvf file after having
411414
inserted these optional lines, because the editor will delete these added
412415
lines when the file is saved.
413416

414-
Rotation of Digital controls
415-
----------------------------
417+
Rotation of Gauges and Digital controls
418+
---------------------------------------
416419

417420
.. index::
418421
single: ORTSAngle
419422

420423
One of the drawbacks of rendering a cabview in 2D is that some parts of it
421-
are not shown with a frontal, horizontal, view. Displaying a horizontal digital
422-
control on it generates an unrealistc effect. This is the rationale of following
423-
entry, to be added within a Digital cabview control block in the .cvf file::
424+
are not shown with a frontal, precisely vertical or horizontal, view.
425+
Displaying a vertical gauge or a horizontal digital control on it generates an
426+
unrealistic effect. This is the rationale of following entry, to be added
427+
within a Gauge or Digital cabview control block in the .cvf file::
424428

425429
ORTSAngle ( 5 )
426430

427431
The number in parenthesis is the angle in degrees with respect to the horizontal
428-
(positive for counterclockwise rotation).
432+
(or to the vertical for vertical gauges). Positive values produce
433+
counterclockwise rotation.
434+
435+
At the left of the picture an example of a white vertical gauge that has been rotated
436+
by 12 degrees
437+
438+
.. image:: images/cabs-gauges-rotation.png
429439

430440
Here an example of a red max speed indication that has been rotated by 5 degrees
431441

432442
.. image:: images/cabs-digitals-rotation.png
433443

444+
Gauges may have Style POINTER or SOLID.
445+
434446
Rotation may be applied, with the same syntax, also to DigitalClock cab controls.
435447

448+
436449
3D cabs
437450
=======
438451

Source/Documentation/Manual/features-rollingstock.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,6 @@ the trainset is at the pickup/unloader location.
265265
Static OR Freightanims
266266
''''''''''''''''''''''
267267

268-
Only the two general parameters shown below are used for static OR freightanims::
269-
270268
.. index::
271269
single: MSTSFreightAnimEnabled
272270
single: WagonEmptyWeight
@@ -278,6 +276,8 @@ Only the two general parameters shown below are used for static OR freightanims:
278276
single: Flip
279277
single: Visibility
280278

279+
Only the two general parameters shown below are used for static OR freightanims::
280+
281281
MSTSFreightAnimEnabled (0)
282282
WagonEmptyWeight(22t)
283283

87.7 KB
Loading
409 KB
Loading
367 KB
Loading
113 KB
Loading

Source/Documentation/Manual/intro.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ others. The software is published so that the user community can
5959
understand how the software functions to facilitate feedback and to
6060
improve the capabilities of Open Rails software.
6161

62-
Open Rails is published under the GPL license which is "copyleft"[1] to ensure
62+
Open Rails is published under the GPL license which is "copyleft"[1]_ to ensure
6363
that the source code always remains publicly available.
6464

65-
.. [1] http://www.gnu.org/copyleft//
65+
.. [1] https://gnu.org/copyleft
6666
6767
.. _intro-MSTSneeded:
6868

Source/Documentation/Manual/operation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ how to modify these two files is contained in the Word document
10151015
edited with a Unicode text editor.
10161016

10171017
Additionally, a C# scripting interface is available to complement
1018-
the ``sigscr.dat```file for more complex systems.
1018+
the ``sigscr.dat``` file for more complex systems.
10191019

10201020
SignalNumClearAhead
10211021
-------------------

Source/Documentation/Manual/options.rst

Lines changed: 30 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -172,42 +172,27 @@ Enable web server
172172
-----------------
173173

174174
This option enables an internal web server that can be used to display game and
175-
train status information in a browser, intended for use on secondary screens.
176-
When activated, the server can be accessed (on the local machine only) at
175+
train status information in a web browser, intended for use on secondary screens.
176+
177+
When activated, the server can be accessed from a browser on the local machine at
177178
``http://localhost:<port>``, where ``<port>`` is the specified port number.
178179

179-
.. admonition:: For core developers
180-
181-
The web server serves content out of the ``Content\Web`` subfolder of the OR
182-
program folder; it features a simple API to obtain data from the simulator.
183-
Responses are OR data structures
184-
`serialized <https://www.newtonsoft.com/json/help/html/T_Newtonsoft_Json_JsonConvert.htm>`_
185-
in JSON format. API call paths are case-sensitive.
186-
187-
.. list-table::
188-
:widths: 15 15 35 35
189-
:header-rows: 1
190-
191-
* - Method
192-
- API call
193-
- Description
194-
- Response type
195-
* - GET
196-
- ``/API/HUD/<n>``
197-
- | Retrieves the information rendered on the ``<F5>`` HUD, row by row,
198-
| page by page, where ``<n>`` is the desired HUD page number.
199-
- Orts.Viewer3D.WebServices.WebServer.ORTSApiController.HudApiArray
200-
* - GET
201-
- | ``/API/TRAINMONITOR``
202-
| or ``/API/TRAININFO``
203-
- | Retrieves information rendered on the Track Monitor, such as speed,
204-
| acceleration, grade, and upcoming hazards.
205-
- Orts.Simulation.Physics.Train.TrainInfo
206-
* - GET
207-
- ``/API/APISAMPLE``
208-
- | A test object that demonstrates the JSON serialization of various
209-
| data types.
210-
- Orts.Viewer3D.WebServices.WebServer.ORTSApiController.ApiSampleData
180+
If you `open
181+
<https://www.howtogeek.com/394735/how-do-i-open-a-port-on-windows-firewall/>`_
182+
the web server port (just granting RunActivity.exe an exemption is not
183+
sufficient) in Windows Firewall, the server can also be accessed from a device
184+
on the local network, such as a smartphone, tablet or another PC, using your
185+
system's `IP address
186+
<https://support.microsoft.com/en-us/windows/find-your-ip-address-f21a9bbc-c582-55cd-35e0-73431160a1b9>`_.
187+
E.g.: If your Open Rails PC is at IP address 192.168.0.99, browse to
188+
``http://192.168.0.99:<port>``, where ``<port>`` is the specified port number.
189+
190+
:ref:`Sample web pages <sample-web-pages>` are included in the Open Rails
191+
installation and the browser will show a menu of sample pages.
192+
193+
As well as a web browser, data from the web server can also be fetched by any
194+
program which can make a web request, such as C# or Python, using the
195+
:ref:`Application Programming Interface <web-server-api>` (API).
211196

212197
Overspeed Monitor
213198
-----------------
@@ -382,6 +367,17 @@ Ambient daylight brightness
382367

383368
With this slider you can set the daylight brightness.
384369

370+
Anti-aliasing
371+
-------------
372+
373+
Controls the anti-aliasing method used by Open Rails. Anti-aliasing is a
374+
computer graphics technique that smooths any harsh edges, otherwise known as
375+
"jaggies," present in the video image. Currently, Open Rails only supports the
376+
multisample anti-aliasing (MSAA) method. Higher applications of anti-aliasing
377+
will require exponentially more graphics computing power.
378+
379+
The default setting is MSAA with 2x sampling.
380+
385381
.. _options-simulation:
386382

387383
Simulation Options

0 commit comments

Comments
 (0)