Game Development Community

Setting Torque up on Windows

by Andrew · in Torque Game Engine · 10/19/2005 (1:03 am) · 7 replies

Can anyone point me to a resource or anything of the sort which will tell me how to set TGE up on Windows? I read the docs but it requires Visual Studio and I don't have that. I tried setting up TGE on GNU/Linux but it didn't work out.

#1
10/19/2005 (1:18 am)
Hi Andrew,

The Torque Build Environment might be what you are looking for ;)

But i would prefer that you get a copy of Visual Studio 2005 Express Edition (its free). Its a little tweaking tho to get the Platform SDK and DirectX installed.
#2
10/19/2005 (1:39 am)
I'll try TBE out. Thanks for the link=)
#3
10/19/2005 (5:24 am)
You could also check out http://torque.smdlabs.com/
It has a video tutorial on setting up torque with Tom Spilman's "Enhanced Debugger", using Torque Build Environment. It is in the "quickClips" section.

Happy compiling!
#4
10/19/2005 (5:52 am)
I've successfully installed and compiled Torque. Thanks guys! One thing, whats that "Enhanced Debugger" thing?
#5
10/19/2005 (5:56 am)
I've written a tut and support files which can be downloaded here that shows how to set up Torque 1.3 and TBE out of the box to any folder.
www.drewfx.com/Torque/TorqueIDE_HelpVersion2.zip

there's also a thread about it...
www.garagegames.com/mg/forums/result.thread.php?qt=33474

Enhanced telnet debugger can be found here. It works by adding a bit of code to Torque and then allows you to use Torsion to debug your scripts, so you can stop the game, inspect variables and continue.
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=8294
#6
10/19/2005 (5:59 am)
I see. What about Torsion then? I've heard about it. I'm currently using Eclipse, what difference is there between Eclipse and Torsion?
#7
10/19/2005 (6:15 am)
I use Eclipse to edit the Torque SDK when required.

Torsion is purely used to edit .cs scripts - so it's game specific. It's higher level, you are basically programming the game scripts only, as if you were using Eclipse or Visual Studio, but Torsion just works on the scripts not c source code.

So for example say you are trying to debug why player.cs changes are not working, you open up player.cs in Torsion - locate the definition for the player, set a breakpoint with f9, run the game from Torsion and when it hits the breakpoint the game drops back to Torsion while still running in the background.

At that point you can step through the code by pressing the F10 key, drag and drop variables/members into the watch window and see what they contain and how they change through each function/method. If the current script calls another function you can press F11 to step into the new function and step through each line using F10 again, and once you want to come out back to the calling function you can press Shift F11 and continue on.

Once you have finished analysing the code you can hit F5 to continue. A console shows any syntax errors and the loading events.

Unlike Visual C++ and Eclipse you cannot make code changes during a debug session and Apply Code Changes - you must make the change, save. Stop and re-run. I believe they will implement this in the final release of Torsion.