Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: deadmoney5 on August 25, 2005, 07:08:40 pm

Title: Mame losing focus when launching from Mamewah
Post by: deadmoney5 on August 25, 2005, 07:08:40 pm
This just started happening...

Sometimes When I launch a game from Mamewah, I see the mame command line flash and minimize and I have a black screen.  I can hear the game in the background..

Of course I can just alt-tab to get the focus back...but...

Now what did I do (or the kids do)?
Title: Re: Mame losing focus when launching from Mamewah
Post by: SpamMe on August 26, 2005, 06:12:01 am
I've been having the same problem for some time now, and haven't been able to find a solution.
Title: Re: Mame losing focus when launching from Mamewah
Post by: Minwah on August 26, 2005, 10:14:11 am
Well I'd never seen the problem...until very recently when testing a new beta on my cab.

Firstly make sure you have no other apps running (not sure if this helps or not yet), and also try the {safelaunch} commandline flag.

Let me know if you have any other info as I'll be trying to squash this bug soon...
Title: Re: Mame losing focus when launching from Mamewah
Post by: Minwah on August 26, 2005, 11:31:10 am
What I said in my previous reply seems to be right...please see this thread:

http://www.mameworld.info/ubbthreads/showthreaded.php?Cat=&Number=45019&page=0&view=collapsed&sb=5&o=&fpart=1&vc=1&new=1124959721
Title: Re: Mame losing focus when launching from Mamewah
Post by: deadmoney5 on August 26, 2005, 05:51:58 pm
You know what it must be....

I recently installed the light gun driver and have it running in the background...

I guess more people will have this problem if they are using their PS2 lightguns...
Title: Re: Mame losing focus when launching from Mamewah
Post by: deadmoney5 on August 26, 2005, 07:08:16 pm
well...it aint that...

I closed out the light gun program and it still loses focus..

the weird part is that it only does it SOMETIMES...?
Title: Re: Mame losing focus when launching from Mamewah
Post by: SpamMe on August 26, 2005, 07:37:12 pm
the weird part is that it only does it SOMETIMES...?
Same here, happens about 50% of time time.
Title: Re: Mame losing focus when launching from Mamewah
Post by: Scoobie on August 27, 2005, 12:06:21 am
Same here.  This started recently and only happens about half the time...very strange.  I'm using MW v 1.60 and it's been stable until about a week ago.   ::)

I posted the question of where to place the {safelaunch} in the Mamewah forum.
http://www.mameworld.info/ubbthreads/showthreaded.php?Cat=&Number=45280&page=0&view=expanded&sb=5&o=&fpart=1&vc=1

Title: Re: Mame losing focus when launching from Mamewah
Post by: ahmer on August 27, 2005, 04:56:42 pm
Quote
I posted the question of where to place the {safelaunch} in the Mamewah forum.


In mamewah's INI folder,look at the specific emulator Ini file.(mame.ini)

### Execution Settings ###
emulator_executable                       c:\mame\mame.exe
commandline_format                        [name]{nodosbox}{safelaunch}


btw,I don't have any problem with mamewah. :)
I am using WindowsXP lite.Mamewah always load as windows shell and run games quite efficiently.

Minwah told me to bring out a new version of Mamewah,But i am still waiting  :-\ i Hope it will also solve your problem. :police:
Title: Re: Mame losing focus when launching from Mamewah
Post by: deadmoney5 on August 27, 2005, 05:50:08 pm
yep,

My ini had nosafelaunch as an option...

changing it to safelaunch seems to have solved all problems of focus...

thanks all!!
Title: Re: Mame losing focus when launching from Mamewah
Post by: Scoobie on August 27, 2005, 11:24:49 pm
Is anyonee else unable to get to the Mamewah forum?  It says forbidden.   ???

I posted my ini file there hoping for a reply.  Here is the execution settings in my mame.ini file within Mamewah.

Can someone let me know what is wrong here?  When I launch games, they sometimes launch okay (video and sound), and sometimes the games launch with sound only.  Because this only happens about half the time, I'm stumped.

I'm using MW 1.60.

Thanks!

