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: MAME game minimizing when playing 2 player with Hyperspin - SOLVED  (Read 4712 times)

0 Members and 1 Guest are viewing this topic.

kahlid74

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1366
  • Last login:January 01, 2021, 12:42:56 pm
  • Gaming for a better future!
    • GamersAnon
I found a few posts in the wild about this and thought I would collapse them into one in case anyone else has this issue in the future.  The issue is when playing a 2 player game in MAME and player 2 hits buttons 2 and 3 simultaneously.  This is with default MAME keys.  Q and S are mapped as player 2 buttons 2/3 and when pressed together are also a AHK for Hyperspin called "exitscriptkey".  I found no reason to need the ExitScriptKey so I removed it from the AHK.

  • Install Auto Hot Key onto the computer you are using for emulation (You need this because you have to recompile the AHK script
  • Go to your root Hyperspin folder
  • Find a file called HyperLaunch.ahk
  • Right-Click the file and select Edit Script
  • Notepad should open.  Click edit, and select search
  • Search for exitscriptkey
  • It will be found three times.  Each line it is found on you need to REM out.  To do this simply put a SEMI-COLON at the front of the line
  • Now search for GET AND CHECK PATHS
  • Look for emuPath := GetFullName(iniEmuPath)
  • Change it to emuPath := iniEmuPath
  • Look for romPath := GetFullName(iniRomPath)
  • Change it to romPath := iniRomPath
  • Save and close the file
  • Right-Click on HyperLaunch.ahk and select Compile (NOTE - Compile may fail if you have launched a MAME game through Hyperspin.  Restart and do the above BEFORE running any games)

At this point you should be all set.  Q and S will no longer cause MAME to minimize and the error about / paths will also be resolved.

Credit -
http://www.hyperspin-fe.com/forum/showthread.php?10081-quot-Make-sure-your-paths-contain-a-backslash-on-the-end-quot-Help - POST #7
http://www.hyperspin-fe.com/forum/showthread.php?6321-NEED-HELP-How-to-edit-HyperLaunch-ahk-to-disable-quot-exitScriptKey-q-amp-s-quot - POST #6

GWOZDZilla

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 4
  • Last login:August 06, 2015, 09:04:29 am
  • I want to build my own arcade controls!
Re: MAME game minimizing when playing 2 player with Hyperspin - SOLVED
« Reply #1 on: May 22, 2015, 11:17:34 am »
Thanks for doing the leg work and finding this info out. I'm going to try it when I get home from work tonight and report back with my results for anyone else that may stumble upon this post (I'm sure it will work, just wanted to give confirmation)

somakurusu

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 3
  • Last login:November 02, 2015, 05:21:38 pm
  • I want to build my own arcade controls!
Re: MAME game minimizing when playing 2 player with Hyperspin - SOLVED
« Reply #2 on: September 16, 2015, 07:54:11 pm »
I cannot find that file to compile at all, I even redownloaded hyperlaunch and it still doesn't exist for me.  Please help, this really sucks that it crashes. :'(