Hi,
Reading from earlier post in engine driver (the RSC's blog), it seems that now each user can use LUA to make advanced scenarios, but I haven't been able to find a single tutorial on that.
Could someone explain to me how to use this tool? I'm mostly interested in changing weather (example: a scenario starts with foggy weather, after a while starts a light rain, and after another while there is a thunderstorm)
Thanks for the help
LUA script tutorial
Moderator: Moderators
Re: LUA script tutorial
I wanted documentation on this also.. but alas..
Why launch a new version with these new features without actually any documentation on how to use them?!
Why launch a new version with these new features without actually any documentation on how to use them?!
- AndiS
- Very Active Forum Member
- Posts: 6207
- Joined: Fri Sep 23, 2005 4:43 pm
- Location: Jester's cell in ivory tower
- Contact:
Re: LUA script tutorial
I think you can do that already without any scripting using the weather pattern blueprint.
See http://www.railsimdownloads.com/wiki/ti ... Blueprints for defining them and http://www.railsimdownloads.com/wiki/ti ... Properties for using them in a scenario.
See http://www.railsimdownloads.com/wiki/ti ... Blueprints for defining them and http://www.railsimdownloads.com/wiki/ti ... Properties for using them in a scenario.
Re: LUA script tutorial
Thanks, but that is useful only for static weather. I need a guide on how to program dynamic weather (something like in sherman hill)AndiS wrote:I think you can do that already without any scripting using the weather pattern blueprint.
See http://www.railsimdownloads.com/wiki/ti ... Blueprints for defining them and http://www.railsimdownloads.com/wiki/ti ... Properties for using them in a scenario.
Re: LUA script tutorial
Search for lua files in scenario folders (sherman hill route surely have some scripted scenarios), those lua files are not compiled so you can read the calls from it. There is a lua call to invoke weather blueprints, also to show messages, and move camera, etc. These capabilities were exist since TS2013.
Re: LUA script tutorial
I'm working on a LUA tutorial for scenario's, but it's still a lot of work to test all things I found. I will publish later. Sned me your mauiladdress in a PM if you want a preview or want to help me with testing.
Rudolf
http://www.hollandhiking.nl/trainsimulator
Here you will find the latest version of the Senario Authors Guide, TSW starters Guide, LuaCreator and TSWTools and more ...
http://www.hollandhiking.nl/trainsimulator
Here you will find the latest version of the Senario Authors Guide, TSW starters Guide, LuaCreator and TSWTools and more ...