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: problem when exiting non-mame emu  (Read 9071 times)

0 Members and 1 Guest are viewing this topic.

mattymattness

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 2
  • Last login:June 23, 2008, 12:44:06 pm
problem when exiting non-mame emu
« on: June 22, 2008, 02:26:52 pm »
I'm new here. I just came across MaLa recently and think it is much better than other front-ends I have messed with. I am still learning the features but, there is one problem that I can't seem to solve.

I am interested in using MAME and ZSnes with MaLa as the frontend. MAME works fine and so does ZSnes except for when I exit out of ZSnes by pressing ESC. It exits back to MaLa but, the "Starting..." window is still visible in MaLa and I have to right-click and manually kill ZSnes....

How can I exit from ZSnes with one button(Esc, etc...) and get back to MaLa without any strangeness? Thanks for any info!

mattymattness

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 2
  • Last login:June 23, 2008, 12:44:06 pm
Re: problem when exiting non-mame emu
« Reply #1 on: June 23, 2008, 12:35:54 pm »
Okay, nevermind...I was having the problem with ZSnes so, I thought I would try snes9x and it gives me no problems so, for now, I guess I will stick with snes9x.


One other annoyance though is with MAME. I have MAME roms that run fine outside of MaLa but, when I try to launch them from MaLa there are rom files missing. This seems to be due to MaLa detecting an incorrect romset when creating the XML. I had the XML recreated and some games have since started working but, some still won't work within MaLa because it is listing the wrong rom.

And for some odd reason when the error appears that some rom files are missing...MaLa seems to want to automatically run my SNES emulator in the background and I have to manually kill it and most of the time just exit MaLa altogether...

Any ideas what this is??? Thanks.

Xenepp

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 45
  • Last login:May 19, 2009, 06:53:48 pm
  • Jeff minter is GOD!!
    • Videotopia.Co.Uk
Re: problem when exiting non-mame emu
« Reply #2 on: July 18, 2008, 10:35:30 pm »
Sorry to bring this to the surface again but I'm getting the EXACT same problem.

Only with ZSNES too, it just seems to hang on "Starting.." and ZSNESW.EXE is still running in task manager.

This only happens btw when I use a hotkey in MALA. Trouble is, that's the ONLY way I can get ZSNES to quit into MALA since I'm using USB pads (in my setup there is no way I can use a keyboard encoder, I'm not running this install in a cab).

Also I guess it's somehow a ZSNES problem but at (seemingly) random points I get an error initialising direct input with ZSNES after tinkering in MALA. Only way to fix it is to remove and re-insert my pads.

 -Joel

Xenepp

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 45
  • Last login:May 19, 2009, 06:53:48 pm
  • Jeff minter is GOD!!
    • Videotopia.Co.Uk
Re: problem when exiting non-mame emu
« Reply #3 on: July 19, 2008, 04:06:42 pm »
For those that use MALA and ZSNES and also use Autohotkey, I got round this by making an Autohotkey script that loads an application called "killprocess" upon a key combination on my pad. It doesn't always seem to work but 9/10 it'll run and kill zsnesw.exe as you terminate ZSNES. Funnily enough, once you get back to MALA, the script is useless..  ::)

Roll on Hyperspin?

 -Joel

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4306
  • Last login:May 26, 2024, 05:14:32 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: problem when exiting non-mame emu
« Reply #4 on: July 19, 2008, 07:04:56 pm »
Roll on Hyperspin?

Use whatever FE you like.  ::)

I am working very hard in my own time to improve MaLa.

I don't use ZNES anyway but in any case in general I am relying on others to help here in this forum with basic questions so I can focus on the code.

Maybe I am just in a bad mood today, but comments like that don't inspire me to work on this.

« Last Edit: July 19, 2008, 07:07:19 pm by loadman »

SGT

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1146
  • Last login:May 31, 2025, 10:10:32 pm
Re: problem when exiting non-mame emu
« Reply #5 on: July 19, 2008, 07:05:32 pm »
Why can you not go into the ZSNES configuration and choose one of your USB controller buttons to exit with?  Obvously you still need to set the ZSNES to guioff=1.

Roll on Hyperspin?

Dude, Are you naive enough to think a comment about Hyperspin is going to "spur" someone into action???   ::)


« Last Edit: July 19, 2008, 09:32:35 pm by SGT »

JDavis

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 5
  • Last login:August 06, 2008, 07:40:36 pm
