TGB 1.5b2 Support
by Eli · in Torsion · 04/12/2007 (10:42 am) · 3 replies
In order to get Torsion (v1.1.53 Beta) to work with TGB 1.5b2 I did the following and I'm now able to run and debug for within Torsion.
I copied the following files from the TorqueGameBuilder\tgb\gameData\T2DProject directory into the base of my standalone game directory i.e. ( c:\Dev\Torque\Test ):
glu2d3d.dll
ignition.dat
OpenAL32.dll
opengl2d3d.dll
TGBGame.exe
unicows.dll
I created a new Torsion project in the base of my standalone game directory i.e. ( C:\Dev\Torque\Test\Test.torsion ):
.torsion project file:
Test
main.cs
cs; gui
Test
TGBGame.exe
true
true
true
false
TGE
HEAD
true
Then in my C:\Dev\Torque\Test\game\main.cs file I changed the startGame method to force the level that I want to test.
//startGame( expandFilename($Game::DefaultScene) );
startGame( expandFilename("game/data/levels/L1.t2d") );
Is this the best way to do this?
I copied the following files from the TorqueGameBuilder\tgb\gameData\T2DProject directory into the base of my standalone game directory i.e. ( c:\Dev\Torque\Test ):
glu2d3d.dll
ignition.dat
OpenAL32.dll
opengl2d3d.dll
TGBGame.exe
unicows.dll
I created a new Torsion project in the base of my standalone game directory i.e. ( C:\Dev\Torque\Test\Test.torsion ):
.torsion project file:
Then in my C:\Dev\Torque\Test\game\main.cs file I changed the startGame method to force the level that I want to test.
//startGame( expandFilename($Game::DefaultScene) );
startGame( expandFilename("game/data/levels/L1.t2d") );
Is this the best way to do this?
#2
And I have tried every combination I can think of.
Most disappointing that I cant debug my TGB code.
07/17/2007 (11:34 am)
Simply put , it does not work with TGB, all I get is executable launch failure.And I have tried every combination I can think of.
Most disappointing that I cant debug my TGB code.
#3
07/17/2007 (11:39 am)
@Andrew - The 1.1.130 beta has been out for a few weeks and works just fine with TGB 1.5.
Associate Tom Spilman
Sickhead Games
Justin has informed me that how it will work is that TGB will register the TGBGame.exe with windows. So just executing it without a path to it should work. So i need to fix Torsion to not check for EXE existence before i run.
At least that is the plan. I'll try to get a build out soon.