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
and is more nice say "Torque Script (ts)" isntead of "C script (cs)"
:D
tnks
About the author
#2
edit: Damn grammar teacher is watching.
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.
#4
ren *.cs *.ts
... just realized that this will just rename the files, and you wont be able to compile duh
09/25/2007 (11:17 am)
In dosren *.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
It is a good suggestion though and I will be sure to mention it to the appropriate parties.
09/25/2007 (1:02 pm)
To be fair...Torque was using .cs *waaaay* before C# was even thought up. =PIt is a good suggestion though and I will be sure to mention it to the appropriate parties.
#7
(But Gvim is easy to customize and I can add whatever extensions GG finally comes up with.)
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
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.
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
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 :)
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
Teach me to be a wisenheimer first thing in the morning!
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
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! :)
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! :)
Associate David Montgomery-Blake
David MontgomeryBlake