Game Development Community

Can't create new scene

by Laralyn McWilliams · in Torque Game Builder · 06/05/2010 (12:10 pm) · 2 replies

I have a project that has a lot of work in it so far. The scene/level that has the most work in it still runs fine, both starting from TGB and from Torsion.

Any new scene I create for that project automatically crashes when I try to run it--even when it's a new, blank scene with literally nothing going on. Whether I start it from Torsion or from TGB, the window opens and then I get the "TGB has stopped working..." dialog with no way to debug what's causing it to crash.

If I create a whole new project (instead of a new scene) and run it, it works fine.

What could be causing this? I really hope there's an easy solution because recreating my main level file in a new project would be a huge PITA.

Thanks!

#1
06/05/2010 (12:58 pm)
OK, I figured it out and now I feel dumb. I'll post this response so if anyone is doing a search in the future and is similarly stuck on this, you can hopefully feel less dumb. :-)

There was a statement in my game.cs file that was only valid for particular levels, and I wasn't testing against the current level before I executed that statement. Doh!
#2
06/11/2010 (8:48 am)
Thanks for sharing your resolution and we all do those things :)