Building TGB 1.6 in VS 2005 TE ver 8
by Tony A · in Torque Game Builder · 01/16/2008 (2:41 pm) · 3 replies
Hi all,
I am fairly new to TGB and this is my first post. I have been working on my own game for a while using only scripts. Now I need to add/modify C++ source code. I opened the T2D solution file that ships with the TGB 1.6 pro in Visual Studio 2005 (ver 8) and rebuilt the entire solution in debug mode after making some changes of course to the source code. I ended up with two new .exe's:
\program files\GarageGames\TorqueGameBuilder-1.6\tgb\TorqueGameBuilder_DEBUG.exe
and
\program files\GarageGames\ToequeGameBuilder-1.6\tgb\gamedata\T2Dproject\TGBGame.exe
things are looking good so far. when I run the first exe, it prompts to open a main.cs. when i select my game's main.cs, The TGB window shows nothing but black. When i open the main.cs located under \program files\GarageGames\TorqueGameBuilder-1.6\tgb\, TGB runs fine and I am able to load any game I want.
Now the problem is that I don't see the changes I made taking effect.
I also tried adding breakpoints in VS and running the solution in debug mode but the breakpoints are ignored. it's almost like they don't exist.
Your help is appreciated. Thanks in advance.
-Cheers!!
I am fairly new to TGB and this is my first post. I have been working on my own game for a while using only scripts. Now I need to add/modify C++ source code. I opened the T2D solution file that ships with the TGB 1.6 pro in Visual Studio 2005 (ver 8) and rebuilt the entire solution in debug mode after making some changes of course to the source code. I ended up with two new .exe's:
\program files\GarageGames\TorqueGameBuilder-1.6\tgb\TorqueGameBuilder_DEBUG.exe
and
\program files\GarageGames\ToequeGameBuilder-1.6\tgb\gamedata\T2Dproject\TGBGame.exe
things are looking good so far. when I run the first exe, it prompts to open a main.cs. when i select my game's main.cs, The TGB window shows nothing but black. When i open the main.cs located under \program files\GarageGames\TorqueGameBuilder-1.6\tgb\, TGB runs fine and I am able to load any game I want.
Now the problem is that I don't see the changes I made taking effect.
I also tried adding breakpoints in VS and running the solution in debug mode but the breakpoints are ignored. it's almost like they don't exist.
Your help is appreciated. Thanks in advance.
-Cheers!!
#2
Are you still experiencing your behavior issue?
01/25/2008 (6:43 pm)
Sorry I didn't get to answering your first question before you found your answer... as you found out you need to run the TGBGame in debug mode, since the tool will spawn a different app for TGBGame and it won't be in debug mode.Are you still experiencing your behavior issue?
#3
01/31/2008 (9:33 am)
Sorry, I was away for a while. the behavior issue is still there. when i run the game in debug mode using Visual Studio, my behaviors don't work. in fact, when I look in the Console window, I see the warning messages for all my behaviors saying: "BehaviorComponent::addBehavior - Missing Behavior behaviorName". Note that behaviors work fine when the game is run in the TGB editor or Torsion.
Torque Owner Tony A
Default Studio Name
thanks !!