Template request: use .ts instead of .cs
by Daniel Buckmaster · in Torque 3D Beginner · 04/24/2013 (11:51 pm) · 19 replies
TorqueScript may have been invented before C#, but naming files *.cs didn't make sense even then. In light of the prevalence of C# these days - even sitting side-by-side TorqueScript thanks to DNT - it seems unhelpful to continue to confuse editors and IDEs.
I propose that going forwards (say, from the next template refactor) we maintain TorqueScript files with a *.ts extension.
Discuss?
I propose that going forwards (say, from the next template refactor) we maintain TorqueScript files with a *.ts extension.
Discuss?
About the author
Studying mechatronic engineering and computer science at the University of Sydney. Game development is probably my most time-consuming hobby!
#3
04/25/2013 (4:17 am)
I Agree with this whole Hartley.
#4
... giggles ...
:P
04/25/2013 (5:34 am)
May I suggest Totally Wonderous Awesome Torque Script. abbreviated to *.twats.... giggles ...
:P
#5
04/25/2013 (6:19 am)
The biggest issue with doing that is it will render Torsion to being almost completely useless. Since Sickhead won't be updating Torsion any more and Melv's new gig unfortunately squashed Nucleus being finished we would be left without a full IDE for scripts.
#6
04/25/2013 (8:45 am)
.ts also appears to be recognized as a video format of some sort.
#8
04/25/2013 (11:37 am)
.ts is taken for MPEG-2 Transport Stream. Might have to go with as an alternative simply .torquescript or .torqs
#9
04/25/2013 (11:44 am)
As far as i know the .cs stands for "c script" for torque so then .tcs will be another option.
#11
Ah, okay.
Perhaps this is an opportunity for a developer to create a new product for this. Something that integrates more options and value.
04/25/2013 (1:35 pm)
@Scott,Ah, okay.
Perhaps this is an opportunity for a developer to create a new product for this. Something that integrates more options and value.
#12
Steve: I shouldn't have laughed...
Michael: I guess we won't find a file extension that isn't already taken unless we go the full .torquescript route, but I don't think .ts is likely to be recognised by any text editors. It's certainly a more acceptable clash than C#.
Bolohan: that could work as well.
Demolishun: like Vim? ;P
04/25/2013 (2:49 pm)
Demolishun et al: good point about Torsion. On the other hand, if it's not going to be updated, what other advances might we forgo to maintain compatibility? I guess Tom Spilman is who we should contact about this?Steve: I shouldn't have laughed...
Michael: I guess we won't find a file extension that isn't already taken unless we go the full .torquescript route, but I don't think .ts is likely to be recognised by any text editors. It's certainly a more acceptable clash than C#.
Bolohan: that could work as well.
Demolishun: like Vim? ;P
#14
Anyway, I'd rather go make Bill Gates change his extension. We had it first. He should use .csh.
04/25/2013 (7:11 pm)
Yeah, Vim....Anyway, I'd rather go make Bill Gates change his extension. We had it first. He should use .csh.
#15
I emailed Tom about Torsion... seems like we need to at least figure out Sickhead's position on this.
04/25/2013 (7:19 pm)
I contest that if we all used Vim the world would be a happier place.I emailed Tom about Torsion... seems like we need to at least figure out Sickhead's position on this.
#16
I blocked out the amount of money as I am not sure he wants that published in the forums, but it was significant.
04/25/2013 (10:54 pm)
Great response from SickHead:Quote:
Hey Daniel & Frank.
Yea... for years we've wanted to open source it, but it just continues to sell... it made around $XXX last year before the GG royalty split. It helps pay for a few things around the office and we haven't touched the code since 2005 or so. This makes it a tricky situation for us.
I would like to work out a way we could put it up on GitHub, but still sell it or somehow encourage people to buy it. Still mulling that over, but I see no perfect solutions so far. I may have to give up on the revenue it does bring in.
Still if we did we would need to talk to GG about it to be sure they are good selling something that can be freely downloaded and compiled.
Finally there is some proprietary stuff in there we used for copy protection and the GG system for unlocking the software. We would need to strip that out or something... not sure.
So a few things to work out before we could do anything with it.
Tom
I blocked out the amount of money as I am not sure he wants that published in the forums, but it was significant.
#17
But hey, this is still a pretty minor issue :P.
04/26/2013 (5:39 am)
I am impressed. But yeah, this looks like a tricky issue. I suggested to Tom it might be in the Steering Committee's interest to see if Sickhead will at least let someone into their codebase to provide small patches, even if open-sourcing is a long-term goal.But hey, this is still a pretty minor issue :P.
#18
There is a preferences.xml file that looks like it holds the defaults for the ScriptExtensions values, so it may be as simple as updating that and doing a new installer. At the very least, it would be simple enough instructions for someone to update their project. If there was a transition period where both extensions where supported, it would reduce the burden even further.
Having Torsion open source would be a wonderful thing, but I think you could get away with a new script extension and not have Torsion be completely unusable.
04/26/2013 (11:46 am)
Wouldn't it be as simple as updating the list in the Script Extensions section of the preferences, and in the Script Scanner Extensions of the project properties within Torsion? As a test I added torqs as an extension in both places, and changed the extension of one of the script files. Torsion opens it up with full syntax highlighting and everything, and the pre-compile locates errors within the file. There is a preferences.xml file that looks like it holds the defaults for the ScriptExtensions values, so it may be as simple as updating that and doing a new installer. At the very least, it would be simple enough instructions for someone to update their project. If there was a transition period where both extensions where supported, it would reduce the burden even further.
Having Torsion open source would be a wonderful thing, but I think you could get away with a new script extension and not have Torsion be completely unusable.
#19
04/27/2013 (9:50 pm)
Oh. Good news, thanks for actually testing that!
Torque Owner Demolishun
DemolishunConsulting Rocks!