Front End Support > MaLa Frontend

GameLists: Multiple Versions of MAME

<< < (5/8) > >>

SGT:
If you look at NOP's example above, you will see references to %1, %2.  These variables are the parameters that Mala passes to the batch file.  So if you look in Mala for what the command line is, you will see %rom% variable which represents the rom name for the chosen game.  When the batch file receives this first parameter it assigns it to the %1 variable.  If there are any other variables in the Mala command line setting, they will be assigned %2, %3, and so forth.

Therefore using this method, you can branch off to different areas in the batch file based upon what the rom name is.  Of course you branch off to different areas in order to use a different version of the mame executable.

Some people will add the %path% variable (which will become %2) to the command line setting in Mala in order to branch off based upon which folder the rom is located in.  This is useful if you have a lot of roms that you want to run with different versions of Mame (or any other emulator).  Using this method, you simply move all the roms you want to run in with a certain version of mame to one folder.   This alleviates you from having to put a line for each rom in your batch file.

Hope that wasn't too confusing...

BurgerKingDiamond:
@SGT. I understand that in principle, but I haven't got it to work yet. I'm actually trying to to it the way that you showed in your own thread, using the %path% variable. There are still some other parts of the mame.cmd that you wrote that I don't understand.

On the desktop I have a folder called MamewMala that has everything for Mala. Inside that I made a folder called other_emus. Inside that folder is another one called roms_2 with all the roms that I want to run with an older version of mame. I put the other executable (MameUI32) in other_emus (is that right?). Could you write me the mame.cmd file from this info? I think seeing it already written for me would make it easier to understand what's going on. :notworthy:

BurgerKingDiamond:
@SGT, I got it working. Your guide is great. It was my computer ignorance to blame. Later tonight I'm gonna try to get my PC Touhou games to work. I may have a question or two for you about that. Thanks.

thatgammon:
Ok this seems a great work around.

Do you create the .bat file in notepad and then save as mame.bat? If so have done this

How do you point Mala to the .bat file when it only reads .exe?

Two newbie questions I know , just stuck on that!

Sorry! and appreciate any help, cheers.

NOP:
>Do you create the .bat file in notepad and then save as mame.bat? If so have done this

You can, just be careful when you save the file.  notepad will try to save the file as a .txt file every time, so you may end up with mame.bat.txt as your filename.  When you save the file in notepad, change the dropdown box in "save as type" to all files.


> How do you point Mala to the .bat file when it only reads .exe?

This was answered by IDDQD near the top of the thread.  You have to type it in.

You must also rename your existing mame.exe to something else.  I used "dmame.exe" in my example.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version