Page 1 of 2

LUA Scripting in Scenarios

Posted: Sat Feb 07, 2015 4:50 pm
by NeutronIC
Hi all,

Just wanted to pop in and let everyone know that i've started a new blog that will be covering various more technical topics about content creation in TS2015 - starting with using LUA scripts in Scenarios to get things like Cinematic Cameras, HTML pop-ups, audio, video, weather and so forth working.

5 articles are up so far and the intention is to add to it every day.

I also did a full segment on my Twitch show on this subject that goes through a lot of it relatively quickly (the blog is taking a much more in depth look at each topic) - but there's plenty in the video to get the grasp of how it all hangs together and what is possible.

The blog is at: http://trainsimlive.blogspot.co.uk

The YouTube recording of the segment is here:

This video is hosted by YouTube, a site which is outside of the editorial control of UKTrainSim and as such Parental Control is strongly advised.
To view the video, click on the PLAY button.
If you click anywhere else on this video, you will be taken to a YouTube page, where you may find yourself subjected to content that you feel is offensive.
If you feel THIS video is inappropriate, please report it to a moderator immediately for prompt action.

Lastly, if you want to check in on my Twitch show - Train Sim Live - which usually runs 21:30GMT every weekday night you can find it at :
http://twitch.tv/mattpeddlesden - usually it's just running a variety of scenarios and stock but I'm aiming to get tutorials covered too, there are already a number of them (all recordings are stored on YouTube so it's all there if you want to check it out later).

Feedback welcome!

Apologies for the intrusion!

Matt.

Re: LUA Scripting in Scenarios

Posted: Sat Feb 07, 2015 4:58 pm
by markpullinger
Ta Matt. :)

Re: LUA Scripting in Scenarios

Posted: Sat Feb 07, 2015 5:35 pm
by Thulin
Thankyou, bookmarked! Especially interested in getting interesting weather changes going... :wink:

Re: LUA Scripting in Scenarios

Posted: Sat Feb 07, 2015 7:53 pm
by yerkes
This is excellent - thanks very much.

Re: LUA Scripting in Scenarios

Posted: Sun Feb 08, 2015 12:03 pm
by NeutronIC
Thanks for the great feedback, much appreciated.

I've just posted article 6 - how to get the speed and possible uses for it.

Cheers!
Matt.

Re: LUA Scripting in Scenarios

Posted: Sun Feb 08, 2015 12:21 pm
by jalmar
thx, i've been reading this with interest and look forward to more information about lua etc.

Re: LUA Scripting in Scenarios

Posted: Sun Feb 08, 2015 2:10 pm
by RudolfJan
You may want to use my lUA scenario scripting guide as well. In April this year a revised and updated version will appear.

 Click to view more informationScenario Authors Guide part III LUA scripting [4723981 bytes] - Scenario Authors Guide part III UKTS.zip
File ID: 33231 Date: 22 Jun 2015 - 977 Downloads

Re: LUA Scripting in Scenarios

Posted: Sun Feb 08, 2015 9:55 pm
by gptech
Very interesting, thanks for doing this.

Re: LUA Scripting in Scenarios

Posted: Mon Feb 09, 2015 1:10 pm
by scefhwil
Matt,

Your Blog is definitely needed so thank you for doing it. Whilst appreciating the value of starting at the most basic level, would you consider sooner than later posting a full list of all the available lua calls/functions for those of us who already have a grasp of the basics? I know there are many who are only being held back by the lack of knowing what functionality already exist.

Cheers

Stuart

Re: LUA Scripting in Scenarios

Posted: Mon Feb 09, 2015 2:20 pm
by NeutronIC
Something definitely coming to fit that need Stuart :)

Matt.

Re: LUA Scripting in Scenarios

Posted: Mon Feb 09, 2015 4:16 pm
by NeutronIC
Just added a new article about getting and setting loco controllers - with a few gameplay examples that combine some of the previous topics as well.

Thanks for all the feedback, very useful!

Mat.

Re: LUA Scripting in Scenarios

Posted: Mon Feb 09, 2015 4:46 pm
by scefhwil
NeutronIC wrote:Something definitely coming to fit that need Stuart :)

Matt.
Excellent! Looking forward to it, cheers.

Re: LUA Scripting in Scenarios

Posted: Tue Feb 10, 2015 5:03 pm
by smarty2
Anybody else think this should be made a sticky?

Re: LUA Scripting in Scenarios

Posted: Tue Feb 10, 2015 5:59 pm
by alanch
smarty2 wrote:Anybody else think this should be made a sticky?
Even better, perhaps, would be a new section devoted to tutorials - some of the threads in the FAQ section would fit in there as well.

Re: LUA Scripting in Scenarios

Posted: Tue Feb 10, 2015 6:23 pm
by chrisonline
alanch wrote:
smarty2 wrote:Anybody else think this should be made a sticky?
Even better, perhaps, would be a new section devoted to tutorials - some of the threads in the FAQ section would fit in there as well.
And also a section on LUA scripting for locos/consists?