Front End Support > MaLa Frontend

GameLists: Multiple emuls in same list work-around solution

<< < (18/68) > >>

Lakersfan:
Hi SGT,
One follow-up question to my NES setup.... How would my cmd file look if I wanted to run multiple roms using fceu?

How would I add the rom named: "R.C. Pro-Am (USA) (Rev A).zip"

--- Code: ---if "%2" == "I:\Arcade\emulators\fceUltra\roms" goto fceUltra
if "%2" == "I:\Arcade\emulators\daphne\roms" goto daphne

mame.exe %1
exit

:fceUltra
cd \Arcade\emulators\fceUltra
fceu.exe "I:\Arcade\emulators\fceUltra\roms\Super Mario Bros. 2 (USA).zip"
exit

:daphne
cd \Arcade\emulators\daphne
daphne.exe lair vldp -framefile "I:\Arcade\emulators\daphne\vldp_dl\lair\lair.txt" -fullscreen -nohwaccel -fastboot
exit
--- End code ---


Thanks!!

SGT:
Well, what should be easy is complicated by a couple of problems.  Normally for most emulators you would change the following line:

--- Code: ---fceu.exe "I:\Arcade\emulators\fceUltra\roms\Super Mario Bros. 2 (USA).zip"
--- End code ---
to:

--- Code: ---fceu.exe %1.zip
--- End code ---

This will in essence be translated when ran to:

--- Code: ---fceu.exe "Super Mario Bros. 2 (USA)".zip
--- End code ---

Unfortunately fecUltra doesn't like this for two reasons. 

Problem #1) fceUltra wants a path specfied to the rom.  I haven't seen an option in fceUltra to specify a default rom folder.


For problem #1 you'd think you could go with

--- Code: ---fecu.exe %2\%1.zip
--- End code ---
Which translates when ran to:

--- Code: ---fceu .exe I:\Arcade\emulators\fceUltra\roms\"Super Mario Bros. 2 (USA)".zip
--- End code ---

fceUltra doesn't like this because of

Problem #2) fceUltra wants quotation marks around the whole path and rom (not the rom), ala

--- Code: ---"I:\Arcade\emulators\fceUltra\roms\Super Mario Bros. 2 (USA).zip"
--- End code ---

Well we know we had to put quotes around the rom name because of the spaces in the rom name, so to get it like fceUltra wants it you think, let's add a third parameter to the Mala mame commandline.  So in Mala, instead of:

--- Code: ---"%rom%" %path%
--- End code ---
we add the path and rom name to a third parameter, and the command line becomes:

--- Code: ---"%rom%" %path% "%path%\%rom%.%ext%"
--- End code ---
Then we'll change the batch file to read

--- Code: ---fecu.exe %3
--- End code ---

This works!...........EXCEPT, when you close Mala, and re-open Mala, the command line is no longer there.  It has changed from:

--- Code: ---"%rom%" %path% "%path%\%rom%.%ext%"
--- End code ---
to:

--- Code: ---%rom%" %path% "%path%\%rom%.%ext%
--- End code ---

Notice the missing quotation marks at the start and the end of the string.  I tried the advanced command line option in Mala, but the %rom% and %path% variables are not translated at run time for some reason.   I guess we need to ask Swindus to change this behavior in Mala.  If he doesn't want to, I'll write a wrapper for ultraFCE so it isn't so picky about the command line.  Fact is, a wrapper may already exist for it.

This other project, Multimame, has a lot of potential and will ultimately be a better solution if I can figure out how to use it.  I've looked at it a little bit, but I'm still confused.  Another solution would be if someone knows how to set up fceUltra so you do not have to specify a rom path on the command line.

Lakersfan:
 :o Thanks for the detailed answer.... I tried to look a multimame as well, but as you can see by earlier threads, I need a lot of hand holding at this point and there isn't really any how-to documentation to get me started with it, so I went back to this thread coupled with your help.  ;)

I'll give Loadman or Swindus a pm to see if they have any ideas why quotes disappear in mala...

Ya know, it's not really a BIG deal to get these few Nintendo roms running on my cab. I just wanted to replace a few of the mame playchoice games with these... If there is a better emulator for nes, I'd give it a shot.

Thanks, I really do appreciate all your help recently!

SGT:
I think that Nestopia is arguably the most popular of the NES emulators.  I gave it a shot and it works like a charm.  This is the entry that I used in mame.cmd:


--- Code: ---nestopia.exe %2\%1.zip
--- End code ---


You will still need Mala's Mame command line to be:

--- Code: ---"%rom%" %path%
--- End code ---

If you give nestopia a shot, don't forget to remove the rom from the fceUltra folder before refreshing your game list.  You can change the exit key in nestopia to ESC after changing its default definition which toggles menus or something like that.  You can also set Nestopia to NOT confirm exit so it doesn't ask you if you are sure you want to exit.   Of course the path will need to be changed in mame.cmd, but you already know about that.

Here is the most recent version of Nestopia that I could find:
http://www.emulator-zone.com/doc.php/nes/nestopia.html

Lakersfan:
Thanks buddy. I'll give it a shot!

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version