Signal Scripting Resources

Discussion about RailWorks route design.

Signal Scripting Resources

Unread postby benny335 » Fri Oct 13, 2017 6:40 pm

So I've been trying to create some custom signals using the Pacific Surfliner assets but I'm not well versed in scripting. Does anyone know of some good resources on coding for Train Simulator? I haven't been able to find anything as of yet.
Thanks!
benny335
 
Posts: 42
Joined: Tue Jun 30, 2015 12:20 pm
Location: Escondido, CA

Re: Signal Scripting Resources

Unread postby _o_OOOO_oo-Kanawha » Sat Oct 14, 2017 4:23 am

benny335 wrote:So I've been trying to create some custom signals using the Pacific Surfliner assets but I'm not well versed in scripting. Does anyone know of some good resources on coding for Train Simulator? I haven't been able to find anything as of yet.
Thanks!


Aren't the old Kuju BNSF signal scripts still in cleartext .lua? Or the scripts from the old SMMDigital signals included in the RWA/RCAP collection? I remember seeing a signal collection with scripts for many rulebooks, i.e. AAR, NOCAR, east coast, west coast etc. all in annotated cleartext lua.
Edwin "Kanawha"
Image
The Chessie, the train that never was ... (6000 hp Baldwin-Westinghouse steam turbine electric)
User avatar
_o_OOOO_oo-Kanawha
 
Posts: 3231
Joined: Mon Nov 14, 2011 2:12 pm

Re: Signal Scripting Resources

Unread postby sumitsingh » Sun Oct 15, 2017 6:14 pm

Train Simulator 2012 had all human readable LUA files for signalling UK & USA based.
I suppose in after ward editions, they were compiled.
RCAPv2 also have USA signals.
sumitsingh
 

Re: Signal Scripting Resources

Unread postby Shale » Sat Oct 28, 2017 7:20 am

From the RSC Developer Docs, available here at http://railworksamerica.com/index.php/download-library/accessories?view=document&id=1081:rsc-s-developer-docs&catid=24:accessories, there are a couple of useful files.

"3.01 Signal Setup & Scripting" gives an extensive analysis of the scripting for a range of increasingly complex signals. "3.02 Signaling Interface Parameters" describes the system functions referred to in the first manual.

If you're looking for information on the Lua language itself https://www.lua.org/ might be a good place to start.

HTH
Sue
Shale
 


Return to Route Design

Who is online

Users browsing this forum: No registered users and 2 guests