Writing scripts for TRS2010

srude

New member
Greetings;

Some may think that I'm crazy or something like that but, I, nevertheless, want to write scripts, tailored to a route of my own making.

I have UTC which, I believe, has the ability to write scripts.

I want to create the scipts in UTC then move them into 2010. Can that be done?

I know that scripts are no longer used--the latest trend is with sessions, which just don't cover every situation.

I like exploring and pushing boundaries so . . .

So, is my plan viable?

Thanks in advance for whatever answer are rendered.

Cheers

srude

:hehe:
 
TS2010 uses the same basic scripting language as UTC, so a script written for UTC is largely similar to one written for TS2010. That said, UTC lacks much of the functionality, support classes, and support assets present in TS2010, so if you're aiming to write scripts for UTC then you'll have to do a lot of stuff and/or live with a lot of limitations that wouldn't be a problem in TS2010.

If you're familiar with programming in general, then the best comparison I can give you is that UTC is like "Windows 3.1" and TS2010 is like "Windows XP". The old ideas of programming still generally work under the new system, but there are often newer and better techniques available that didn't exist on the older system.

To get a heads-up on TrainzScript, it might be worth taking a look at the online documentation. Note that the documentation is written for TS2010, so not everything will be applicable to UTC.

Hope this helps,

chris
 
I have found out that there is no gsc compiler in TS2010. It seems to have been replaced with a library element (.gsl). I have to assume that all script files are freshly compiled on initialization of TS2010. I would use ConText to write (or correct) such scripts, but unless the compiler has been hidden somewhere else I cannot invoke it from ConText as specified here:
http://online.ts2009.com/mediaWiki/index.php5/Using_Context_with_Trainzscript
Any alternative available?

Greetings,
Dralex
 
I have to assume that all script files are freshly compiled on initialization of TS2010.
In ts2010 the debugging is proceeding while comminting assets in CMP or checking for warnings.

I have to assume that all script files are freshly compiled on initialization of TS2010.
In trainz 2004 it was so. In ts2010 it could proceed while comminting assets. The custom compiled scripts you can find in \TS2010\UserData\cache\libraries .
 
Last edited:
Thank you, RPearson and TRam. I can now update the method by which the compiler is invoked from ConText.

Dralex
 
Back
Top