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: How to make mGalaxy work with other emulators  (Read 4905 times)

0 Members and 1 Guest are viewing this topic.

towersofasia

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 2
  • Last login:July 11, 2012, 03:24:02 pm
How to make mGalaxy work with other emulators
« on: June 27, 2012, 09:58:32 pm »
I've tried many multi-emulator frontends but found none were as nice looking or snappy as mGalaxy. Unfortunately mGalaxy is MAME only. However, with a little bit of trickery I have managed to make it work with other emulators.



Solution coming up...

towersofasia

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 2
  • Last login:July 11, 2012, 03:24:02 pm
Re: How to make mGalaxy work with other emulators
« Reply #1 on: June 27, 2012, 10:03:41 pm »
To get mGalaxy to launch other emulated games, we have to trick it into thinking it's a MAME game. The following might seem like a lot of steps, and does require some technical skills, but once you have it setup, adding games for other emulators is quite straightforward.
 
(1) First, you need to create a new mame.exe, which mGalaxy will call instead of the existing one. So, rename the existing mame.exe to something else, such as mame64.exe. Then, using a text editor, create a bat file with the following code:
 
cd c:\emulators\mame
launcher.bat %~1 %~2 %~3 %~4 %~5 %~6

 
This assumes your MAME and mGalaxy installation is in c:\emulators\mame. Save this file as mame.bat
 
(2) Make an executable version of this bat file called mame.exe. I recommend this utility:
http://download.cnet.com/Bat-To-Exe-Converter/3000-2069_4-10555897.html
 
(3) Now create another bat file (saved as launcher.bat in your mame folder) with the code below. We will come back to how to edit this file later.
 
if %1==resevil goto psx
 
rem default MAME launch
ECHO calling mame64 %1 %2 %3 %4 %5 %6 >run.log
cd c:\emulators\mame
mame64 %1 %2 %3 %4 %5 %6
goto end
 
:psx
ECHO calling epsxe.exe %1.bin >run.log
taskkill /F /IM mGalaxy.exe
cd C:\emulators\psx
epsxe.exe -nogui -loadbin games\%1.bin
cd c:\emulators\mame
start /B /MAX mGalaxy.exe
goto end
 
:end

 
(4) Now you have mGalaxy ready to launch other emulators! Test it out with MAME by calling mame.exe [mamerom] from a command prompt. If it launches MAME properly, then now let's add a PSX game.
 
(5) You need to take one of your PSX (or other emulator) roms and create a dummy zip file in your /roms folder. At this point it is a good idea to simplify the names of your PSX roms. So if you have a PSX rom named Resident.Evil.1.0.56.bin, rename this to resevil.bin. Then create an empty zip file called resevil.zip and place this in your /mame/roms folder.
 
(6) Copy the image (snapshot/artwork) for your PSX game to the /mame/snap folder. This should be a PNG file and have the same name as the rom name e.g. resevil.png
 
(7) Your game should now appear in mGalaxy. To make mGalaxy launch the game, edit launcher.bat and add an if statement to redirect to the PSX emulator. As you can see this was already done. After adding more games you would have something like this at the top of launcher.bat:
 
if %1==resevil goto psx
if %1==risk goto psx
if %1==wargames goto psx

 
(8 ) Locate your xmlout.xml (this is the games library database). For Windows 7, it should be located in c:\users\{username}\AppData\Roaming\mGalaxy\xmlout.xml. Add a new entry for your game as follows:
 
<game name="resevil" romof="resevil">
               <description>Resident Evil</description>
</game>

 
(9) Done! You may have noticed that in launcher.bat I am shutting down mGalaxy on launching a PSX game and restarting once you exit.  Without this I get unstable behaviour where the game starts in the background. If anyone finds a way to avoid this please let me know.

mgalaxy

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 14
  • Last login:October 27, 2022, 09:33:09 am
Re: How to make mGalaxy work with other emulators
« Reply #2 on: July 06, 2012, 06:33:05 pm »
I've sent you a personal message. Would you please contact me, at least to confirm that you've received it? Thanks!
info at mgalaxy.com