Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
2e08def
New: Initial MSTS consist parser
leezer3 Oct 31, 2025
1c6db53
Hook in bell, horn and headlights
leezer3 Mar 10, 2025
b23682f
Start to hook in diesel simulation to MSTS properties
leezer3 Nov 7, 2025
0e9569e
Read application / release rate from ENG
leezer3 Mar 26, 2025
975da83
Hook in MaxVelocity and AntiSlip
leezer3 Mar 31, 2025
1df1254
Implement basic electric engine
leezer3 Oct 31, 2025
30c115f
Add some minor bits
leezer3 Mar 31, 2025
72255ac
Start to parse safety systems from ENG
leezer3 Mar 31, 2025
f9643ed
More work
leezer3 Mar 31, 2025
8a8f1b1
New: Create variable handle type, implement MSTS per notch figures
leezer3 Apr 2, 2025
aa05e95
More WIP
leezer3 Apr 3, 2025
07d5590
Fix rotation glitch, animate pantographs
leezer3 Apr 3, 2025
a9bf729
More fixes to MSTS vehicle parser
leezer3 Apr 7, 2025
889b308
Implement FreightAnim
leezer3 Apr 9, 2025
e5001e4
Ignore sound file validation for trigger of -1
leezer3 Apr 9, 2025
59f47fb
Start to implement SoundStreams
leezer3 Oct 31, 2025
647b3a5
Basic implementation of view based sounds
leezer3 Apr 16, 2025
ed10c5b
Correct dials with anti-clockwise rotation
leezer3 Apr 17, 2025
f8cedb9
Add PantographState instruction
leezer3 Apr 17, 2025
1593ff4
Fix for incorrectly set rear axle properties
leezer3 Apr 28, 2025
494a3ef
Hook in smoke generator
leezer3 Oct 31, 2025
6954a3b
Implementation of digital number displays and FrameMapping
leezer3 Apr 20, 2025
351f6b1
Fix: Issues for MSTS content using AI
leezer3 May 1, 2025
2048498
Fix Variable2 controlled sounds in electric traction
leezer3 May 6, 2025
dd2361e
Add comments and headers to some new files
leezer3 Apr 17, 2025
ab4a6c9
Better handling for multiple SMS files per vehicle
leezer3 May 7, 2025
741d210
Implement CabSignal, Overspeed and EmergencyBrake displays
leezer3 May 8, 2025
aff286d
Pantograph, headout and wipers work
leezer3 May 7, 2025
58b3aa9
Brake system fix
leezer3 Jul 21, 2025
de36b84
Improve handling of dummy handles in ENG files
leezer3 Jul 24, 2025
949588d
Update CVF parser units
leezer3 Jul 24, 2025
d3b5490
Load gearbox related properties
leezer3 Oct 31, 2025
2f5108e
More sound trigger implementation
leezer3 Aug 1, 2025
0d3e901
Implement sanders from ENG
leezer3 Sep 15, 2025
293779b
Fix: Don't crash with non-existant consist file
leezer3 Sep 15, 2025
d408272
Basic implementation of combined handle, loco brakes
leezer3 Sep 17, 2025
4372fbc
Use speed for CVF speedometer
leezer3 Sep 17, 2025
929cd08
Add some missing values
leezer3 Sep 17, 2025
cd1ad05
Improve handling for some more bits
leezer3 Sep 18, 2025
719914c
More missing values
leezer3 Sep 18, 2025
9dcb862
Allow loading of SMS files from MSTS common sound directory
leezer3 Sep 19, 2025
78cae86
More implementation / fixes
leezer3 Sep 19, 2025
27c1b1d
Work on friction a bit, refactor axles
leezer3 Oct 23, 2025
5bda738
Coupling types and distances
leezer3 Sep 24, 2025
a74b5db
New: Use MSTS adhesion values
leezer3 Sep 24, 2025
b1aba6b
Add EQ_Res and Bell to CVF animations
leezer3 Oct 6, 2025
fc1f320
Better handling for missing wagon
leezer3 Oct 6, 2025
0d8bcce
More digging / fixing on FreightAnim
leezer3 Sep 19, 2025
c4f42ef
Missing tokens, non-standard variants
leezer3 Oct 6, 2025
3c98b65
Actual error messages for incorrect number of streams / triggers
leezer3 Oct 6, 2025
6e6601b
Missing tokens, reformat units Tune friction, add default if we find…
leezer3 Oct 31, 2025
5f97ebe
Fixes
leezer3 Oct 23, 2025
0890b6f
Assorted fixes
leezer3 Oct 23, 2025
132b5d0
Some missing variants, allow wagons outside TrainCfg consist block
leezer3 Oct 23, 2025
9732ac8
Add MSTS directory to options
leezer3 Oct 24, 2025
eabdd52
Update error message formatting, more fixes
leezer3 Oct 24, 2025
50cf7a9
SMS work
leezer3 Oct 27, 2025
f744e4c
Fix brake systems for other engines, move some stuff around
leezer3 Oct 30, 2025
c390e42
Create DigitalClock for CVF
leezer3 Oct 30, 2025
d12d7bc
Add basic tender / tank engine classes, implement IsTenderRequired
leezer3 Oct 31, 2025
a750460
More cleaning and fixes
leezer3 Oct 31, 2025
f30e2b9
Implement VigilanceMonitor
leezer3 Nov 3, 2025
ab3eedf
Implement OverspeedMonitor, some moving of bits
leezer3 Nov 3, 2025
0ff5371
Use brake cylinder rates
leezer3 Nov 6, 2025
73afc91
Update CVF animations
leezer3 Nov 6, 2025
7e4314c
Add combined power handle, more CVF
leezer3 Nov 6, 2025
a9d77dd
Change: Map ORTS gearup / geardown sounds
leezer3 Nov 7, 2025
ee5ab0b
Change: Map ORTS reverser directional sounds
leezer3 Nov 7, 2025
1530518
New: Add discrete icon to MSTS trains
leezer3 Nov 7, 2025
a9e31bf
Change: Update readme and some headers [skip ci]
leezer3 Nov 7, 2025
469360e
Work on ammeter, multiple disparate engines
leezer3 Nov 12, 2025
1ccf34c
Change: Set sensible properties for car with missing ENG / WAG
leezer3 Nov 19, 2025
beb73bc
Fix: Handle nonsensical friction data
leezer3 Nov 19, 2025
d1e088a
CVF fixes
leezer3 Nov 19, 2025
19f1b0f
Add Variable1 controlled sounds
leezer3 Nov 20, 2025
196e244
Implement GearboxOperationMode
leezer3 Nov 20, 2025
c10e08e
Fix: Boost horn radius
leezer3 Nov 20, 2025
2e478db
Change: Reset to sensible parameters for each new vehicle
leezer3 Nov 20, 2025
5fda49b
Fix: Incorrect deceleration figure used in vaccuum brakes
leezer3 Nov 20, 2025
d7cddbd
Change: Map Friction_Braking
leezer3 Nov 24, 2025
aff31fb
Cleaning
leezer3 Dec 3, 2025
076f10f
Change: Map CP_Handle
leezer3 Dec 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions OpenBVE.sln
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenBve", "source\OpenBVE\O
{7D0D7673-C77A-4140-A5C6-075D825AC11D} = {7D0D7673-C77A-4140-A5C6-075D825AC11D}
{8DAA1CF4-A29A-42CE-8649-34E0FBC0D97C} = {8DAA1CF4-A29A-42CE-8649-34E0FBC0D97C}
{A2FC4D71-1ED9-40D4-B746-FE6AB3C7D55E} = {A2FC4D71-1ED9-40D4-B746-FE6AB3C7D55E}
{A6E3D875-DDFA-446A-AAF5-BFAFF3C9EF45} = {A6E3D875-DDFA-446A-AAF5-BFAFF3C9EF45}
{ACAFCA35-01B7-479C-AD5F-9BCE0F8A597B} = {ACAFCA35-01B7-479C-AD5F-9BCE0F8A597B}
{B520B1D7-3889-4C88-9E0F-CB96802D5CD1} = {B520B1D7-3889-4C88-9E0F-CB96802D5CD1}
{C4BE7A1F-9CCD-4E78-8341-741ABDA8E026} = {C4BE7A1F-9CCD-4E78-8341-741ABDA8E026}
Expand Down Expand Up @@ -176,6 +177,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Train.OpenBve", "source\Plu
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Win32PluginProxy", "source\Plugins\Win32PluginProxy\Win32PluginProxy.csproj", "{B9014791-7170-4DCD-B3F1-2B7518A85C83}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Train.MsTs", "source\Plugins\Train.MsTs\Train.MsTs.csproj", "{A6E3D875-DDFA-446A-AAF5-BFAFF3C9EF45}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Route.Bve5", "source\Plugins\Route.Bve5\Route.Bve5.csproj", "{C4BE7A1F-9CCD-4E78-8341-741ABDA8E026}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Formats.OpenBve", "source\Plugins\Formats.OpenBve\Formats.OpenBve.csproj", "{7ED7B285-FAE6-4B34-ACC5-87399F27C8BC}"
Expand Down Expand Up @@ -859,6 +862,24 @@ Global
{B9014791-7170-4DCD-B3F1-2B7518A85C83}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{B9014791-7170-4DCD-B3F1-2B7518A85C83}.Release|x86.ActiveCfg = Release|Any CPU
{B9014791-7170-4DCD-B3F1-2B7518A85C83}.Release|x86.Build.0 = Release|Any CPU
{A6E3D875-DDFA-446A-AAF5-BFAFF3C9EF45}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A6E3D875-DDFA-446A-AAF5-BFAFF3C9EF45}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A6E3D875-DDFA-446A-AAF5-BFAFF3C9EF45}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{A6E3D875-DDFA-446A-AAF5-BFAFF3C9EF45}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{A6E3D875-DDFA-446A-AAF5-BFAFF3C9EF45}.Debug|x86.ActiveCfg = Debug|Any CPU
{A6E3D875-DDFA-446A-AAF5-BFAFF3C9EF45}.Debug|x86.Build.0 = Debug|Any CPU
{A6E3D875-DDFA-446A-AAF5-BFAFF3C9EF45}.GLMenu|Any CPU.ActiveCfg = Release|Any CPU
{A6E3D875-DDFA-446A-AAF5-BFAFF3C9EF45}.GLMenu|Any CPU.Build.0 = Release|Any CPU
{A6E3D875-DDFA-446A-AAF5-BFAFF3C9EF45}.GLMenu|Mixed Platforms.ActiveCfg = Release|Any CPU
{A6E3D875-DDFA-446A-AAF5-BFAFF3C9EF45}.GLMenu|Mixed Platforms.Build.0 = Release|Any CPU
{A6E3D875-DDFA-446A-AAF5-BFAFF3C9EF45}.GLMenu|x86.ActiveCfg = Release|Any CPU
{A6E3D875-DDFA-446A-AAF5-BFAFF3C9EF45}.GLMenu|x86.Build.0 = Release|Any CPU
{A6E3D875-DDFA-446A-AAF5-BFAFF3C9EF45}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A6E3D875-DDFA-446A-AAF5-BFAFF3C9EF45}.Release|Any CPU.Build.0 = Release|Any CPU
{A6E3D875-DDFA-446A-AAF5-BFAFF3C9EF45}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{A6E3D875-DDFA-446A-AAF5-BFAFF3C9EF45}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{A6E3D875-DDFA-446A-AAF5-BFAFF3C9EF45}.Release|x86.ActiveCfg = Release|Any CPU
{A6E3D875-DDFA-446A-AAF5-BFAFF3C9EF45}.Release|x86.Build.0 = Release|Any CPU
{C4BE7A1F-9CCD-4E78-8341-741ABDA8E026}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C4BE7A1F-9CCD-4E78-8341-741ABDA8E026}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C4BE7A1F-9CCD-4E78-8341-741ABDA8E026}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
Expand Down Expand Up @@ -930,6 +951,7 @@ Global
{7D0D7673-C77A-4140-A5C6-075D825AC11D} = {D75531B7-000E-432E-A168-51846256A9D1}
{D3710390-CD0E-4E14-8E4F-80302D797D5E} = {F49789F2-97F3-45B3-BC85-F4E09C0D120D}
{B9014791-7170-4DCD-B3F1-2B7518A85C83} = {F49789F2-97F3-45B3-BC85-F4E09C0D120D}
{A6E3D875-DDFA-446A-AAF5-BFAFF3C9EF45} = {F49789F2-97F3-45B3-BC85-F4E09C0D120D}
{C4BE7A1F-9CCD-4E78-8341-741ABDA8E026} = {D75531B7-000E-432E-A168-51846256A9D1}
{7ED7B285-FAE6-4B34-ACC5-87399F27C8BC} = {16553295-E70F-4596-AA78-848EEA576C4A}
EndGlobalSection
Expand Down
6 changes: 5 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@

