Page 1 of 1

Scripting????

Unread postPosted: Thu Apr 24, 2014 7:24 pm
by 5292nate
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

Re: Scripting????

Unread postPosted: Fri Apr 25, 2014 7:34 am
by eyein12
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

Re: Scripting????

Unread postPosted: Sat Apr 26, 2014 12:21 pm
by Chacal
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.

Re: Scripting????

Unread postPosted: Sat Apr 26, 2014 9:58 pm
by dogrokket
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!

Re: Scripting????

Unread postPosted: Mon Apr 28, 2014 10:41 am
by dogrokket

Re: Scripting????

Unread postPosted: Mon Apr 28, 2014 11:33 am
by Chacal
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.

Re: Scripting????

Unread postPosted: Wed Apr 30, 2014 2:45 pm
by 5292nate
Thanks guys!