Orderly Mayhem
May 21, 2012, 01:57:18 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Contact Staff List Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Quitting  (Read 1085 times)
CmptrWz
Newbie
*
Offline Offline

Posts: 40


View Profile
« on: October 18, 2008, 09:27:10 PM »

Alt+F4 works fine in a mission for getting out quickly.

Except that instead of closing gracefully, MAD crashes.......
Logged
OvermindDL1
Casual Support Developers
*
Offline Offline

Gender: Male
Posts: 278

Programmer


View Profile WWW
« Reply #1 on: October 19, 2008, 01:13:18 AM »

Yes, I noticed that too and brought up a while ago, it is because BSer is not handling the WM_Close event and is instead letting it pass to windows, which of course windows will just kind of hard kill the window.
Logged

BS-er
Moderator of Mayhem
Administrator
*****
Offline Offline

Posts: 2150


View Profile
« Reply #2 on: October 19, 2008, 11:26:14 AM »

I simply use Ogre's built-in main loop, just like the Ogre demos.  I want to avoid doing my own platform specifics when I can get away with it.  Ogre handles the WM_CLOSE notification resulting in calls to listener functions.  It turns out I needed to make some corrections to the listener function.  It seems to be working correctly now in my current build.  Thanks to you both.
Logged
bigbadbogie
Newbie
*
Offline Offline

Gender: Male
Posts: 35


R.I.P Lizard. R.I.P Fleshstorm 3. Long live QF2!!!


View Profile WWW
« Reply #3 on: October 19, 2008, 04:35:44 PM »

When I use Alt+tab and Ctrl+Escape at the main menu and then go back into the program, the menu disappears leaving only that cool background effect.
Logged

- 1.3 Patch Tester

My mods:

Complete:
- QF1: Queens Filchers Mod
- Fleshstorm 2: The Harvest

Under development:
- QF2: Essence to a Theif
BS-er
Moderator of Mayhem
Administrator
*****
Offline Offline

Posts: 2150


View Profile
« Reply #4 on: October 19, 2008, 04:41:42 PM »

When I use Alt+tab and Ctrl+Escape at the main menu and then go back into the program, the menu disappears leaving only that cool background effect.

I've noticed that too, but it comes back in a few seconds after clicking and moving the mouse and pressing keys (not sure which of those is actually helpful).  It might be something in the Crazy Eddie GUI system I'm using.
Logged
OvermindDL1
Casual Support Developers
*
Offline Offline

Gender: Male
Posts: 278

Programmer


View Profile WWW
« Reply #5 on: October 19, 2008, 04:52:45 PM »

Ogre handles it by closing its window, but after that you do not delete/close things properly, you only seemed to handle things properly if the game is closed by menu, I'll give it a try again when I get home.  Smiley
Logged

BS-er
Moderator of Mayhem
Administrator
*****
Offline Offline

Posts: 2150


View Profile
« Reply #6 on: October 19, 2008, 05:39:31 PM »

I'll put it in the SVN soon.  I'll post in the Testers forum when ready.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1 RC3 | SMF © 2001-2006, Lewis Media Valid XHTML 1.0! Valid CSS!


Google visited last this page May 12, 2012, 01:45:15 AM