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: use mala to launch a pc game?  (Read 13689 times)

0 Members and 1 Guest are viewing this topic.

bartre

  • Trade Count: (+7)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 163
  • Last login:March 19, 2018, 08:56:46 pm
  • I'm hesitating... again.
use mala to launch a pc game?
« on: April 06, 2009, 11:52:34 am »
well, i've been using MaLa for a while, and i think it's great.
but i've got a question, i want to add a couple of pc games to my cabinet, and i was wondering if i could use MaLa to launch it.

Neverending Project

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 851
  • Last login:April 06, 2015, 10:07:43 pm
    • Arcade Fixer
Re: use mala to launch a pc game?
« Reply #1 on: April 06, 2009, 11:55:15 am »
Yes you can.

Check the MaLa wiki (link) for more info, specifically on the "How to setup other Emulators" link.

bartre

  • Trade Count: (+7)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 163
  • Last login:March 19, 2018, 08:56:46 pm
  • I'm hesitating... again.
Re: use mala to launch a pc game?
« Reply #2 on: April 06, 2009, 11:59:08 am »
wow, that was fast!
thanks a lot!

Stormrider

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 318
  • Last login:September 28, 2014, 11:01:54 am
Re: use mala to launch a pc game?
« Reply #3 on: April 07, 2009, 09:54:13 am »
There's a another way that may interests you: adding pc games to your main gamelist and loading them like if they were normal roms. I recently added my mugen.

Create a text file called mala.cmd in your MaLa folder. Now, in options, basic, mame executable, instead of mame.exe write the path to your .cmd file (eg. d:\mala\mala.cmd). Edit mame.cmd and add this (edit your mame path). MAME will be used for all roms, but for 'mugen'.

if %1==mugen goto mugen

d:
cd\
cd d:\mame
mame %1 %2 %3 %4 %5 %6
goto end

:mugen
d:
cd\
cd "d:\Mugen"
mugen.cmd
cd\
goto end

:end

--

Now edit mame.xml and add something like this:

<game name="mugen" sourcefile="mugen.c">
<description>Mugen Fighting Evolution</description>
<manufacturer>Stormrider</manufacturer>
<year>2008</year>
<chip type="cpu" tag="maincpu" name="PC"/>
<chip type="cpu" tag="audiocpu" name="PC"/>
<display type="raster" rotate="0" width="320" height="240" refresh="60.000000" />
<sound channels="2"/>
<input players="2" buttons="6" coins="1" service="no">
<control type="joy8way"/>
</input>
<driver status="good" emulation="good" color="good" sound="good" graphic="good" savestate="unsupported" palettesize="65536"/>
</game>

--

Add this to catver.ini

mugen=Fighter / Versus

--

Create a text file in your roms folder and rename it to mugen.zip

Refresh your rom list and create again the game lists.

Now your Mugen game is listed and can be run. I decided to run it with mugen.cmd instead of mugen.exe because it sometimes fails to close on exit. So my mugen.cmd has a final line with exit. If you want to have a snapshot for your mugen, press print screen when in the game. Create a new image in Photoshop, paste, crop the picture and save it as mugen.png in your snaps folder. Yo can do this with other pc games.


pitw

  • Trade Count: (0)
  • Newbie
  • *
  • Offline Offline
  • Posts: 1
  • Last login:January 02, 2013, 01:28:14 pm
Re: use mala to launch a pc game?
« Reply #4 on: January 26, 2010, 03:52:59 pm »
There's a another way that may interests you: adding pc games to your main gamelist and loading them like if they were normal roms. I recently added my mugen.

Create a text file called mala.cmd in your MaLa folder. Now, in options, basic, mame executable, instead of mame.exe write the path to your .cmd file (eg. d:\mala\mala.cmd). Edit mame.cmd and add this (edit your mame path). MAME will be used for all roms, but for 'mugen'.

if %1==mugen goto mugen

d:
cd\
cd d:\mame
mame %1 %2 %3 %4 %5 %6
goto end

:mugen
d:
cd\
cd "d:\Mugen"
mugen.cmd
cd\
goto end

:end

--

Now edit mame.xml and add something like this:

<game name="mugen" sourcefile="mugen.c">
<description>Mugen Fighting Evolution</description>
<manufacturer>Stormrider</manufacturer>
<year>2008</year>
<chip type="cpu" tag="maincpu" name="PC"/>
<chip type="cpu" tag="audiocpu" name="PC"/>
<display type="raster" rotate="0" width="320" height="240" refresh="60.000000" />
<sound channels="2"/>
<input players="2" buttons="6" coins="1" service="no">
<control type="joy8way"/>
</input>
<driver status="good" emulation="good" color="good" sound="good" graphic="good" savestate="unsupported" palettesize="65536"/>
</game>

--

Add this to catver.ini

mugen=Fighter / Versus

--

Create a text file in your roms folder and rename it to mugen.zip

Refresh your rom list and create again the game lists.

Now your Mugen game is listed and can be run. I decided to run it with mugen.cmd instead of mugen.exe because it sometimes fails to close on exit. So my mugen.cmd has a final line with exit. If you want to have a snapshot for your mugen, press print screen when in the game. Create a new image in Photoshop, paste, crop the picture and save it as mugen.png in your snaps folder. Yo can do this with other pc games.


Thank you. Been trying to find a way of doing this for ages.

bangiiz

  • Trade Count: (0)
  • Newbie
  • *
  • Offline Offline
  • Posts: 1
  • Last login:December 10, 2012, 10:21:28 am
  • I want to build my own arcade controls!
Re: use mala to launch a pc game?
« Reply #5 on: December 10, 2012, 10:21:28 am »
Thank you for the solution  ;)

thaddeussmith

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 66
  • Last login:April 21, 2017, 11:49:51 am
Re: use mala to launch a pc game?
« Reply #6 on: December 20, 2012, 12:41:05 pm »
what causes MaLa to launch a game in the background? Everything I try to search for ends up talking about background music and other irrelevant crap.

Trying to play the new Street Fighter x Megaman on my cabinet. I've got MaLa launching it just fine, but it doesn't switch over to the game window. :/

bmanbdaman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 71
  • Last login:May 09, 2018, 10:03:23 pm
  • I want to build my own arcade controls!
Re: use mala to launch a pc game?
« Reply #7 on: March 24, 2013, 01:20:01 am »
what causes MaLa to launch a game in the background? Everything I try to search for ends up talking about background music and other irrelevant crap.

Trying to play the new Street Fighter x Megaman on my cabinet. I've got MaLa launching it just fine, but it doesn't switch over to the game window. :/
I had to be sure all my PC launches were lnk (Windows Shortcut) files and the "Window State" in Execution  was set to Normal to ensure games did not hide in the background. Causes a temporary black window if using a bat file, but worth the hassle to avoid Alt-Tab.