Game Development Community

Cant find TGB build

by Vlad I · in Torque Game Builder · 01/01/2012 (8:42 am) · 5 replies

I set up compiler correctly (using Visual C++ 2008 Express edition)
I followed this link tdn.garagegames.com/wiki/TGB/Setting_up_Compiler
Made build solution with no errors, now where do I find my new TGB build ? :)

#1
01/01/2012 (9:27 am)
When I debug it "Locate Game Entry Script" window pops up asking for main entry script (main.cs)
#2
01/01/2012 (3:27 pm)
If you use my steps for setting up the compiler, you'll see that it's in the "tgb/gameData/T2DProject" directory. In those same steps, you'll see how I add a post-compile step to copy this into my current project's directory.

When setting up the debugger, you need to go to the project's properties and select the "Debugging" property. You'll see a field called "Working Directory". Make sure you set this to your current project's directory so that it acts as if it is running from there in the first place.
#3
01/02/2012 (1:13 am)
Hi William , thank you for your help.
I don't quite understand what is happening. So the new build should be in my folder where I installed TGB?
I got TorqueGameBuilder_DEBUG.exe appeared in C:1TGBtgb , it has today's date. But TorqueGameBuilder.exe has changed date. Does it mean Debugging and realising went ok?

When I try to release it "No Debugging Information" window appears, it says - Debugging information for 'TorqueGameBuilder.exe' can not be found or does not match. Binary was not built with debugging information. Do you want to continue ? I press, yes.
Then TGB starts, I open my project, run it and I dont find my changes took place which I made to the source .

(I simply want to have my object mounted on a Path to have random speed upon reaching a node with out the object being sent to start node to take effect. There is bug I reported about. Thanks to Patrick W. for his help btw)
#4
01/02/2012 (3:11 am)
TGB solution (T2D SDK.sln) has multiple projects, two of them are TGBGame and TorqueGameBuilder. Builder compiles into level editor executable, and TGBGame into actual game executable you would distribute with your game.

Once you've located where your compiled executables are you can rebuild the project to make sure those are correct files - creation date and time for compiled file should change to current time.

Every time you recompile executables you need to move new files - builder executable to where you have level builder installed, and game executable to your game project folder. When you are running TGBGame from the wrong folder it won't be able to find main script and will ask you to specify where it is. You can copy files manually, or check a link William provided and add custom step so they are copied automatically.

Also there are two build presets - a Release version (comes out as TGBGame.exe), and slower and larger Debug version (TGBGame_DEBUG.exe) that contains debugging information allowing to debug executable. When you are running executable from Visual Studio (green triangle or F5 key) it assumes you want to debug your application and will look for debugging information, which is not there for Release version - hence "No Debugging Information" message.

To just use any changes you've made to the source:
1) Compile release version of TGBGame
2) Copy new TGBGame.exe to your game project directory, replace old executable

To debug game executable:
1) Compile Debug version of TGBGame
2) Copy new TGBGame_DEBUG.exe to your game project directory
3) Open TGBGame project properties, select Debug preset and check Debugging settings - Command should point to that debugging executable, and Working Directory to your game project folder
4) Make sure current preset is Debug for Visual Studio, hit green triangle to run the game in debug mode.
#5
01/02/2012 (5:00 am)
Thank you for thorough explanation Rpahut!
Now I got it working! After copying the TorqueGameBuilder.exe from the builder's folder to my game folder and renaming it to MyGame.exe the changes I made to the source take effect.
The only problem is that I can't run my game from the editor , when I press play scene it sort of brings back the TGB editor almost immediately.

However, when I copied the same compiled executable TorqueGameBuilder.exe and renamed to TGBGame.exe in the BehaviorShooter folder, the shooter played from the TGB editor (play scene button) and from the folder by executing the .exe file with out a glitch.
What causes it not run from the TGB editor of my game?

Thanks to you both again, I wouldnt have made it with out you guys.