Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: CPS3 emu "stutters" on exit  (Read 11932 times)

0 Members and 1 Guest are viewing this topic.

sega_mad

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 284
  • Last login:July 09, 2015, 04:03:08 am
CPS3 emu "stutters" on exit
« on: July 24, 2011, 04:09:05 pm »
Tittle pretty much says it all.

Only last about 1 second (sounds like a C.D stuck on a single note, and trying to replay it really fast)

Only does it when installed in cabinet running genuine Arcade screen, if I run the same computer on a VGA screen, it exits perfectly!!

It's also odd that when I exit the Model 2 emulator (which is very similar to CPS3), it does not display this issue??

Thanks

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 12:48:45 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: CPS3 emu "stutters" on exit
« Reply #1 on: July 24, 2011, 05:16:35 pm »
Yup they do that.  It's a bug in the sound drivers in mame. 

sega_mad

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 284
  • Last login:July 09, 2015, 04:03:08 am
Re: CPS3 emu "stutters" on exit
« Reply #2 on: July 24, 2011, 05:24:26 pm »
Thanks for the answer,

But I'm running CPS3...not MAME...will that still affect it?

Like I said, doesn't do it on my computer screen, only Arcade screen..with JPAC.

Thanks


Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 12:48:45 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: CPS3 emu "stutters" on exit
« Reply #3 on: July 25, 2011, 12:30:57 am »
Thanks for the answer,

But I'm running CPS3...not MAME...will that still affect it?

Like I said, doesn't do it on my computer screen, only Arcade screen..with JPAC.

Thanks



