Game Development Community

Troubles running examples with Torsion

by Oscar Gracian · in Torque Game Builder · 05/23/2007 (5:28 pm) · 2 replies

Hello,

I am in the evaluating the TGB and Torsion products, but unfortunatly I have not been able to run/debug the examples with Torsion so before I could decide if it is the product for me, I would appreciate any help.

Here I layout the steps I am currently doing:

With Torsion I open the project located in "..\TorqueGameBuilder\games\Torsion", then in the main.cs I modify the following vars to specify the Mod I would like to try

//---------------------------------------------------------------------------------------------
// Set the mods to run.
// $runWithEditors specifies whether or not the tools mod should be loaded.
// $defaultGame is the main game that will be run at startup.
// Additional mods can be specified with the -mod command line switch.
//---------------------------------------------------------------------------------------------
$runWithEditors = false;
$defaultGame = "scrollerDemo";
$startupProject = "scrollerDemo";
$defaultMods = "scrollerDemo";
$editorMod = "tools";

But the trouble is when I ran it, it just start a BLACK TGB window and could not run the specified demo, in this case the scrollerDemo.

By other hand, regarding to DEBUG config, it seems not working because it looks for TGB_DEBUG.exe, which is not supplied with TGB, So I was wondering if Could I Debug and app with TGB (dose it include the debug build?), or is neccesary to buy the PRO version to compile the debug version (TGB_DEBUG.exe).

Thanks in advance,
Oscar

#1
05/24/2007 (11:24 am)
Hey Oscar.

First off your probably better off creating a new Torsion project file for your test.

When you create it set the "Base Directory" to the '\TorqueGameBuilder\games' folder... not '\TorqueGameBuilder\games\scrollerDemo'. This is a common mistake and usually is the cause of the black TGB window issue.

The debug config isn't required and in the next release of TGB running with the release build of TGB.EXE will allow TorqueScript debugging just as well as the debug version. Look in the Torsion help file for details on the current differences in debugging the debug and release EXE builds.
#2
05/24/2007 (12:34 pm)
Hello Tom,

Thank you very much for your help, I will try the new project method, and about the debug version, thats great news about the upcoming TGB release!

Regards,
Oscar