EmulationStation icon indicating copy to clipboard operation
EmulationStation copied to clipboard

Mame command

Open aidank-2001 opened this issue 9 years ago • 10 comments

In EmulationStation, I am trying to launch mame, but when I choose a game, a command window pops up for a split second, then disappears and it brings me back to the EmulationStation window. I think it is somthing to so with the command. The command I currently have in the es_systems.cfg file for mame is %HOMEPATH%.emulationstation\systems\mame\mame64.exe "%BASENAME%" Is there a different way I need to do this?

aidank-2001 avatar Sep 05 '15 22:09 aidank-2001

sounds like your rom isn't working perhaps. correct romset for the emulator? if you recreate, then look at temp/run_command.log, you can see any errors that are reported during rom load.

dankcushions avatar Sep 06 '15 00:09 dankcushions

I don't know what you mean by temp/run_command.log. When I load the rom through mame's user interface, it works just fine.

aidank-2001 avatar Sep 06 '15 03:09 aidank-2001

@objectchris emulationstation makes no such file - retropie has a /tmp/runcommand.log but that is unrelated to this ticket.

@aidankitty put the full pathname in without using %HOMEPATH% perhaps - have you set the rompath correctly for mame64 ? check in es_log.txt for what commandline it is using.

joolswills avatar Sep 06 '15 03:09 joolswills

Where are your roms located? Are they in mame/roms? I was having a similar problem, but it's because I store my roms in a different location. My command (which is working) looks like this: E:\games\emulators\mame\mame.exe %BASENAME% -rompath E:\games\roms\mame\

nweber avatar Sep 06 '15 13:09 nweber

@nweber I have the roms in both the \roms\mame and in \systems\mame\roms I tried your command, replacing the paths for the correct ones for my system, and it worked. Then only problem is mame doesn't load my configs, and just uses the default settings.

aidank-2001 avatar Sep 06 '15 15:09 aidank-2001

There's also a command line trigger to load a specific configuration file. Perhaps that will help?

-readconfig Description

Enables loading of configuration files

Short Command

-rc

Example

mame -readconfig

nweber avatar Sep 08 '15 19:09 nweber

I know this is a 2 year+ old thread, but in case anyone is "Googling" as I was I want them to see an extra step. Emulation station creates a log file when in runs called es_log.txt which should be in the same directory as es_system.cfg. Find the command that mame64.3exe is attempting to run and paste it into a command line and add the -verbose switch. Mame should give you the error that it has encountered running the ROM. I suspect that there are files missing. Mame64 allows you to bypass this error when you run the graphical interface. I do not believe there is a CLI switch to turn off error checking.

iambotchan avatar Nov 22 '17 11:11 iambotchan

Hello, I have Mame working on Emulation Station for Windows with the following: C:\emulators\mame\mame.exe %BASENAME% -rompath C:\emulators\mame\roms\

But Mame is starting with the default settings so I can't use my controller for example. I've tried to use the -rc command but then nothing happens. Perhaps I am using it wrong. Can someone help me how to solve this. Thanks !!

kezzaman avatar Dec 20 '17 12:12 kezzaman

in ES_systems.cfg

<system> <name>mame</name> <fullname>MAME</fullname> <path>~\.emulationstation\roms\mame\games\</path> <extension>.zip .ZIP</extension> <command>%HOME%\.emulationstation\systems\mame\mame.exe %BASENAME% -window -rompath %HOME%\.emulationstation\roms\mame\roms\;%HOME%\.emulationstation\roms\mame\games\</command> <platform>arcade</platform> <theme>mame</theme> </system>

theincomlive avatar Sep 22 '18 11:09 theincomlive

<command>start /WAIT /B /D C:\Users\jjrambo\.emulationstation\mame\ mame64.exe %BASENAME%</command>

0zzy80 avatar Aug 23 '20 19:08 0zzy80