You are going to have to be more specific..... CPS3 refers to "capcom play system 3."  That is the name of the real life pcb system.  If there is an emulator (perhaps nebula's cps3 emulator?) then it is most likely based upon mame's source and therefore has similar issues that mame would.

Typically whoever makes a stand-alone system emulator also contributes source code for mame's drivers and vice-versa. 

Haze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1296
  • Last login:October 04, 2023, 08:30:02 am
  • I want to build my own arcade controls!
    • MAME Development Blog
Re: CPS3 emu "stutters" on exit
« Reply #4 on: July 25, 2011, 09:14:57 am »
Thanks for the answer,

But I'm running CPS3...not MAME...will that still affect it?

Like I said, doesn't do it on my computer screen, only Arcade screen..with JPAC.

Thanks



You are going to have to be more specific..... CPS3 refers to "capcom play system 3."  That is the name of the real life pcb system.  If there is an emulator (perhaps nebula's cps3 emulator?) then it is most likely based upon mame's source and therefore has similar issues that mame would.

Typically whoever makes a stand-alone system emulator also contributes source code for mame's drivers and vice-versa. 

Well the MAME driver is mine, and there was a similar issue in MAME.

On exit CPS3 dumps out a rather large NVRAM file containing the current state of the machine (because they store the entire game in Flash/NVRAM, so rather than a ~1kb file like most games it's huge)

This used to cause the sound in MAME to stutter, because MAME shut off the sound system AFTER saving NVRAM files and such.  With tiny files you didn't notice the delay, with the huge CPS3 files you did.

Now MAME mutes the sound before attempting to exit, thus preventing it from doing this.

I guess the CPS3 emu has a similar issue.

The obvious disadvantage here is that the CP3 emulator is closed source, so there is no easy fix.

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9269
  • Last login:June 27, 2025, 10:17:06 am
  • ...
Re: CPS3 emu "stutters" on exit
« Reply #5 on: July 25, 2011, 10:47:53 am »
Does it still stutter if you use Alt+F4 to kill it?
If not, an autohotkey script that kills the process instead of letting the emulator exit normally might be a workaround.

Esc::
Process, Close, CPS3.exe

(replace CPS3.exe with whatever the exe for the emulator is, I'm not familiar with it)

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 12:48:45 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: CPS3 emu "stutters" on exit
« Reply #6 on: July 26, 2011, 12:35:03 am »
Does it still stutter if you use Alt+F4 to kill it?
If not, an autohotkey script that kills the process instead of letting the emulator exit normally might be a workaround.

Esc::
Process, Close, CPS3.exe

(replace CPS3.exe with whatever the exe for the emulator is, I'm not familiar with it)

Read what Haze just posted (thanks btw).  If you kill it instead of letting it shut down properly then it won't save your progress.  Since some of the fighters unlock characters on a time-based system, this could be a bad thing. 

My ahk is a little rusty, but the preferred solution would be to:

1.  Upon the press of the exit key mute the system volume.
2.  Wait until the currently running process (the cps3 emulator) closes.
3.  Un-mute the system sound.

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9269
  • Last login:June 27, 2025, 10:17:06 am
  • ...
Re: CPS3 emu "stutters" on exit
« Reply #7 on: July 26, 2011, 09:32:53 am »
Don't have time to work on a full solution or test anything, but here's here's something to get you started.
Adjust the sleep time more or less until it mutes for the duration of the stutter.

Code: [Select]
Esc::SoundSet, +1, , mute ;Mutes

Sleep, 1000

SoundSet, -1, , mute ;Unmutes

ExitAPP
return


sega_mad

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 284
  • Last login:July 09, 2015, 04:03:08 am
Re: CPS3 emu "stutters" on exit
« Reply #8 on: July 27, 2011, 01:00:15 am »
Hi Bad mouth.

Sorry for the slow reply....been away on work

Thanks for helping out...


I put you script in the mame.cmd file, at the end of the CPS3....like this, but must have done something wrong as it didn't work.

Can you give me detailed instructions please...I can get a little lost

:cps3
cd C:\Program Files\AutoHotkey
autohotkey.exe C:\emulators\m2.ahk %1
Esc::SoundSet, +1, , mute ;Mutes

Sleep, 1000

SoundSet, -1, , mute ;Unmutes

ExitAPP
return
exit


Cheers

Sega_mad

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9269
  • Last login:June 27, 2025, 10:17:06 am
  • ...
Re: CPS3 emu "stutters" on exit
« Reply #9 on: July 27, 2011, 09:27:46 am »
I put you script in the mame.cmd file, at the end of the CPS3....like this, but must have done something wrong as it didn't work.

It's part of an autohotkey script, it gets added to the .ahk script, not the cmd file

:cps3
cd C:\Program Files\AutoHotkey
autohotkey.exe C:\emulators\m2.ahk %1


Looks like the cps3 part of your .cmd script is pointing to a M2 ahk script?
Do you have an autohotkey script that launches cps3?

Can you give me detailed instructions please...I can get a little lost

Sorry, but I don't have the time to spend on it.  Oddly enough, the only free time I have is at work   :lol and I'm not installing ahk on my work computer.

If you can't figure out how to incorporate it into your current ahk script, or aren't using an ahk script to launch cps3, just copy and past this into notepad:
Esc::SoundSet, +1, , mute ;Mutes

Sleep, 1000

SoundSet, -1, , mute ;Unmutes


Then save it as mute.ahk (all file types)

Run it before you run cps3 and see if it works at all.
Since it doesn't have an exit, you'll have to right click on the autohotkey icon in the system tray or
use task manager to stop the script before making changes to the sleep time.

If you get it working the way you want, create a shortcut to it, then copy and past the shortcut into your start folder.
(google how to find your start folder if you need to)
That will make the script run every time your computer boots up and it will run all the time.
(every time you hit esc, it will mute for a second, no matter what programs are running)

It's the simplest way I can think of without getting into your ahk scripts.
If you are launching cps3 through an ahk script, please post a copy of that.
« Last Edit: July 27, 2011, 11:46:47 am by BadMouth »

sega_mad

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 284
  • Last login:July 09, 2015, 04:03:08 am
Re: CPS3 emu "stutters" on exit
« Reply #10 on: July 27, 2011, 05:09:00 pm »
Hi Bad Mouth

I really appreciate your time....I know what it's like to have limited time to pursue hobbies (5 and 7 yr old kids)!!

I am running a ahk file on startup of the CPS emulator...this is to hide the splash screen of the emulator on startup.

I can see what it's doing, but have no idea how to write this stuff. I had the same issue with the model 2 emulator (written by the same guy)...and copied and pasted the fix from that to hide this splash screen.

Below is that script...

splashimage, C:\emulators\blackimage.bmp, B

setworkingdir, C:\emulators\other_emus\cps3
run emulator %1%

WinWaitActive, Model
WinWaitNotActive, Model
sleep 500

splashimage, off

esc::
send !{F4}
exitapp


Cheers

Sega_mad

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: CPS3 emu "stutters" on exit
« Reply #11 on: July 27, 2011, 07:45:41 pm »
This should combine them

Code: [Select]
splashimage, C:\emulators\blackimage.bmp, B

setworkingdir, C:\emulators\other_emus\cps3
run emulator %1%

WinWaitActive, Model
WinWaitNotActive, Model
Sleep, 500

splashimage, off

esc::
send !{F4}
SoundSet, +1, , mute ;Mutes
Sleep, 1000
SoundSet, -1, , mute ;Unmutes
exitapp
« Last Edit: July 27, 2011, 08:12:05 pm by headkaze »

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 12:48:45 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: CPS3 emu "stutters" on exit
« Reply #12 on: July 27, 2011, 07:49:10 pm »
A suggestion....

instead of the sleeps how about some "WinWaitNotActive Model" calls instead?  Some games exit quicker than others afterall and I'm pretty sure the window exists until after the save.

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: CPS3 emu "stutters" on exit
« Reply #13 on: July 27, 2011, 08:16:39 pm »
Something like this perhaps?

Code: [Select]
esc::
send !{F4}
SoundSet, +1, , mute ;Mutes
WinWaitNotActive, Model
SoundSet, -1, , mute ;Unmutes
exitapp

Worth a try anyway.

sega_mad

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 284
  • Last login:July 09, 2015, 04:03:08 am
Re: CPS3 emu "stutters" on exit
« Reply #14 on: July 27, 2011, 08:18:33 pm »
Hi Headkaze,

Thanks for the reply.

But it didn't work.

Is there something missing in the script......I don't see anything about mute or sound??

Cheers.

sega_mad

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 284
  • Last login:July 09, 2015, 04:03:08 am
Re: CPS3 emu "stutters" on exit
« Reply #15 on: July 27, 2011, 08:20:27 pm »
I see you've just added some script. Do I just add that after the code you already wrote for me?

Cheers

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: CPS3 emu "stutters" on exit
« Reply #16 on: July 27, 2011, 08:22:28 pm »
It was a modification to the first script in Reply #11.

The following line

Code: [Select]
Sleep, 1000
Changed to

Code: [Select]
WinWaitNotActive, Model
The idea there is so it waits for the window to close before unmuting the sound again. If there is still sound try the sleep instead.
« Last Edit: July 27, 2011, 08:24:54 pm by headkaze »

sega_mad

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 284
  • Last login:July 09, 2015, 04:03:08 am
Re: CPS3 emu "stutters" on exit
« Reply #17 on: July 27, 2011, 08:46:11 pm »
ok, still no go  :'(

This is the ahk script as it stands now....

splashimage, C:\emulators\blackimage.bmp, B

setworkingdir, C:\emulators\other_emus\cps3
run emulator %1%

WinWaitActive, Model
WinWaitNotActive, Model
sleep 500

splashimage, off

esc::
send !{F4}
SoundSet, +1, , mute ;Mutes
WinWaitNotActive, Model
SoundSet, -1, , mute ;Unmutes
exitapp


Any thoughts??

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9269
  • Last login:June 27, 2025, 10:17:06 am
  • ...
Re: CPS3 emu "stutters" on exit
« Reply #18 on: July 27, 2011, 08:53:19 pm »
Might try muting before sending the keys to close the program?

esc::
SoundSet, +1, , mute ;Mutes
send !{F4}
WinWaitNotActive, Model
SoundSet, -1, , mute ;Unmutes
exitapp


BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9269
  • Last login:June 27, 2025, 10:17:06 am
  • ...
Re: CPS3 emu "stutters" on exit
« Reply #19 on: July 27, 2011, 08:56:13 pm »
I got those mute lines off the interwebs.   Never tried them before just now.  :-[

They don't work.  :angry:

I'll refrain from posting stuff I haven't used from now on.
(slinks away in shame)

sega_mad

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 284
  • Last login:July 09, 2015, 04:03:08 am
Re: CPS3 emu "stutters" on exit
« Reply #20 on: July 27, 2011, 08:58:43 pm »
Bugger......so is this not possible :'(

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9269
  • Last login:June 27, 2025, 10:17:06 am
  • ...
Re: CPS3 emu "stutters" on exit
« Reply #21 on: July 27, 2011, 09:00:29 pm »
Try this....


splashimage, C:\emulators\blackimage.bmp, B

setworkingdir, C:\emulators\other_emus\cps3
run emulator %1%

WinWaitActive, Model
WinWaitNotActive, Model
sleep 500

splashimage, off

esc::
Send {Volume_Mute};Mutes
send !{F4}
WinWaitNotActive, Model
Send {Volume_Mute};Unmutes
exitapp

(EDITED: moved mute before the closing of the emulator...figured it might help, couldn't hurt)
« Last Edit: July 27, 2011, 11:07:32 pm by BadMouth »

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9269
  • Last login:June 27, 2025, 10:17:06 am
  • ...
Re: CPS3 emu "stutters" on exit
« Reply #22 on: July 27, 2011, 09:08:30 pm »
I really am sorry for posting something I hadn't used.
Those lines were from an example I found and are listed on the autohotkey website:
http://www.autohotkey.com/docs/commands/SoundSet.htm

But they had no effect when I tested it just now.
Send {Volume_Mute} works as expected.

sega_mad

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 284
  • Last login:July 09, 2015, 04:03:08 am
Re: CPS3 emu "stutters" on exit
« Reply #23 on: July 27, 2011, 09:10:51 pm »
No stress. Thanks for helping me out. Off out with family now. Will try when I get home.
Fingers crossed.

Thanks again for all your help.

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: CPS3 emu "stutters" on exit
« Reply #24 on: July 27, 2011, 10:08:18 pm »
But they had no effect when I tested it just now.

I think that command only works for <= Windows XP

sega_mad

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 284
  • Last login:July 09, 2015, 04:03:08 am
Re: CPS3 emu "stutters" on exit
« Reply #25 on: July 28, 2011, 03:24:32 am »
Pulling hair out now  :'(

Still no go.....

Do I need to mention that I'm using a J-PAC, as opposed to a keyboard??

If I run the CPS3 emulator on its own (outside of Mala, on exit it will stutter also).

If I take my computer out of the cabinet (so no J-Pac), and run it on a LCD screen (instead or Arcade CGA screen)...there is no stutter??

Will the program closemul be any help...not that I know anything about it??

Thanks for all your help to date
« Last Edit: July 28, 2011, 03:49:31 am by sega_mad »

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: CPS3 emu "stutters" on exit
« Reply #26 on: July 28, 2011, 06:59:00 am »
Have you got Windows 7 or Vista? If so check out this

sega_mad

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 284
  • Last login:July 09, 2015, 04:03:08 am
Re: CPS3 emu "stutters" on exit
« Reply #27 on: July 28, 2011, 03:40:14 pm »
Nah.... Running Tiny XP

nitz

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 507
  • Last login:November 24, 2015, 07:57:29 pm
Re: CPS3 emu "stutters" on exit
« Reply #28 on: July 28, 2011, 10:13:33 pm »
Does this work?

Quote
splashimage, C:\emulators\blackimage.bmp, B

setworkingdir, C:\emulators\other_emus\cps3
run whatever you type at the command line to run this

WinWaitActive, first few letters of launch window name that you want to hide
WinWaitNotActive, first few letters of launch window name that you want to hide
sleep 500

splashimage, off
return

$esc::
soundget, volume ;stores the current level of the master volume in a variable called "volume"
soundset, 0 ;sets the master volume to 0, aka mute
send {esc} ;sends escape to exit the emulator
sleep 3000 ;this can be adjusted as necessary
soundset, %volume% ;sets the master level to it's level before we muted it
exitapp ;exits the script

This is to be used in conjunction with Mala and the mame.cmd file we discussed in the other thread.

To me this seems like it should work, but if it doesn't, tell us exactly what seems to be happening and we'll see if we can fix it.

EDIT: Changed the run line in the script, this needs to be whatever you type at the command prompt to run the emu with %1% where the rom name would go.
« Last Edit: July 28, 2011, 10:24:03 pm by nitz »

sega_mad

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 284
  • Last login:July 09, 2015, 04:03:08 am
Re: CPS3 emu "stutters" on exit
« Reply #29 on: July 28, 2011, 11:02:47 pm »
Hi Nits,

Thanks for helping out again

Here is the ahk file. I only used the exit part, as the hiding bit is working perfectly (like you did for model 2)

splashimage, C:\emulators\blackimage.bmp, B

setworkingdir, C:\emulators\other_emus\cps3
run emulator %1%

WinWaitActive, Model
WinWaitNotActive, Model
sleep 500

splashimage, off

$esc::
soundset, volume ;stores the current level of the master volume in a variable called "volume"
soundset, 0 ;sets the master volume to 0, aka mute
send {esc} ;sends escape to exit the emulator
sleep 500 ;this can be adjusted as necessary
soundset, %volume% ;sets the master level to it's level before we muted it
exitapp ;exits the script


It's partly working.

it is exiting the emulator without stuttering...but that is where the good news ends.

Now it is muting the sound permantly....I only found this out by looking in the "sound and audio devices"...and saw it muted.

The other problem is the emu is not exiting...it's just minimising.........which is a problem, as it minimises to the botom left of the screen, it blanks out part of my nice layout.

If I start another game, there is no sound at all.

But I think we are making progress.

Cheers
« Last Edit: July 28, 2011, 11:05:35 pm by sega_mad »

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 12:48:45 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: CPS3 emu "stutters" on exit
« Reply #30 on: July 28, 2011, 11:17:09 pm »
Ok I'll tag in:


Looking at first glance:

Again, my ahk is rusty, but the very first "soundset, volume" should be changed to "soundget, volume"......  You aren't storing anything with soundset ;)

The script isn't actually exiting anything.  It's exiting itself, but in terms of shutdown procedure all it is doing is sending the "esc" key to the emulator.  We learned from previous attempts that send key isn't working on your system so that won't work. 

Pretty sure the "$" in front of the esc:: blocks the esc key right?  Well why are we doing that?  We just need to detect when esc is pressed, and run our "muting" function when it is... no need to block the key seeing as how esc is also the key to exit the emulator. 

So change "$esc::" to "esc::" and remove "send {esc}"

nitz

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 507
  • Last login:November 24, 2015, 07:57:29 pm
Re: CPS3 emu "stutters" on exit
« Reply #31 on: July 28, 2011, 11:46:39 pm »
Again, my ahk is rusty, but the very first "soundset, volume" should be changed to "soundget, volume"......  You aren't storing anything with soundset ;)

Yep, easy typo to make, do it myself all the time. I actually thought it was my typo at first. Anyway, it should be soundget.

The script isn't actually exiting anything.  It's exiting itself, but in terms of shutdown procedure all it is doing is sending the "esc" key to the emulator.  We learned from previous attempts that send key isn't working on your system so that won't work.  

Send key is working on his system for his Model 2 script in that other thread. So I'm thinking maybe escape just minimizes this emu and doesn't exit it? How about subbing in "send !{F4}" (without the quotes of course) instead of "send {esc}"?

Pretty sure the "$" in front of the esc:: blocks the esc key right?  Well why are we doing that?  We just need to detect when esc is pressed, and run our "muting" function when it is... no need to block the key seeing as how esc is also the key to exit the emulator.  

So change "$esc::" to "esc::" and remove "send {esc}"

The $ prevents the hotkey from activating itself. Otherwise, pressing esc sends esc, which sends esc, which sends esc...and so on. It might not have been necessary here since the script exits anyway, but I'm in the habit of using $ whenever a key sends itself.

The $ could be removed now since send {esc} isn't working anyway.
« Last Edit: July 28, 2011, 11:51:39 pm by nitz »

sega_mad

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 284
  • Last login:July 09, 2015, 04:03:08 am
Re: CPS3 emu "stutters" on exit
« Reply #32 on: July 28, 2011, 11:53:09 pm »
This is what I have now

Emulator keeps running in the backround (after exiting)...I can here the game playing.

splashimage, C:\emulators\blackimage.bmp, B

setworkingdir, C:\emulators\other_emus\cps3
run emulator %1%

WinWaitActive, Model
WinWaitNotActive, Model
sleep 500

splashimage, off

esc::
soundget, volume ;stores the current level of the master volume in a variable called "volume"
soundset, 0 ;sets the master volume to 0, aka mute
sleep 500 ;this can be adjusted as necessary
soundset, %volume% ;sets the master level to it's level before we muted it
exitapp ;exits the script


If I exit Mala, then in the taskbar the CPS3 emulator is running
« Last Edit: July 28, 2011, 11:55:44 pm by sega_mad »

nitz

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 507
  • Last login:November 24, 2015, 07:57:29 pm
Re: CPS3 emu "stutters" on exit
« Reply #33 on: July 28, 2011, 11:58:18 pm »
It's still running because you need a command underneath esc:: which will exit the emulator. What do you normally press to exit?

sega_mad

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 284
  • Last login:July 09, 2015, 04:03:08 am
Re: CPS3 emu "stutters" on exit
« Reply #34 on: July 29, 2011, 12:11:21 am »
Nitz + Headkaze + Howard_Casto

Thankyou thankyou thankyou very much.

it's all working now

Nitz's last suggestion was the fix...you're a legend  :burgerking:

This is my .ahk file now

splashimage, C:\emulators\blackimage.bmp, B

setworkingdir, C:\emulators\other_emus\cps3
run emulator %1%

WinWaitActive, Model
WinWaitNotActive, Model
sleep 500

splashimage, off

esc::
soundget, volume ;stores the current level of the master volume in a variable called "volume"
soundset, 0 ;sets the master volume to 0, aka mute
send !{F4}"
sleep 500 ;this can be adjusted as necessary
soundset, %volume% ;sets the master level to it's level before we muted it
exitapp ;exits the script


Now all I need to do is fix the "drunken Muppets" window box showing on starup on my zinc games.

http://forum.arcadecontrols.com/index.php?topic=113372.0

Nitz,

I applied the same theory of hidding splash screens to Zinc as We've done the CPS3 and Model2...but it didn't work.....it just stayed as a black screen.

I adjusted the sleep time...but no difference.

Any thoughts?

Thanks so much, once again

Sega_mad

nitz

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 507
  • Last login:November 24, 2015, 07:57:29 pm
Re: CPS3 emu "stutters" on exit
« Reply #35 on: July 29, 2011, 12:28:52 am »
I applied the same theory of hidding splash screens to Zinc as We've done the CPS3 and Model2...but it didn't work.....it just stayed as a black screen.

I adjusted the sleep time...but no difference.

Any thoughts?

Can we see your script for that?

sega_mad

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 284
  • Last login:July 09, 2015, 04:03:08 am
Re: CPS3 emu "stutters" on exit
« Reply #36 on: July 29, 2011, 01:14:22 am »
Bugger......deleted it.

Will sort it later on tonight, and post.

Cheers

sega_mad

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 284
  • Last login:July 09, 2015, 04:03:08 am
Re: CPS3 emu "stutters" on exit
« Reply #37 on: July 29, 2011, 01:39:58 am »
Ok,

Tried to re-create it

Drunken Muppets still shows up

mame.txt = mame.cmd
zinc.txt = zinc.ahk

Cheers


nitz

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 507
  • Last login:November 24, 2015, 07:57:29 pm
Re: CPS3 emu "stutters" on exit
« Reply #38 on: July 29, 2011, 10:24:35 pm »
I edited your mame.cmd and attached it. Try that. I don't think you even need the ahk script for this actually.

sega_mad

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 284
  • Last login:July 09, 2015, 04:03:08 am
Re: CPS3 emu "stutters" on exit
« Reply #39 on: July 29, 2011, 10:33:48 pm »
Hi Nitz,

No that didn't work. :'(

All I could see was you changed the zinccab to zinc, and stopped it from running the ahk program.......is that right?

I was using zinc cab to configure the controlls, as nothing works under zinc otherwise.

anyway..the "drunken muppets" box still showed up.
« Last Edit: July 29, 2011, 10:40:53 pm by sega_mad »