EndGame() no longer ends game and Armadillo wrapping
by Dan Phillips · in Torque Game Builder · 07/06/2007 (6:03 pm) · 4 replies
When I call endGame() the screen goes black but the game doesn't close like it used to and I can't figure out why. The endGame() function is basicly the same.
I was using quit() for a while but I think it was messing up Armadillo, my DRM. None of the examples use quit() so I'm not sure if it should be used or not. Armadillo wasn't showing the after game reminder message and I found this in their FAQ
You either have your program written to send terminate_process messages to all related threads, or the development system (language) you are using does this. Sending terminate_process messages will terminate SoftwarePassport/Armadillo's monitoring thread, which among other things is responsible for displaying the Purchase Reminder screen when the protected program shuts down.
I was using quit() for a while but I think it was messing up Armadillo, my DRM. None of the examples use quit() so I'm not sure if it should be used or not. Armadillo wasn't showing the after game reminder message and I found this in their FAQ
You either have your program written to send terminate_process messages to all related threads, or the development system (language) you are using does this. Sending terminate_process messages will terminate SoftwarePassport/Armadillo's monitoring thread, which among other things is responsible for displaying the Purchase Reminder screen when the protected program shuts down.
#2
07/09/2007 (12:18 pm)
I have seen this issue with Armadillo as well. It might also be related to the fact that sometimes when Torque crashes, I can still see an instance running. Apparently there are cases when the process is not ended, it keeps running but it has no window. Because it's still running, Armadillo won't kick in. I've not looked any further than this. I'm not sure how to solve it except to look into the engine source.
#3
07/09/2007 (11:20 pm)
I found this http://gmc.yoyogames.com/index.php?showtopic=299376&hl= if anyone else is having problems with TGB and Armadillo.
#4
garagegames.com/mg/forums/result.thread.php?qt=62639
If you don't have the source, something like Amanda and Bryce's program you linked above is what you'll want.
07/11/2007 (6:54 pm)
Assuming you have the source, go here for a fix:garagegames.com/mg/forums/result.thread.php?qt=62639
If you don't have the source, something like Amanda and Bryce's program you linked above is what you'll want.
Torque Owner Martin Andresen
Default Studio Name
To actually quit the game you should call quit().