Re: problem when exiting non-mame emu
« Reply #6 on: July 21, 2008, 10:41:27 am »
Alright, this puzzled me for a little while, but the solution was actually pretty simple.

ZSNES has a built-in option to set a single key as a quit shortcut, located in its menu under:

MISC->MISC KEYS->QUICK KEYS->EXIT

The only problem with this being that when you click it to set the key, it tells you quite clearly:

"Enter the key or button to use (ESC to clear)"

Meaning that you can't simply set ESC to that function through the GUI, because it interprets you pressing ESC as "I don't want any key to do this" instead of "I want the ESC key to do this"

But, of course, this settings is simply stored in the program's config file! So open that up with notepad and find the setting "KeyQuickExit" If you don't have a key set, it'll read as "KeyQuickExit=0" the setting you want for it to be ESC is "KeyQuickExit=1"

Now if you'll boot up ZSNES and look at the MISC KEY menu again, you'll notice the EXIT function is set to ESC (just don't click it unless you want to edit the config file again :P). Now you're good to go! Whatever oddness causes ZSNES to wig out and not close properly using mala's hotkey is no longer a problem since you're not using a hotkey. :D

SGT

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1146
  • Last login:May 31, 2025, 10:10:32 pm
Re: problem when exiting non-mame emu
« Reply #7 on: July 21, 2008, 02:14:00 pm »
JDavis,

I may be wrong, but I thought he wants to set a button on his gamepad to exit instead of the escape key which can easily be done in the zsnes configuration area.  If you simply want to use the ESC key, I was able to do it simply by using the guioff=1 option in the cfg file.

JDavis

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 5
  • Last login:August 06, 2008, 07:40:36 pm
Re: problem when exiting non-mame emu
« Reply #8 on: July 22, 2008, 04:49:59 am »
Yes, that was Xenepp's problem. I was more explaining the solution for mattymattness's post, since I had had the same issue.

Narcissus04

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 13
  • Last login:September 05, 2013, 11:20:07 am
Re: problem when exiting non-mame emu
« Reply #9 on: January 12, 2012, 11:58:57 am »
Sorry for the bump -

I prefer zsNes but I'm having the same troubles.

Using HotKey in Mame gives me Starting... and doesn't close the Emu.
I have zero luck with AHK at all.
Changing the config file for quick key esc, worked - but doesn't seem to do anything.
And changing guioff=1 just made it not open.

Anyone got a ray of sunshine here?

Vigo

  • the Scourage of Carpathia
  • Global Moderator
  • Trade Count: (+24)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6417
  • Last login:June 25, 2025, 03:09:16 pm
Re: problem when exiting non-mame emu
« Reply #10 on: January 12, 2012, 12:44:38 pm »
I am totally doing this off the top of my head, but I think you can create a dos batch file to force zsnes to exit when esc is pressed. 

Create a text document, and put in a command to kill zsnes, it would be something like:

@ECHO OFF
TASKKILL.EXE /F /IM ZSNES.EXE
EXIT

Then change the text file from .txt to .bat

Set the esc key as an exit in MaLa, and point to that .bat file to open on exit as well.

empardopo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 526
  • Last login:Yesterday at 05:12:51 am
    • My personal forum
Re: problem when exiting non-mame emu
« Reply #11 on: January 12, 2012, 02:31:52 pm »
Have you tested AllInOne?

Besides, I think in Zsnes it's possible to configure a button to close the emulator!

Narcissus04

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 13
  • Last login:September 05, 2013, 11:20:07 am
Re: problem when exiting non-mame emu
« Reply #12 on: January 13, 2012, 04:47:47 pm »
Ok turns out the GUioff thing works - it stops it opening by itself but Mala can still work it and it goes flawlessly. Thank gosh for that, 7 emulators working, 12 left to go :\

empardopo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 526
  • Last login:Yesterday at 05:12:51 am
    • My personal forum
Re: problem when exiting non-mame emu
« Reply #13 on: January 18, 2012, 04:01:11 am »
Sorry for the bump -

I prefer zsNes but I'm having the same troubles.

Using HotKey in Mame gives me Starting... and doesn't close the Emu.
I have zero luck with AHK at all.
Changing the config file for quick key esc, worked - but doesn't seem to do anything.
And changing guioff=1 just made it not open.

Anyone got a ray of sunshine here?

In this link (in spanish) you can find a information about Zsnes.
Greetings!