Game Development Community

Can not load level.

by Jace · in Torque Game Builder · 03/21/2006 (11:04 pm) · 1 replies

Error: Error loading level ~/data/levels/level1.t2d. Invalid file.

I am just calling StartGame with the above parameters but if you folks need to see more here it is!

function initializeProject()
{
   // Load up the in game gui.
   exec("~/gui/mainScreen.gui");
   
   // Exec game scripts.
   exec("./gameScripts/game.cs");
   
   // Remove the following four lines if you would like to start the game without running the
   // level builder.
   // if ($runWithEditors)
   // {
      // toggleLevelEditor();
   //   return;
   // }
   
   // This is where the game starts. Right now, we are just starting the first level. You will
   // want to expand this to load up a splash screen followed by a main menu depending on the
   // specific needs of your game. Most likely, a menu button will start the actual game, which
   // is where startGame should be called from.
   // startGame("~/data/levels/baseLevel.tgb");
   // level1.t2d
   startGame("~/data/levels/level1.t2d");

Thanks in advance!

-Jace

-Edit

Noticed it is very early and I left out some much needed detail to this post, I am trying to load a level I created just for learning purposes with no editors. I want to be able to ship this "mock" level to friends of mine again with no editors.

#1
03/22/2006 (2:21 pm)
Tried every tutorial I can find nothing seems to work with Beta2!