Scripting????

Post your problems and installation issues here!

Scripting????

Unread postby 5292nate » Thu Apr 24, 2014 7:24 pm

Hey folks!

So, I've gotten the basic gist of scripting, but I honestly have no clue where on earth to begin applying it to anything in the game. I can't find it in any tutorials or manuals. Help???!!!

Thanks!

Nate
"The trouble with a one track mind is it's narrow gauge and lack of switching controls." - Buzz Baxter
User avatar
5292nate
 
Posts: 1622
Joined: Sat Nov 10, 2012 12:14 pm
Location: Upstate New York

Re: Scripting????

Unread postby eyein12 » Fri Apr 25, 2014 7:34 am

5292nate wrote:Hey folks!

So, I've gotten the basic gist of scripting, but I honestly have no clue where on earth to begin applying it to anything in the game. I can't find it in any tutorials or manuals. Help???!!!

Thanks!

Nate



best to find a .lua that was done a while ago and study it. All my models come with a .lua instead of the new file that hides the code. I just studied Rick Grouts lua. thats what I did and since then I applied that knowledge and tweaked it to what I wanted to do.

ian
Home of the NEW TIER 4 GEVO PACK, SD90/80mac PACK, BNSF SEATTLE SUBDIVISION ROUTE,UPDATES and more...

http://eyein12.blogspot.com/

https://www.youtube.com/channel/UCtWF-X ... dY7ag/feed
eyein12
 
Posts: 1258
Joined: Fri Oct 15, 2010 9:47 am
Location: Pottstown, PA USA

Re: Scripting????

Unread postby Chacal » Sat Apr 26, 2014 12:21 pm

Yes, that's good advice.

eyein12 wrote: All my models come with a .lua instead of the new file that hides the code.


Thanks for that, Ian.
I wish all modelers would do the same.
Or explain why they don't want to share the knowledge.
Or maybe they don't have control over what DTG distributes.
Over the hill and gathering speed
Chacal
Site Admin
 
Posts: 6481
Joined: Tue Jul 05, 2011 1:11 pm
Location: Quebec, Canada

Re: Scripting????

Unread postby dogrokket » Sat Apr 26, 2014 9:58 pm

5292nate wrote:Hey folks!

So, I've gotten the basic gist of scripting, but I honestly have no clue where on earth to begin applying it to anything in the game. I can't find it in any tutorials or manuals. Help???!!!

Thanks!

Nate

Nate, first thing I did was download a free lua editor. Here's a good one that I've used: http://luaedit.sourceforge.net/ There's also a helpful signaling tutorial in the TS developer docs. I had to do some scripting on a scenery object and got a lot of help from guys here and on UKTS. You can find it in the scenery design forum. Good luck!
Down another rabbit hole we go....
User avatar
dogrokket
 
Posts: 176
Joined: Wed May 08, 2013 2:18 pm

Re: Scripting????

Unread postby dogrokket » Mon Apr 28, 2014 10:41 am

Down another rabbit hole we go....
User avatar
dogrokket
 
Posts: 176
Joined: Wed May 08, 2013 2:18 pm

Re: Scripting????

Unread postby Chacal » Mon Apr 28, 2014 11:33 am

Just wanted to add that a lua editor is not a must.
You can easily go with an advanced text editor like Notepad++, which highlights code and indents correctly.
Over the hill and gathering speed
Chacal
Site Admin
 
Posts: 6481
Joined: Tue Jul 05, 2011 1:11 pm
Location: Quebec, Canada

Re: Scripting????

Unread postby 5292nate » Wed Apr 30, 2014 2:45 pm

Thanks guys!
"The trouble with a one track mind is it's narrow gauge and lack of switching controls." - Buzz Baxter
User avatar
5292nate
 
Posts: 1622
Joined: Sat Nov 10, 2012 12:14 pm
Location: Upstate New York


Return to Problems and Peculiarities

Who is online

Users browsing this forum: No registered users and 2 guests