Front End Support > MaLa Frontend

GameLists: Multiple emuls in same list work-around solution

<< < (26/68) > >>

darkling27:
Hey there, sorry to bump an old post... But i cant find any other threads about this.

Im having trouble getting the pc games to work on my singular game list. I have them appearing on the list with their attact video and Marquee working fine. But when i try to launch them from the list, the command box flashes up and closes too fast too see and the game doesnt start.

The dummy .zip files are in ... F:\MAME\MameUI32\other_games\pc
and the .lnk files can be found in ... F:\MAME\MameUI32\other_games\pclink

I have my mame.cmd file as...
------------------
If "%2" == "F:\MAME\MameUI32\other_games\pc" goto pcgames


mame.exe %1
exit

:pcgames
cd ..\other_games\pclink
%1.lnk
exit
-----------------------

Any help would be great =]

SGT:
You might try changing:

--- Code: ---cd ..\other_games\pclink
--- End code ---
to:

--- Code: ---cd \MAME\MameUI32\other_games\pclink
--- End code ---

If this doesn't work, set Mala to run the command in a normal window instead of a hidden one.  Then, put "pause" in your batch file so you can read the error that the batch file gives after it tries to execute the pc game:



--- Code: ---:pcgames
cd \MAME\MameUI32\other_games\pclink
%1.lnk
pause
exit
--- End code ---


One last thing to check is the upper and lower case in this line:

--- Code: ---If "%2" == "F:\MAME\MameUI32\other_games\pc" goto pcgames
--- End code ---

It is case sensitive therefore the \MAME\MameUI32\other-games\pc must match your actual folder names exactly.

darkling27:
Ah, i have just realised this is happening to everything on my list, not just the pc games.
When i change the MAME executable back to the MameUI32.exe the mame games work again, but the pc games wont (obviously)

I just removed the ...
------
mame.exe %1
exit
-------
...part of the .cmd file and the pc games now work!!! but the MAME ones dont

So im guessing thats the problem.

I put a pause between the 'mame.exe %1' and the 'exit' and tried to play dr mario (MAME game) it says

-------
F:\MAME\MameUI32>if "" == "F:\MAME\MameUI32\other_games\pc" goto pcgames

F:\MAME\MameUI32>mame.exe drmario
'mame.exe' is not recognised as an internal or external command, operable program or batch file.

F:\MAME\MameUI32>pause
press any key to continue . . .
--------

Am i missing something? =S

SGT:
Yeah, it needs to be mameui32.exe since you're not using the command line version of Mame.  The problem is with your IF statement.  It doesn't match exactly the rom path that mala is sending to it.  To find out exactly what Mala is sending as %2 put the following as the first 3 lines of your mame.cmd:


--- Code: ---@echo off
echo %2
pause
--- End code ---

Then run it.  The first line that displays in the black command window with be the contents of %2 which is also equal to the rom path in Mala.  In your case it should equal exactly (including upper and lower case):

--- Code: ---F:\MAME\MameUI32\other_games\pc
--- End code ---

If it doesn't, then there's your problem.

darkling27:
This is my command file currently...
------
@echo off
echo %2
pause

IF "%2" == "F:\MAME\MameUI32\other_games\pc" goto pcgames


MameUI32.exe %1
exit

:pcgames
cd \MAME\MameUI32\other_games\pclink
%1.lnk
pause
exit
---------------

All that comes up when trying to play a PC games is...

--------------
ECHO is off.
Press any key to continue
-------------
pressing a key, the wondow closes and no game starts and no 'F:\MAME\MameUI32\other_games\pc' line

Im sure the higher and lower case is fine in the addresses  :-\

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version