LUA Scripting in Scenarios

General discussion about Train Simulator, your thoughts, questions, news and views!

Moderator: Moderators

NeutronIC
Atomic Systems Team
Atomic Systems Team
Posts: 11085
Joined: Fri Oct 05, 2001 12:00 am
Location: E11, London, England
Contact:

LUA Scripting in Scenarios

Post 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.
markpullinger
Very Active Forum Member
Posts: 3105
Joined: Sun Jun 08, 2003 6:24 pm

Re: LUA Scripting in Scenarios

Post by markpullinger »

Ta Matt. :)
User avatar
Thulin
Been on the forums for a while
Posts: 144
Joined: Fri Jul 18, 2014 10:26 am

Re: LUA Scripting in Scenarios

Post by Thulin »

Thankyou, bookmarked! Especially interested in getting interesting weather changes going... :wink:
Casual Cab Driver (My CabViewKeys utility: http://cvk.pethu.se. My route maps: http://cvk.pethu.se/routemaps.html)
User avatar
yerkes
Very Active Forum Member
Posts: 2545
Joined: Thu Oct 09, 2003 6:18 am
Location: Kidlington, Oxfordshire

Re: LUA Scripting in Scenarios

Post by yerkes »

This is excellent - thanks very much.
Michael
NeutronIC
Atomic Systems Team
Atomic Systems Team
Posts: 11085
Joined: Fri Oct 05, 2001 12:00 am
Location: E11, London, England
Contact:

Re: LUA Scripting in Scenarios

Post 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.
jalmar
Been on the forums for a while
Posts: 182
Joined: Fri Jun 12, 2009 9:41 am
Location: Vlaardingen, The Netherlands

Re: LUA Scripting in Scenarios

Post by jalmar »

thx, i've been reading this with interest and look forward to more information about lua etc.
RudolfJan
Well Established Forum Member
Posts: 523
Joined: Thu Oct 18, 2007 6:40 pm

Re: LUA Scripting in Scenarios

Post 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
gptech
Very Active Forum Member
Posts: 19585
Joined: Fri Oct 10, 2008 5:48 pm
Location: Wakefield, West Yorkshire

Re: LUA Scripting in Scenarios

Post by gptech »

Very interesting, thanks for doing this.
scefhwil
Well Established Forum Member
Posts: 907
Joined: Tue Dec 04, 2001 12:00 am
Location: Bristol, England

Re: LUA Scripting in Scenarios

Post 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
NeutronIC
Atomic Systems Team
Atomic Systems Team
Posts: 11085
Joined: Fri Oct 05, 2001 12:00 am
Location: E11, London, England
Contact:

Re: LUA Scripting in Scenarios

Post by NeutronIC »

Something definitely coming to fit that need Stuart :)

Matt.
NeutronIC
Atomic Systems Team
Atomic Systems Team
Posts: 11085
Joined: Fri Oct 05, 2001 12:00 am
Location: E11, London, England
Contact:

Re: LUA Scripting in Scenarios

Post 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.
scefhwil
Well Established Forum Member
Posts: 907
Joined: Tue Dec 04, 2001 12:00 am
Location: Bristol, England

Re: LUA Scripting in Scenarios

Post by scefhwil »

NeutronIC wrote:Something definitely coming to fit that need Stuart :)

Matt.
Excellent! Looking forward to it, cheers.
User avatar
smarty2
Very Active Forum Member
Posts: 9976
Joined: Sun Aug 21, 2005 8:16 am
Location: 1963, at Snow Hill!
Contact:

Re: LUA Scripting in Scenarios

Post by smarty2 »

Anybody else think this should be made a sticky?
Best Regards
Martin (smarty2)
Non technically minded individual!

Is There A God?
Dudley Bible web page
User avatar
alanch
Very Active Forum Member
Posts: 4907
Joined: Mon Feb 27, 2006 6:07 pm
Location: Leeds, England
Contact:

Re: LUA Scripting in Scenarios

Post 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.
Alan

My railway photos are now on Google + - links to the albums are in this thread http://forums.uktrainsim.com/viewtopic. ... 9&t=149558

Lots of steam and early diesels from 1959 to 1963.
chrisonline
Very Active Forum Member
Posts: 1430
Joined: Sat Apr 27, 2013 1:10 pm
Location: Front Royal, Virginia, USA

Re: LUA Scripting in Scenarios

Post 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?
Chris Laurence
Front Royal, Virginia, United States
Locked

Return to “[TS] General Discussion”