Game Development Community

How to run game without editor?

by James G · in Torque Game Builder · 01/21/2007 (6:11 am) · 3 replies

I'm new and can't figure out how to run a game without invoking the editor.
I've tried the following:

TGB.exe -game scrollerdemo -notools

but all I get is a black screen

I've tried searching here on the GG site and on the TDN but haven't found anything.
If someone could point me in the right direction of how to find the answer, as I am sure this must have been addressed somewhere, it would probably be more valuable than the answer itself.

Thanks.

#1
01/21/2007 (7:36 am)
Look in your main.cs file in your project directory (for the project, not TGB) and you'll see the following:

// Remove the following four lines if you would like to start the game without running the
   // level builder.
   if ($runWithEditors)
   {
      toggleLevelEditor();
      return;
   }
#2
01/21/2007 (12:57 pm)
Thanks alot, that worked.

I was actually a bit skeptical after reading the solution because the "-notools" command line parameter actually sets:

$runWithEditors = false;

which would then skip the call to toggleLevelEditor(), which it does. I haven't looked into yet, but I guess there is some initialization that doesn't get done properly with that flag set earlier in execution or maybe "-notools" does something other than what I assume it should do.

Anyways, thanks again!
#3
01/25/2007 (7:04 pm)
Are you talking about, when you want to send out your game to friends? There is a build function in the builder, isn't that what you are looking for?