Game Development Community

Armadillo Software Passport and TGB?

by Mike Wright · in Torque Game Builder · 05/26/2007 (4:34 am) · 4 replies

Has anyone here used Armadillo Passport Software to wrap their game with? We are having a problem with the reminder screen not showing up when the game is shut down. A rep from Silicon Realms stated on the message boards that this is a problem with certain game engines. He thinks it is because the program does not shutdown DirectX properly or that Windows is told to terminate all processes related to the game which include the Armadillo Software Passport. Basically what happens for us is the user presses Quit and the game shuts down but we get a black screen. If we click on the black screen it goes away and TGB shuts down properly.

#1
06/01/2007 (8:13 pm)
Yep, I had that problem. We've got a fix over here, but we are testing it right now. When it's done, I'll post a link to it.
#2
07/06/2007 (6:05 pm)
I'm having this problem also, did anyone figure it out?
#3
07/06/2007 (11:52 pm)
Amaranthia got a workaround for it... but as far as i know, it hasnt been published yet.
#4
07/11/2007 (6:19 pm)
I could have sworn I'd posted a fix for this a while back, but I guess not. There are two problems TGB has with Armadillo/Software Passport. The first is the black window bug on shutdown that you get when quitting in certain ways that don't kill the window correctly (so we need to make sure it's destroyed on exit regardless of how we quit the game). Clicking on the window skips the DRM on shutdown. The second problem is having the DRM window show up, but not having a cursor visible because ShowCursor(FALSE) was called more times than ShowCursor(TRUE) while the game was running (it keeps a reference count so you have to keep showing it until it returns 0). The easiest way to fix these is to add something like this to the end of your WinMain() function in winWindow.cc:

if (winState.appWindow != NULL)
{
   DestroyWindow (winState.appWindow);
   while (ShowCursor(TRUE) < 0);
}