Skip to content
This repository has been archived by the owner on Aug 28, 2021. It is now read-only.

North American railway safety simulations for the Open Rails train simulator.

Notifications You must be signed in to change notification settings

YoRyan/openrails-traincontrol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository is where I develop Train Control System (TCS) scripts for Open Rails routes and equipment I am interested in. TCS scripts can simulate all sorts of railway safety systems, making the train driving experience more realistic, engaging, and enjoyable.

Use the "download ZIP" function to download the latest versions of the scripts. There are no releases. All scripts currently require the testing version of Open Rails, or Carlo Santucci's NewYear MG fork, which can be obtained at his website.

TCS scripts must be installed on each individual locomotive. To install a script:

  1. Create the TRAINSET\Common.Script folder if it does not already exist.
  2. Copy the directory containing the script (for example, YoRyan_BNSF_ATS) to this folder.
  3. Modify the .eng file of the locomotive as instructed in the script's readme.
  4. To test the installation, enable logging within Open Rails and check the log file after startup. You should see a startup message like "ATS initialized".

Instead of modifying the .eng file, you could also use Open Rails' include system to overlay the new parameters. To do this, create an OpenRails directory in the engine folder. Then, create a .eng file with the same filename as the .eng file you would otherwise modify, and format it like so:


include ( "../<eng filename>" )
Engine (
    ORTSTrainControlSystem ( "..\\..\\Common.Script\\<script>\\<script>.cs" )
    ...
)

where <eng filename> is the filename of the original .eng file. There must be a blank line before the include statement. Also, take note of the particular usage of forward slashes and backslashes.

About

North American railway safety simulations for the Open Rails train simulator.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages