Game Development Community

SceneWindow2d not found?

by USC - IMD student 9 · in Torque Game Builder · 12/03/2006 (4:59 pm) · 1 replies

I am receiving this error message:

Problem saving level. There was a problem saving your level as one did not exist. One has b een created for you to work in and you may now save your level properly.

The problem is, saving the level does not correct this problem; the game will not load--but the sounds will. In the console, it says it can't find scenewindow2d. Why is this? Does anyone have a remedy for this, short of building the level again...? Any info would be much appreciated. Thanks!

#1
12/04/2006 (5:57 am)
SceneWindow2D is the name of the default scene window in your mainScreen.gui file. By default, your project's StartGame function in game.cs executes mainScreen.gui, adds it to the canvas, and then loads a level to SceneWindow2D. If you fail to load mainScreen.gui in StartGame, SceneWindow2D will not exist. Also, if you don't set MainScreenGui as the canvas content, it will not display whatever level is loaded into SceneWindow2D.

If you accidentally borked your game.cs or mainScreen.gui, you can copy them from a new project, since they are not project-specific.

Are you saying that it continues to say that it creates a new level for you even when you try to run an existing level?