This repository contains the source code for the Train Simulator OpenBVE, a 3D cab based simulator.

The simulator supports the following route formats:
Supported route formats:
* Native CSV / RW.
* BVE5 TXT format.
* Mechanik DAT format.

Supported train formats:
* BVE2 / BVE4, with native OpenBVE extensions.
* Microsoft Train Simulator (MSTS)

OpenBVE is built in OpenGL, using the OpenTK framework for windowing.

### Fixed Errata
Expand Down
Binary file added assets/Compatibility/numbers.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions assets/Languages/ca-ES.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -1620,6 +1620,10 @@
<source>Other items installation directory:</source>
<target>Carpeta d&apos;instal·lació d&apos;altres paquets:</target>
</trans-unit>
<trans-unit id="package_msts_directory">
<source>MSTS installation directory:</source>
<target>Carpeta d&apos;instal·lació de MSTS:</target>
</trans-unit>
<trans-unit id="package_compression">
<source>Package compression format:</source>
<target>Format de compressió dels paquets:</target>
Expand Down
3 changes: 3 additions & 0 deletions assets/Languages/cs-CZ.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -1635,6 +1635,9 @@
<source>Other items installation directory:</source>
<target>Other items installation directory:</target>
</trans-unit>
<trans-unit id="package_msts_directory">
<source>MSTS installation directory:</source>
</trans-unit>
<trans-unit id="package_compression">
<source>Package compression format:</source>
<target>Package compression format:</target>
Expand Down
3 changes: 3 additions & 0 deletions assets/Languages/de-CH.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -1636,6 +1636,9 @@
<source>Other items installation directory:</source>
<target>Other items installation directory:</target>
</trans-unit>
<trans-unit id="package_msts_directory">
<source>MSTS installation directory:</source>
</trans-unit>
<trans-unit id="package_compression">
<source>Package compression format:</source>
<target>Package compression format:</target>
Expand Down
4 changes: 4 additions & 0 deletions assets/Languages/de-DE.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -1635,6 +1635,10 @@
<source>Other items installation directory:</source>
<target>Installationsordner für sonstiges:</target>
</trans-unit>
<trans-unit id="package_msts_directory">
<source>MSTS installation directory:</source>
<target>MSTS installationsordner:</target>
</trans-unit>
<trans-unit id="package_compression">
<source>Package compression format:</source>
<target>Paketkomprimierungsformat:</target>
Expand Down
3 changes: 3 additions & 0 deletions assets/Languages/en-GB.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -1636,6 +1636,9 @@
<source>Other items installation directory:</source>
<target>Other items installation directory:</target>
</trans-unit>
<trans-unit id="package_msts_directory">
<source>MSTS installation directory:</source>
</trans-unit>
<trans-unit id="package_compression">
<source>Package compression format:</source>
<target>Package compression format:</target>
Expand Down
3 changes: 3 additions & 0 deletions assets/Languages/en-US.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -1243,6 +1243,9 @@
<trans-unit id="package_other_directory">
<source>Other items installation directory:</source>
</trans-unit>
<trans-unit id="package_msts_directory">
<source>MSTS installation directory:</source>
</trans-unit>
<trans-unit id="package_compression">
<source>Package compression format:</source>
</trans-unit>
Expand Down
4 changes: 4 additions & 0 deletions assets/Languages/es-ES.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -1636,6 +1636,10 @@
<source>Other items installation directory:</source>
<target>Carpeta de instalación de otros paquetes:</target>
</trans-unit>
<trans-unit id="package_msts_directory">
<source>MSTS installation directory:</source>
<target>Carpeta de instalación de MSTS:</target>
</trans-unit>
<trans-unit id="package_compression">
<source>Package compression format:</source>
<target>Formato de compresión de los paquetes:</target>
Expand Down
3 changes: 3 additions & 0 deletions assets/Languages/fi-FI.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -1635,6 +1635,9 @@
<source>Other items installation directory:</source>
<target>Other items installation directory:</target>
</trans-unit>
<trans-unit id="package_msts_directory">
<source>MSTS installation directory:</source>
</trans-unit>
<trans-unit id="package_compression">
<source>Package compression format:</source>
<target>Package compression format:</target>
Expand Down
3 changes: 3 additions & 0 deletions assets/Languages/fr-FR.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -1635,6 +1635,9 @@
<source>Other items installation directory:</source>
<target>Other items installation directory:</target>
</trans-unit>
<trans-unit id="package_msts_directory">
<source>MSTS installation directory:</source>
</trans-unit>
<trans-unit id="package_compression">
<source>Package compression format:</source>
<target>Package compression format:</target>
Expand Down
4 changes: 4 additions & 0 deletions assets/Languages/hu-HU.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -1638,6 +1638,10 @@
<source>Other items installation directory:</source>
<target>Egyebek telepítési könyvtára:</target>
</trans-unit>
<trans-unit id="package_msts_directory">
<source>MSTS installation directory:</source>
<target>MSTS telepítési könyvtára:</target>
</trans-unit>
<trans-unit id="package_compression">
<source>Package compression format:</source>
<target>Csomag tömörítésének formátuma:</target>
Expand Down
4 changes: 4 additions & 0 deletions assets/Languages/id-ID.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -1609,6 +1609,10 @@
<source>Other items installation directory:</source>
<target>Folder konten lainnya:</target>
</trans-unit>
<trans-unit id="package_msts_directory">
<source>MSTS installation directory:</source>
<target>Folder MSTS:</target>
</trans-unit>
<trans-unit id="package_compression">
<source>Package compression format:</source>
<target>Format file kompresi:</target>
Expand Down
3 changes: 3 additions & 0 deletions assets/Languages/it-IT.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -1636,6 +1636,9 @@
<source>Other items installation directory:</source>
<target>Other items installation directory:</target>
</trans-unit>
<trans-unit id="package_msts_directory">
<source>MSTS installation directory:</source>
</trans-unit>
<trans-unit id="package_compression">
<source>Package compression format:</source>
<target>Package compression format:</target>
Expand Down
3 changes: 3 additions & 0 deletions assets/Languages/ja-JP.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -1636,6 +1636,9 @@
<source>Other items installation directory:</source>
<target>その他のアイテムのインストール場所:</target>
</trans-unit>
<trans-unit id="package_msts_directory">
<source>MSTS installation directory:</source>
</trans-unit>
<trans-unit id="package_compression">
<source>Package compression format:</source>
<target>パッケージの圧縮形式:</target>
Expand Down
3 changes: 3 additions & 0 deletions assets/Languages/ko-KR.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -1636,6 +1636,9 @@
<source>Other items installation directory:</source>
<target>Other items installation directory:</target>
</trans-unit>
<trans-unit id="package_msts_directory">
<source>MSTS installation directory:</source>
</trans-unit>
<trans-unit id="package_compression">
<source>Package compression format:</source>
<target>Package compression format:</target>
Expand Down
4 changes: 4 additions & 0 deletions assets/Languages/ms_MY.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -1604,6 +1604,10 @@
<source>Other items installation directory:</source>
<target>Direktori pemasangan iitem lain-lain:</target>
</trans-unit>
<trans-unit id="package_msts_directory">
<source>MSTS installation directory:</source>
<target>Direktori pemasangan MSTS:</target>
</trans-unit>
<trans-unit id="package_compression">
<source>Package compression format:</source>
<target>Format mampatan pakej:</target>
Expand Down
4 changes: 4 additions & 0 deletions assets/Languages/nb_NO.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -1616,6 +1616,10 @@
<source>Other items installation directory:</source>
<target>Mappe for installasjon av andre ting:</target>
</trans-unit>
<trans-unit id="package_msts_directory">
<source>MSTS installation directory:</source>
<target>Mappe for installasjon MSTS:</target>
</trans-unit>
<trans-unit id="package_compression">
<source>Package compression format:</source>
<target>Pakke kompresjonsformat:</target>
Expand Down
3 changes: 3 additions & 0 deletions assets/Languages/nl-NL.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -1635,6 +1635,9 @@
<source>Other items installation directory:</source>
<target>Other items installation directory:</target>
</trans-unit>
<trans-unit id="package_msts_directory">
<source>MSTS installation directory:</source>
</trans-unit>
<trans-unit id="package_compression">
<source>Package compression format:</source>
<target>Package compression format:</target>
Expand Down
4 changes: 4 additions & 0 deletions assets/Languages/pl-PL.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -1607,6 +1607,10 @@
<source>Other items installation directory:</source>
<target>Folder instalacji innych:</target>
</trans-unit>
<trans-unit id="package_msts_directory">
<source>MSTS installation directory:</source>
<target>Folder instalacji MSTS:</target>
</trans-unit>
<trans-unit id="package_compression">
<source>Package compression format:</source>
<target>Format kompresji pakietów:</target>
Expand Down
3 changes: 3 additions & 0 deletions assets/Languages/pt-BR.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -1636,6 +1636,9 @@
<source>Other items installation directory:</source>
<target>Other items installation directory:</target>
</trans-unit>
<trans-unit id="package_msts_directory">
<source>MSTS installation directory:</source>
</trans-unit>
<trans-unit id="package_compression">
<source>Package compression format:</source>
<target>Package compression format:</target>
Expand Down
4 changes: 4 additions & 0 deletions assets/Languages/pt-PT.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -1652,6 +1652,10 @@
<source>Other items installation directory:</source>
<target>Directório de instalação de outros itens:</target>
</trans-unit>
<trans-unit id="package_msts_directory">
<source>MSTS installation directory:</source>
<target>Directório de instalação da MSTS:</target>
</trans-unit>
<trans-unit id="package_compression">
<source>Package compression format:</source>
<target>Formato de compressão do pacote:</target>
Expand Down
3 changes: 3 additions & 0 deletions assets/Languages/ro-RO.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -1636,6 +1636,9 @@
<source>Other items installation directory:</source>
<target>Other items installation directory:</target>
</trans-unit>
<trans-unit id="package_msts_directory">
<source>MSTS installation directory:</source>
</trans-unit>
<trans-unit id="package_compression">
<source>Package compression format:</source>
<target>Package compression format:</target>
Expand Down
3 changes: 3 additions & 0 deletions assets/Languages/ru-RU.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -1635,6 +1635,9 @@
<source>Other items installation directory:</source>
<target>Other items installation directory:</target>
</trans-unit>
<trans-unit id="package_msts_directory">
<source>MSTS installation directory:</source>
</trans-unit>
<trans-unit id="package_compression">
<source>Package compression format:</source>
<target>Package compression format:</target>
Expand Down
3 changes: 3 additions & 0 deletions assets/Languages/sk-SK.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -1554,6 +1554,9 @@
<source>Other items installation directory:</source>
<target>Other items installation directory:</target>
</trans-unit>
<trans-unit id="package_msts_directory">
<source>MSTS installation directory:</source>
</trans-unit>
<trans-unit id="package_compression">
<source>Package compression format:</source>
<target>Package compression format:</target>
Expand Down
3 changes: 3 additions & 0 deletions assets/Languages/uk-UA.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -1637,6 +1637,9 @@
<source>Other items installation directory:</source>
<target>Other items installation directory:</target>
</trans-unit>
<trans-unit id="package_msts_directory">
<source>MSTS installation directory:</source>
</trans-unit>
<trans-unit id="package_compression">
<source>Package compression format:</source>
<target>Package compression format:</target>
Expand Down
3 changes: 3 additions & 0 deletions assets/Languages/zh-CN.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -1634,6 +1634,9 @@
<source>Other items installation directory:</source>
<target>其他安装目录: </target>
</trans-unit>
<trans-unit id="package_msts_directory">
<source>MSTS installation directory:</source>
</trans-unit>
<trans-unit id="package_compression">
<source>Package compression format:</source>
<target>扩展包压缩格式: </target>
Expand Down
3 changes: 3 additions & 0 deletions assets/Languages/zh-HK.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -1639,6 +1639,9 @@
<source>Other items installation directory:</source>
<target>其他項目安裝資料夾:</target>
</trans-unit>
<trans-unit id="package_msts_directory">
<source>MSTS installation directory:</source>
</trans-unit>
<trans-unit id="package_compression">
<source>Package compression format:</source>
<target>擴展包壓縮格式:</target>
Expand Down
3 changes: 3 additions & 0 deletions assets/Languages/zh-TW.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -1636,6 +1636,9 @@
<source>Other items installation directory:</source>
<target>Other items installation directory:</target>
</trans-unit>
<trans-unit id="package_msts_directory">
<source>MSTS installation directory:</source>
</trans-unit>
<trans-unit id="package_compression">
<source>Package compression format:</source>
<target>Package compression format:</target>
Expand Down
Binary file added assets/Menu/icon_msts.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 10 additions & 10 deletions source/LibRender2/BaseRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -692,19 +692,19 @@ public void InitializeVisibility()
{
for (int i = 0; i < StaticObjectStates.Count; i++)
{
VAOExtensions.CreateVAO(StaticObjectStates[i].Prototype?.Mesh, false, DefaultShader.VertexLayout, this);
if (StaticObjectStates[i].Matricies != null)
{
GL.CreateBuffers(1, out StaticObjectStates[i].MatrixBufferIndex);
}
VAOExtensions.CreateVAO(StaticObjectStates[i].Prototype.Mesh, false, DefaultShader.VertexLayout, this);
/*
* n.b.
* Only create the actual matrix buffer at first frame render time
* I can't find why at the minute, but Object Viewer otherwise doesn't show them, and attempting
* to retrieve previously set matricies from the shader shows all zeros
*
* Probably a timing issue, but it works doing it that way :/
*/
}
for (int i = 0; i < DynamicObjectStates.Count; i++)
{
VAOExtensions.CreateVAO(DynamicObjectStates[i].Prototype?.Mesh, false, DefaultShader.VertexLayout, this);
if (DynamicObjectStates[i].Matricies != null)
{
GL.CreateBuffers(1, out DynamicObjectStates[i].MatrixBufferIndex);
}
VAOExtensions.CreateVAO(DynamicObjectStates[i].Prototype.Mesh, false, DefaultShader.VertexLayout, this);
}
}
ObjectsSortedByStart = StaticObjectStates.Select((x, i) => new { Index = i, Distance = x.StartingDistance }).OrderBy(x => x.Distance).Select(x => x.Index).ToArray();
Expand Down
Loading