The NEW Build Your Own Arcade Controls

Front End Support => MaLa Frontend => Topic started by: bartre on April 06, 2009, 11:52:34 am

Title: use mala to launch a pc game?
Post by: bartre 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.
Title: Re: use mala to launch a pc game?
Post by: Neverending Project on April 06, 2009, 11:55:15 am
Yes you can.

Check the MaLa wiki (link (http://wiki.arcadecontrols.com/wiki/Mala_Wiki)) for more info, specifically on the "How to setup other Emulators" link.
Title: Re: use mala to launch a pc game?
Post by: bartre on April 06, 2009, 11:59:08 am
wow, that was fast!
thanks a lot!
Title: Re: use mala to launch a pc game?
Post by: Stormrider 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.

(http://www.alvarezeninternet.com/malalayout/h6.jpg)
Title: Re: use mala to launch a pc game?
Post by: pitw 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.

(http://www.alvarezeninternet.com/malalayout/h6.jpg)
Thank you. Been trying to find a way of doing this for ages.
Title: Re: use mala to launch a pc game?
Post by: bangiiz on December 10, 2012, 10:21:28 am
Thank you for the solution  ;)
Title: Re: use mala to launch a pc game?
Post by: thaddeussmith 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. :/
Title: Re: use mala to launch a pc game?
Post by: bmanbdaman 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.