TorqueScript Question
by Zuero · in Torque Game Engine · 07/18/2008 (2:14 pm) · 12 replies
In order to use TorqueScript, do you absolutely need Torsion, or is there already a built in TorqueScript Editor. If there is can someone let me know how to access it, or if not, tell me if there are other TorqueScript Editors.
#2
07/18/2008 (2:32 pm)
Notepad works.
#3
At the VERY least I would recommend ConTEXT, with the downloadable Torque Script highlighter. That will give you code highlighting and (I believe) code folding.
Don't underestimate the time that code highlighting will save you. It acts as a primitive, quick syntax checker for your script. With code highlighting I can tell write away when I have typed "fnuction" instead of "function" rather than having to wait until I run the game and something doesn't work and I have to track it down, etc etc.
Other (essential IMO) things that Torsion gives you:
* Text searching across all the scripts in your project ("Where is this function called?")
* Auto-complete code helpers ("What are the parameters of this function?")
* Notification of your scripts failing to compile, before you even start the engine (big time saver)
* Integrated DEBUGGER with BREAKPOINTS
Seriously, that last one is so SO SOOOO huge! Problems are so much easier to find and solve if you can throw a Breakpoint in your code (the code stops executing there and waits for you), and then you can watch it execute one step at a time and inspect variable values on the fly. This functionality will (without a sweat) save you man-months or man-years of time tracking down problems.
IMO the benefits of Torsion for the cost is an absolute no-brainer.
07/18/2008 (3:56 pm)
Notepad is also terrible.At the VERY least I would recommend ConTEXT, with the downloadable Torque Script highlighter. That will give you code highlighting and (I believe) code folding.
Don't underestimate the time that code highlighting will save you. It acts as a primitive, quick syntax checker for your script. With code highlighting I can tell write away when I have typed "fnuction" instead of "function" rather than having to wait until I run the game and something doesn't work and I have to track it down, etc etc.
Other (essential IMO) things that Torsion gives you:
* Text searching across all the scripts in your project ("Where is this function called?")
* Auto-complete code helpers ("What are the parameters of this function?")
* Notification of your scripts failing to compile, before you even start the engine (big time saver)
* Integrated DEBUGGER with BREAKPOINTS
Seriously, that last one is so SO SOOOO huge! Problems are so much easier to find and solve if you can throw a Breakpoint in your code (the code stops executing there and waits for you), and then you can watch it execute one step at a time and inspect variable values on the fly. This functionality will (without a sweat) save you man-months or man-years of time tracking down problems.
IMO the benefits of Torsion for the cost is an absolute no-brainer.
#4
07/18/2008 (4:28 pm)
Most serious Torque devs I know use Torsion. I generally use TextPad with some syntax highlighting, as it's my default text editor. But I don't do much TS work; if I was going to I would switch.
#5
The same three suggestions I make every time:
Torsion (your best option)
Codeweaver (your best free option)
Notepad++ (handy for fast edits when you don't want to wait for a full IDE to load up)
07/19/2008 (3:39 pm)
The obligatory post I make every time I see notepad suggested for editing TorqueScript and how you shouldn't use it as it can add binary garbage to the file making it unusable.The same three suggestions I make every time:
Torsion (your best option)
Codeweaver (your best free option)
Notepad++ (handy for fast edits when you don't want to wait for a full IDE to load up)
#6
07/19/2008 (7:21 pm)
I use torsion, but Tribal ide is free. Outdated, but still works fine. I used it before I purchased torsion.
#7
07/19/2008 (7:58 pm)
If you use a mac, xcode is perfect, especially if you put in the torquescript library.
#8
07/19/2008 (10:05 pm)
Well thanks for your advice. And I just purchased Torsion just a few minutes ago. So I guess Torsion is the way to go :)
#9
07/20/2008 (7:10 am)
Congrats. You'll love it.
#10
07/20/2008 (8:45 am)
To chime in here, if you copy code from the official docs or from online pages, you might end up with hidden characters. As Scott and the others said, copying this code into Notepad or Wordpad could lead to some major syntax errors and hard-to-track bugs. Using an editor with syntax highlighting and debug printouts will help you catch these problems.
#11
07/22/2008 (8:29 pm)
What's the benifet of using another program besides notepad?
#12
07/22/2008 (8:58 pm)
Uh, isn't that what everyone just got finished talking about?
Associate Phillip O'Shea
Violent Tulip
If you Google codeweaver, you will find another TorqueScript editor (which is free), but it is no longer being developed.