Game Development Community

Questions about Torque. Newby here

by Jonathan Morin · in Torque Game Engine · 06/07/2005 (6:30 am) · 2 replies

I purchased the Torque engine yesterday. Is everything done through scripting? Can I access the API functions directly? If I have to do things through the scripting engine how do I debug the code? I'm used to writing my own game code afer working at a major game company for 8 years. I don't have the time or budget to write my own engine, that is why I chose Torque. Any help you can give me to get used to Torque would be greatly appreciated.

-Jon-

#1
06/07/2005 (6:37 am)
You get the C++ source code for you $100 so you can make TGE do ANYTHING you want. However, you can accomplish loads through TorqueScript, which is quite easy to learn. I would definitely recommend "3D Game Programming All in One" by Ken Finney to get you started.

With regards debugging TorqueScript, this is done through the console in the game (press tilde (or whatever that key is called under Esc?) to access it). It is useful to liberally scatter echo statements throughout your scripts to help in this process.
#2
06/07/2005 (6:38 am)
Jonathan - You have access to the full source code, not just an api... It is in the Torque\sdk\engine folder... if you dont have a compiler check out tbe (Torque Build Environment)

As for debugging the scripts... The console (hit ~ or open drive:\Torque\sdk\example\console.log)

and look for errors. syntax errors will be marked with ## symbols on both sides of hte error.

Oh ya... you can access the source functions directly by exposing them to the console via consolemethods... this info is well detailed in the torque documentation. Be sure to check it out.,... Also, most of your questions can be answered by using the Garagegames google search (link at the top of this page)