Game Development Community

Dreamweaver .cs files?

by Kirk · in Torque Game Builder · 03/16/2008 (4:46 pm) · 10 replies

I am running TGB 1.7.2 on an Intel Core 2 Duo iMac @ 2.33 GHz with 2 GB Ram. I started the Tutorials and in the Fish Tutorial when I looked at the main.cs file it had been saved in Adobe Dreamweaver CS3. In fact it appears that all the .cs files have been saved in Dreamweaver. Is Dreamweaver an acceptable place to edit .cs files? Should I redo these files in Textedit using plain text or can I use the Dreamweaver files? What format should I save them in, HTML? Any help with hits would be greatly appreciated! Thanks!

- Kirk

#1
03/16/2008 (5:47 pm)
Actualy I believe that is just Dreamweaver thinging Torque Script .cs files are something else. Cascade Sheets I believe is also another .cs file extension. You can open .cs files with just about any text editor and it will work just fine as long as it doesnt add any extra info into the actual file itself. So try opening the main.cs up with say notepad and see if dreamweaver added anything to the top or bottom of the file. If not then it should be ok to edit them with dreamweaver I spose. Just make sure anytime it gives you a option to save it as a text file with the extension .cs on the end. Torque Script .cs files are just plain text files is all.
#2
03/16/2008 (7:27 pm)
So are c# file extension is .cs , I think. And Dreamweaver can use c# code.
#3
03/16/2008 (8:22 pm)
Yeah, the thing is adding additional comments, formatting, and commands. So do you recommend I go through and try to correct all the instances where Dreamweaver kidnapped the .cs files? Hell, I haven't even learned enough scripting to know what should be there as opposed to what @#$%&***!!! Dreamweaver has plugged in.
- Kirk
#4
03/16/2008 (8:27 pm)
If you're using windows you can set all files of the same extension to open with only one program pretty easily. It's probably much better and efficient to use a torquescript program instead of dreamweaver.
#5
03/16/2008 (8:58 pm)
I went through and did a complete uninstall on Dreamweaver CS3. Then I uninstalled TGB Pro 1.7.2, the TGB Adventure Kit, and the TGB Platformer Starter Kit. I then reinstalled all the TGB software and accessories. Tahh-Dahh! Normal .cs files in everything. Gonna have to live without Dreamweaver from now on!

- Kirk
#6
03/17/2008 (8:48 am)
...or you could just not allow Dreamweaver to open up .cs files. It has been suggested that with Torque2, and hopefully TGB have the script extensions changed to ts or something similar.
#7
03/17/2008 (8:52 am)
While the syntax highlighting would be borked, there's nothing that says that Dreamweaver can't edit text files just as efficiently as textpad.
#8
03/17/2008 (9:03 am)
You really didn't have to uninstall anything to set it up so that dreamweaver doesn't open cs files. Right click one of the files, select "open with", then "choose program", select the program you want and check the box that says "always use this program to open files of this type". Have all your programs living in harmony.
#9
03/17/2008 (9:14 am)
I think it would be great if in a future edition Torque changed the file extensions away from the .cs convention, but then you would have a huge outcry from users unable to make older tutorials run or partially finished projects translate seamlessly; something the fine folks from Torque who maintain these boards might not look forward to! In any event, at the moment I am more interested in TGB than Dreamweaver CS3, so no big loss! I'm really having fun playing around with TGB! Nice thing is that I don't yet understand enough to get myself in deep trouble! :)
#10
03/17/2008 (9:22 am)
Good idea Sam! I'll try that later on. I was mainly frustrated because Dreamweaver converted everything (including the .cs files in TGB,) immediately on download. Truthfully I don't have enough experience with TorqueScript yet to know if the additional content Dreamweaver was adding would result in problems!

- Kirk