Game Development Community

TGB 1.7.3 won't quit

by Patrick Shaw · in Torque Game Builder · 03/31/2008 (5:15 am) · 6 replies

Hi,
When I call "quit();" TGB doesn't quit while I have a game level loaded (quitting from the my main menu works fine). If the game is running in full screen, the computer locks up. If I run in windowed mode, I can kill from the task manager. When tracing it in the script debugger, it locks on the "quit" command. I have also tried a custom quit function that stopped the music, ran "endLevel" on my scenegraph, and then called "quit". In that custom function, it seems to get stuck on "%scenegraph.clearScene(true)" Anyone have any ideas why this might be? I've got a deadline and need to get this working.

UPDATE:
I got it working. I have to manually remove all of my objects from the scene and then run schedule(1000, 0, "quit") to dodge the crash. Not ideal, but at least it works.

#1
03/31/2008 (1:16 pm)
How did you wrangle 1.7.3 out of GG?

;)
#2
03/31/2008 (1:25 pm)
Well, you see I offered to....wait - what's that! (points at the window and tries to edit post's title)

Drat! I can't edit the title. I meant the current version (1.7.2).
#3
03/31/2008 (3:34 pm)
Lol! Its cool. Its pretty hard to keep straight.

That's a strange problem you were having. Calling quit should be the only thing you have to do. Does clicking the program's X box in the corner work while in window mode? Does calling quit from the console work in either the windowed or the fullscreen mode?
#4
03/31/2008 (5:46 pm)
Kevin,
Negative on both accounts. Clicking on "X" button or typing "quit" in the console window doesn't help.
#5
03/31/2008 (7:04 pm)
Are you working on an accursed Macintosh?
#6
03/31/2008 (7:30 pm)
No, I'm developing on the PC.

BTW, this wasn't a problem in TGB 1.5 and (maybe) 1.6.