Aloshi / EmulationStation

A flexible emulator front-end supporting keyboardless navigation and custom system themes.
MIT License
2.03k stars 897 forks source link

Mame command #509

Open aidank-2001 opened 8 years ago

aidank-2001 commented 8 years ago

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?

dankcushions commented 8 years ago

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.

aidank-2001 commented 8 years ago

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.

joolswills commented 8 years ago

@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.

nweber commented 8 years ago

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\

aidank-2001 commented 8 years ago

@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.

nweber commented 8 years ago

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

iambotchan commented 6 years ago

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.

kezzaman commented 6 years ago

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 !!

theincomlive commented 5 years ago

in ES_systems.cfg

`

mame
<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>

`

0zzy80 commented 3 years ago

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