New race end script feature

Discussion related to Turbo Sliders and beta version feedback.

Moderator: Forum Moderators

Post Reply
User avatar
fasteddie399
Community User Level: 2
Community User Level: 2
Posts: 162
Joined: Sun Apr 24, 2005 1:53 am

New race end script feature

Post by fasteddie399 » Sat Oct 08, 2005 1:55 am

@Ande (or whomever can answer this):

Being a computer programmer, I absolutely LOVE the idea of being able to write "scripts" that can now be run after each race on a server. My question is, what "scripting language" can the .sh file need to be created in? Linux shell script? vbscript, javascript, etc.?

Also, I've never written a "script", per se, only compiled .exe's. So, are there plans to implement another feature in a future TS version to accomodate the running of an actual .exe application between races? Also, to include the ability to run such programs on the client side between races as well (not only on servers) - in other words, if I'm playing on the US Demo Server #1, for it to be able to run an application between each race on MY end.... you know what I mean :D

User avatar
Ande
Game Developer
Game Developer
Posts: 487
Joined: Thu Oct 14, 2004 9:43 pm

Post by Ande » Sat Oct 08, 2005 10:46 am

Actually, the script can be anything that your machine can run. It uses the C function system() which can contain anything, including EXEs. The default extension is .sh since this feature is mainly meant for automatic servers and many of them are run under Linux and .sh is a common script language in Unix-like systems.

Unfortunately, client side scripts are not supported yet and one problem with using system in Windows is that you seem to lose focus when a script is run with system() (so you get out of the full-screen mode).

User avatar
fasteddie399
Community User Level: 2
Community User Level: 2
Posts: 162
Joined: Sun Apr 24, 2005 1:53 am

Post by fasteddie399 » Sat Oct 08, 2005 3:21 pm

Cool - thanks for the insight!

Time to learn some scripting languages! :P

Post Reply