### Execution Settings ###
emulator_executable                       c:\mame\mame.exe
send_rom_path                                0
send_rom_extension                        0
quotes_around_romnames               0
long_filenames                                  1
show_dos_box                                  auto
alt_launch_method                            0
commandline_format                         [name]{nodosbox}{safelaunch}
alt_commandline_format_1               [name]
alt_commandline_format_2               [name]
mouse_cursor                                    0
Title: Re: Mame losing focus when launching from Mamewah
Post by: ahmer on August 28, 2005, 04:38:25 pm
Quote
Can someone let me know what is wrong here?  When I launch games, they sometimes launch okay (video and sound), and sometimes the games launch with sound only.  Because this only happens about half the time, I'm stumped.

why don't you Use latest available mamewah 1.61[may be 1.62]Ifavailable
This problem should be solve by including {safelaunch} flag.

Check your mame's folder for mame.ini file C:\mame\mame.ini   

Code: [Select]
### Windows video options ###

resolution              800x600x16


Then set mamewah's mamewah.ini

Code: [Select]
### Misc Options ###

layout                      Classic 800x600
 

Now set your Desktop/windows resolution to the same 800x600 [16 Bit]

Title: Re: Mame losing focus when launching from Mamewah
Post by: Minwah on August 30, 2005, 06:07:11 am
Can someone let me know what is wrong here?  When I launch games, they sometimes launch okay (video and sound), and sometimes the games launch with sound only.  Because this only happens about half the time, I'm stumped.

Do you have any other apps running in the background (in the system tray for example)?

Closing all apps fixes the problem for me.
Title: Re: Mame losing focus when launching from Mamewah
Post by: screaming on September 02, 2005, 10:45:22 pm
There used to be a thread around here that addressed this very issue. Did you try searching for it?  I fixed this problem on my cab by installed the Xmouse Windows PowerToy from Microsoft.  I have a trackball though, so that helps.

--Steve
Title: Re: Mame losing focus when launching from Mamewah
Post by: Minwah on September 04, 2005, 11:50:32 am
There used to be a thread around here that addressed this very issue. Did you try searching for it?  I fixed this problem on my cab by installed the Xmouse Windows PowerToy from Microsoft.  I have a trackball though, so that helps.

It seems the 'frames_to_run 1' trick was almost certainly causing this problem.  Not sure why, but since it has been 'fixed' it shouldn't be an issue in v0.100+
Title: Re: Mame losing focus when launching from Mamewah
Post by: Scoobie on September 07, 2005, 09:47:06 am
Quote
It seems the 'frames_to_run 1' trick was almost certainly causing this problem.  Not sure why, but since it has been 'fixed' it shouldn't be an issue in v0.100+
Quote

Unfortunately for those of us using older versions of mame, the "fix" won't work.  Upgrading to newer versions of mame seems to slow the older games to the point where I'd rather see the warning screens (Galaga for example), than have my favs play too slow.
Title: Re: Mame losing focus when launching from Mamewah
Post by: Minwah on September 07, 2005, 11:05:46 am
Unfortunately for those of us using older versions of mame, the "fix" won't work.  Upgrading to newer versions of mame seems to slow the older games to the point where I'd rather see the warning screens (Galaga for example), than have my favs play too slow.

Fair point.

I don't know why using frames_to_run 1 causes MAME to lose focus however, so if you are using that then I suggest you stop to cure the focus problem.
Title: Re: Mame losing focus when launching from Mamewah
Post by: Scoobie on September 07, 2005, 11:17:06 pm
Quote
Fair point.

I don't know why using frames_to_run 1 causes MAME to lose focus however, so if you are using that then I suggest you stop to cure the focus problem.
Quote

I have reversed it back to frames_to_run 0 and it solved the focus issue.  If anyone figures out a way to use the frames_to_run 1 without losing focus, please post.

Thanks. :)
Title: Re: Mame losing focus when launching from Mamewah
Post by: mahuti on September 23, 2005, 06:44:11 pm
by the way, I also have the focus error if I'm using "buddamame" .97 with "skip_warnings" enabled, and {nosafelaunch} set

Title: Re: Mame losing focus when launching from Mamewah
Post by: Minwah on September 24, 2005, 09:03:25 am
by the way, I also have the focus error if I'm using "buddamame" .97 with "skip_warnings" enabled, and {nosafelaunch} set

Odd.  To be honest there is not much difference between {safelaunch} and {nosafelaunch} (as far as MAME is concerned at least).  {nosafelaunch} should look a bit cleaner when switching resolutions (loading/quitting games), but it depends a lot on monitor type etc.