Annoying problem when defocusing the Tome4 window

Where bugs go to lie down and rest

Moderator: Moderator

Message
Author
PowerWyrm
Sher'Tul
Posts: 1106
Joined: Thu Nov 21, 2002 9:53 pm

Annoying problem when defocusing the Tome4 window

#1 Post by PowerWyrm »

This often happens when in Bree, having 3-4 other programs running at the same time as Tome4 (WinXP). When I defocus the window to open another window (IE8 for example), wait a bit, then focus the Tome4 window again, I find it frozen and nothing can be done except killing the process... very annoying when you saved your game a long time before...

Repton
Archmage
Posts: 371
Joined: Wed Aug 05, 2009 2:17 am

Re: Annoying problem when defocusing the Tome4 window

#2 Post by Repton »

This is happening to me in Mac OS X too.

Frumple
Sher'Tul Godslayer
Posts: 1517
Joined: Sat May 15, 2010 9:17 pm

Re: Annoying problem when defocusing the Tome4 window

#3 Post by Frumple »

Experiencing the same thing on XP, as well, though not limited to just Bree. One quirk I did notice is that keypresses seem to still be being read; if you're not in the menu when you unfocus, ferex, when you come back you can hit esc->g to save the game, which kicks the program back into functioning... sometimes. Generally have to kill the prog and restart, though.

rmeakins
Wayist
Posts: 22
Joined: Thu May 20, 2010 10:40 pm

Re: Annoying problem when defocusing the Tome4 window

#4 Post by rmeakins »

I've noticed the same behaviour on WinXP too.

I'm trying to duplicate it now, but some different things are actually occurring. Sometimes when I switch tasks then come back to Tome4 many of the keyboard keys are disabled, but not quite all. I can still use the 'g' key to pick up items off the floor and the 'l' key to look, but the arrow keys no longer work, or any other useful keys (like escape or ctrl+x). The mouse still works to hover over monsters and to run to a location. Switching back and forth sometimes fixes this.

Canderel
Sher'Tul
Posts: 1252
Joined: Mon Nov 24, 2003 2:31 pm
Location: South Africa

Re: Annoying problem when defocusing the Tome4 window

#5 Post by Canderel »

Beta 3/2/1?

Beta 1 had an issue when minimized. Then DG made a change that probably didn't fix it, but made it negligible. I think the way it worked (and probably still works) is for every X ticks the PC had allocated more memory, but now when the game doesn't have focus the game is paused, so there shouldn't be any ticks. But I guess the underlying issue that caused the memory to be allocated might still be around.

rmeakins
Wayist
Posts: 22
Joined: Thu May 20, 2010 10:40 pm

Re: Annoying problem when defocusing the Tome4 window

#6 Post by rmeakins »

Beta 3 on WinXP.

Just had the same thing happen as Frumple - the screen would not repaint but I think pressing keys / clicking around would still do things. I think I died, because the music stopped playing and my save game was deleted. Then I clicked around the region where I expected the "Exit" button to be and the screen closed with GDB reporting that the program exited normally.

Seems to be something to do with the screen refresh / tick.

Gwai
Sher'Tul
Posts: 1091
Joined: Wed Apr 27, 2005 1:55 pm

Re: Annoying problem when defocusing the Tome4 window

#7 Post by Gwai »

Seen that on Vista too. I figure Tome4 is a jealous god and doesn't like being second place, ever.

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Annoying problem when defocusing the Tome4 window

#8 Post by darkgod »

Exactly gwai!
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Gwai
Sher'Tul
Posts: 1091
Joined: Wed Apr 27, 2005 1:55 pm

Re: Annoying problem when defocusing the Tome4 window

#9 Post by Gwai »

By the way, for anyone else who has this problem, I have found that one can save with ctrl-s in these situations when no other key combination works. Then even if you have to kill the program, at least you've saved recently!

MikkoMMM
Yeek
Posts: 10
Joined: Thu Jun 10, 2010 11:43 am

Re: Annoying problem when defocusing the Tome4 window

#10 Post by MikkoMMM »

I have the same issue with Windows 7 in ToME4 beta 4. Most of the time only the keyboard stops working but sometimes the game freezes completely.

Antagonist
Higher
Posts: 71
Joined: Sun May 23, 2010 9:55 am

Re: Annoying problem when defocusing the Tome4 window

#11 Post by Antagonist »

Okay, far as I know, this is related to the alt+tab thing.

If you alt+tab, the game never registered that you lifted alt. Which means that when you switch back to the game, it thinks that alt is still pressed. alt+key isn't mapped, so thats why keyboard input fails, and somehow it also much with mouse.

The fix is easy. Press alt. Everything will work again then.

PowerWyrm
Sher'Tul
Posts: 1106
Joined: Thu Nov 21, 2002 9:53 pm

Re: Annoying problem when defocusing the Tome4 window

#12 Post by PowerWyrm »

Any plan to fix this? It's horribly annoying to have to minimize the window before switching to another program and then restore the window to play again. Any window on top of the Tome4 window will irremediably hang the process...

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Annoying problem when defocusing the Tome4 window

#13 Post by darkgod »

I have disabled the code that suspends TE4 while unfocuses until I find the real problem
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Frumple
Sher'Tul Godslayer
Posts: 1517
Joined: Sat May 15, 2010 9:17 pm

Re: Annoying problem when defocusing the Tome4 window

#14 Post by Frumple »

Any progress on this issue in general? At some point between the last time I played (b3 or 4, iirc) and now, the problem seems to have gotten worse -- I can't even minimize the screen without ToME going into terminal lockdown, much less go to another window for a few seconds. Having to either save and exit to change songs or kill the program via task manager and restart after doing so is troubling :(

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Annoying problem when defocusing the Tome4 window

#15 Post by darkgod »

It does ?
Damn .. does it happen for anybody else?

What's the log output when you switch back to tome ? does it says anything ?
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Post Reply