Game Development Community

TGB fails to run...

by John Nichols · in Technical Issues · 11/29/2006 (4:00 pm) · 8 replies

Hi all,
Here is where I am at. I get a clean build of TGB with MSVC++ Express. When I choose run I get this:

Failed to open "main.cs"

then I click on OK and another info box pops up with this:

Failed to initialize game, shutting down.

Will someone help, HELP!
Thanks for reading.
By all.

About the author

Recent Threads


#1
11/29/2006 (6:27 pm)
Is your executable in the examples folder?
#2
11/30/2006 (12:34 pm)
Both of my executables are in my games folder. my engine folder is at the same level as my games folder. Here is the way I set up my files:

C:\TGB\3\games\TGB_DEBUG.exe

FYI, here is a look at how I set up the TGB directories. When I need a new project, I just create a folder named "4" and copy the contents of the 3 folder into 4. I do things this way for convenience. My setup right now looks like this:

C:\TGB\3\engine\bin
C:\TGB\3\engine\lib
C:\TGB\3\engine\source
C:\TGB\3\engine\compilers\VisualStudio 2005\T2D SDK.sln //the solution file where is as is from garagegames

I ran the debugger and the executable crashes with a strange error message, it says something like "There is no code to execute here" I think. Here is the line of code where it crashes inside of the file winWindow.cc:

S32 retVal = run(argv.size(), (const char **) argv.address());

This line of code succeeds a couple of times, but at the third try I get that weird message at another place in yet another file. Thanks for having a look David. It is much appreciated. Bye for now.
#3
11/30/2006 (12:35 pm)
Both of my executables are in my games folder. my engine folder is at the same level as my games folder. Here is the way I set up my files:

C:\TGB\3\games\TGB_DEBUG.exe

FYI, here is a look at how I set up the TGB directories. When I need a new project, I just create a folder named "4" and copy the contents of the 3 folder into 4. I do things this way for convenience. My setup right now looks like this:

C:\TGB\3\engine\bin
C:\TGB\3\engine\lib
C:\TGB\3\engine\source
C:\TGB\3\engine\compilers\VisualStudio 2005\T2D SDK.sln //the solution file where is as is from garagegames

I ran the debugger and the executable crashes with a strange error message, it says something like "There is no code to execute here" I think. Here is the line of code where it crashes inside of the file winWindow.cc:

S32 retVal = run(argv.size(), (const char **) argv.address());

This line of code succeeds a couple of times, but at the third try I get that weird message at another place in yet another file. Thanks for having a look David. It is much appreciated. Bye for now.
#4
11/30/2006 (12:40 pm)
You should ask this on the private forums since it relates to compilation and source code issues. I have not seen anything even remotely similar to that behavior, though.
#5
11/30/2006 (2:54 pm)
Private forums? I am not familiar with that. How so?
#6
11/30/2006 (3:02 pm)
*EDIT* Deleted due to bad link.

Go to the forums page, and there should be a forum branch called TGB Private Forums. That's where you post engine questions and concerns.
#8
11/30/2006 (6:40 pm)
Hey people GarageGames uploaded a new version of TGB PRO today! This may solve some of our compiler problems. Get it now!