Game Development Community

Really unesesary Engine Request

by Jonathan A. Garay M. · in Torque Game Engine · 09/25/2007 (8:37 am) · 11 replies

Change the scripts file extension from "cs" to "ts" :P its a little frustrating works with c# and torque
and is more nice say "Torque Script (ts)" isntead of "C script (cs)"


:D

tnks

#1
09/25/2007 (8:55 am)
This has been one of those suggestions from way, way back!
#2
09/25/2007 (9:27 am)
You can do it yourself. There are only three or four lines of code that need to be changed. I do it for all of my projects, I really hate Visual Studio trying to open TorqueScript files.

edit: Damn grammar teacher is watching.
#3
09/25/2007 (10:02 am)
Simple solution, boot to linux.
alternative:
delete vs,vc#.

:)
#4
09/25/2007 (11:17 am)
In dos

ren *.cs *.ts


... just realized that this will just rename the files, and you wont be able to compile duh
#5
09/25/2007 (12:55 pm)
Dave D is right... it's a quick and easy fix. Just do a search in the engine code for "cs" and replace the strings. I actually added "tsc" (my personal extension choice) in addition to "cs" so it would remain backwards compatible.
#6
09/25/2007 (1:02 pm)
To be fair...Torque was using .cs *waaaay* before C# was even thought up. =P

It is a good suggestion though and I will be sure to mention it to the appropriate parties.
#7
09/25/2007 (9:50 pm)
Like I said in another thread, the Gvim editor colors a .cs file as if it were C#, and the coloring works just fine for TorqueScript. I'm happy.

(But Gvim is easy to customize and I can add whatever extensions GG finally comes up with.)
#8
09/26/2007 (7:31 am)
Quote:
In August, 2000, Microsoft Corporation, Hewlett-Packard and Intel Corporation co-sponsored the submission of specifications for C# as well as the Common Language Infrastructure (CLI) to the international standardization organization ECMA. In December 2001 , ECMA released ECMA-334 C# Language Specification.

Are you sure torque was using it *waaaay* before microsoft thought up C#? I'm not sure of the Torque history, but the earliest posts I can find on this site are from 2001? Didn't the implementation use a different extension for scripting before that?

sorry, just the nitpicker in me

BTW: Another solution (other than only using Linux or changing the engine) is simply to associate .cs files with your preferred IDE.
#9
09/26/2007 (7:40 am)
Quote:
BTW: Another solution (other than only using Linux or changing the engine) is simply to associate .cs files with your preferred IDE.

Not a problem if just do TorqueScript, but for those who do TorqueScript and C#, this wouldn't work. I did the changes myself to the engine and it works for me :)
#10
09/26/2007 (7:48 am)
Wow, someone actually uses C#? Cool. Don't know why, but that possibility never occurred to me :-)

Teach me to be a wisenheimer first thing in the morning!
#11
09/26/2007 (7:57 am)
Well Starsiege Tribes was released in 1999, so I imagine the engine began development sometime in 1998, possibly sooner. Tribes 2 was released in 2001 and although the engine had new features it was still based off the original Tribes engine.

It's likely that the .cs extension that the original Tribes engine used back in '98 was implemented before the C# extension. But yeah, *waaaay* before C# was even thought up sounds a little exaggerated but hey, who cares! :)