LUA Startup script

Announcements and Discussion about Virtual Rail Creations Development

Moderator: MadMike1024

LUA Startup script

Unread postby tbundy1982 » Thu Feb 02, 2017 4:56 pm

Hi guys, I've been following the CSX C30-7 thread and started to write this response there. I decided it would instead be best as it's own topic.

I have a question. Please forgive me if this has been answered before. It has been mentioned that an LUA script can be used to avoid the automatic shutdown at the beginning of scenarios. I have witnessed it's effectiveness when playing the scenarios for the VRC CSX GP40-2. My question is: How difficult is it to produce these LUA scripts, and, could a generic LUA script be produced for all basic scenarios that would otherwise not include an LUA script? I was interested to learn if one generic script could be created and inserted into any new scenario with these VRC engines to eliminate the start-up sequence in situations where it would be truly non-prototypical, or if each new scenario needs a new script written.

Tyler
tbundy1982
 
Posts: 76
Joined: Wed Oct 05, 2011 8:48 am

Re: LUA Startup script

Unread postby JerryC » Thu Feb 02, 2017 6:48 pm

No need to go mucking around the script. Here is an experimental loco BP that has been modified for the loco to run at the beginning of a scenario. If it works, let me know.


http://s451525033.onlinehome.us/content/Beta020217/c307_On.bin
JerryC
 


Return to Virtual Rail Creations

Who is online

Users browsing this forum: No registered users and 1 guest

cron