Game Development Community

Changing the extension of script files

by Nikhil Haldar-Sinha · in Torque Game Engine · 04/18/2006 (2:00 pm) · 3 replies

I'm currently working on changing the extension of all the script files and references in code. Is there a tool or something that will take care of it? I do like torque, but don't have to have to do this again when another version is released. The problem with the .cs extension is that it's what C# uses, and that's the main language I use for my code.

Thanks.

-Nick

#1
04/18/2006 (2:24 pm)
I think you can do that in console.cc (h). But you might want just to add an additional parser for your extension. This way all the existing code still works, and all the code you write you'll use your custom extension. Though I haven't tried this myself.

Be aware though that TorqueScript devenvs (Such as torsion) do not support anything else but .cs files (Though it's in planning)
#2
04/18/2006 (2:53 pm)
Well, a good IDE seems to take care of all my problems. I was planning to write a plug-in for VS.NET 05, but Torsion looks like it gives me everything I need.
#3
04/18/2006 (3:42 pm)
I'm currently working on something for vs which should support TorqueScript/project/debugging. I'm just at the beginnig at this huge task, if you have any suggestions on what should be in there feel free to give me comments.