Author Topic: [Solved] Mame, can't start games in Attract Mode  (Read 7059 times)

progets

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1271
    • View Profile
Re: Help : Mame, can't start games in Attract Mode
« Reply #15 on: July 11, 2020, 09:40:54 PM »
Ok, try this then.

Code: [Select]
D:\Mame\Mame64.exe -inipath D:\Mame toki

addcparis

  • Jr. Member
  • **
  • Posts: 14
    • View Profile
Re: Help : Mame, can't start games in Attract Mode
« Reply #16 on: July 11, 2020, 09:46:46 PM »
It works, the game loads

progets

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1271
    • View Profile
Re: Help : Mame, can't start games in Attract Mode
« Reply #17 on: July 11, 2020, 09:58:03 PM »
I don't think you have more than one mame.ini but it only seems like your mame.ini is loaded when you're in the mame directory on the command line.

The easiest thing to do is to change your AM mame emulator configuration file to something like this
Code: [Select]
# Generated by Attract-Mode v2.6.1
#
executable           D:\Mame\Mame64.exe -inipath D:\Mame
args                 [name]
rompath              D:\Mame\Roms\Mainlist
romext               .zip;.7z
system               Arcade
info_source          listxml
exit_hotkey          Escape
pause_hotkey         Num1+Down
artwork    marquee         $HOME/Mame/Marquee
artwork    snap            $HOME/mame/video;$HOME/mame/snap

There are other options but this is probably the easiest thing to do. I don't use groovymame, I'm on a different version of the official mame and likely on a different version of windows so testing any further would be difficult.

I will say that on my setup I did have the same issue on the command line with mame if I wasn't in the mame folder. However, I don't define a working directory in AM and my game launch properly without the -inipath switch.

progets

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1271
    • View Profile
Re: Help : Mame, can't start games in Attract Mode
« Reply #18 on: July 11, 2020, 10:09:53 PM »
I should also mention that I use root paths in my emulator configuration files. I don't know if this makes a difference but you can try something like this to see if it works too.

Code: [Select]
# Generated by Attract-Mode v2.6.1
#
executable           \Mame\Mame64.exe
args                 [name]
rompath              \Mame\Roms\Mainlist
romext               .zip;.7z
system               Arcade
info_source          listxml
exit_hotkey          Escape
pause_hotkey         Num1+Down
artwork    marquee         $HOME/Mame/Marquee
artwork    snap            $HOME/mame/video;$HOME/mame/snap


addcparis

  • Jr. Member
  • **
  • Posts: 14
    • View Profile
Re: Help : Mame, can't start games in Attract Mode
« Reply #19 on: July 12, 2020, 12:39:29 AM »
I tried both, I get the same error.

For info, I've put the AM folder in the Mame folder.

Should I try to put the content of the AM folder in the Mame folder ? I'm wondering if it would get it to start from the d:\mame where I manage to get the command line to work

akafox

  • Hero Member
  • *****
  • Posts: 985
    • View Profile
Re: Help : Mame, can't start games in Attract Mode
« Reply #20 on: July 12, 2020, 09:21:35 AM »
I have a half a mind to say delete your mame ini and AM and start fresh....

this is too weird  :o
People want life easy..then complain about it

addcparis

  • Jr. Member
  • **
  • Posts: 14
    • View Profile
Re: Help : Mame, can't start games in Attract Mode
« Reply #21 on: July 12, 2020, 01:16:47 PM »
I have a half a mind to say delete your mame ini and AM and start fresh....

this is too weird  :o

That's exactly what I started doing. I deleted everything and I'm starting from scratch.

I'm not even installing AM for now, I'm just trying to get the Mame command line to work from outside the D:\mame folder.
I set the inipath in Mame.ini to where the ini file is, but Mame doesn't look there. Using the -sc command, it pulls an .ini file that doesn't have the rompath and inipath I set, and since I only have one mane.ini file, I can"t figure where he pulls  that other .ini file from.

Next attempt is to put my good mame.ini file in the directory where the command line starts from, I'm going totally blind there.

addcparis

  • Jr. Member
  • **
  • Posts: 14
    • View Profile
Re: Help : Mame, can't start games in Attract Mode
« Reply #22 on: July 12, 2020, 01:28:13 PM »
Ok some progress here, I made a copy of my mame.ini file and put it in c:\users\me, which is the default folder my command line starts from, and the command line works.

I'm going to install AM now and try, while crossing fingers, that this sorts it all out

addcparis

  • Jr. Member
  • **
  • Posts: 14
    • View Profile
Re: Help : Mame, can't start games in Attract Mode
« Reply #23 on: July 12, 2020, 06:30:15 PM »
No luck, I still get the same error in AM, it's going with the other mame.ini file that doesn't exist.

I don't understand how this works, is there a default folder that AM runs the mame command line from ? That's probably where I should put my mame.ini file but I don't know how to find that location.

Any idea ?

progets

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1271
    • View Profile
Re: Help : Mame, can't start games in Attract Mode
« Reply #24 on: July 12, 2020, 07:07:53 PM »
I'm confused. Didn't you say above that this worked?

Code: [Select]
D:\Mame\Mame64.exe -inipath D:\Mame toki

addcparis

  • Jr. Member
  • **
  • Posts: 14
    • View Profile
Re: Help : Mame, can't start games in Attract Mode
« Reply #25 on: July 12, 2020, 07:47:20 PM »
It worked from the command line.

I put the same line (without the rom name) in AM, and I get the error files not found.

progets

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1271
    • View Profile
Re: Help : Mame, can't start games in Attract Mode
« Reply #26 on: July 12, 2020, 08:17:53 PM »
Setting the "inipath" in the mame.ini is pointless for the mame.ini. If the file is never read then neither are its contents including "inipath" and "rompath".

Once you had the command working from the command line you should just need to adjust the AM emulator file to get it to work.

Try just this
Code: [Select]
# Generated by Attract-Mode v2.6.1
#
executable           D:\Mame\Mame64.exe -inipath D:\Mame
args                 [name]
rompath              D:\Mame\Roms\Mainlist
romext               .zip;.7z
system               Arcade
info_source          listxml
artwork    marquee         $HOME/Mame/Marquee
artwork    snap            $HOME/mame/video;$HOME/mame/snap

addcparis

  • Jr. Member
  • **
  • Posts: 14
    • View Profile
Re: Help : Mame, can't start games in Attract Mode
« Reply #27 on: July 13, 2020, 11:43:43 AM »
It WORKS ! Yay

Setting up the inipath in AM was not enough though.

AM needs to be run in Admin mode (Right click, properties, Run as admin), even when logged in to windows with an admin account.

I'm all good now, thanks a lot for the help, I'm really happy you helped me sorting it out.

akafox

  • Hero Member
  • *****
  • Posts: 985
    • View Profile
Re: [Solved] Mame, can't start games in Attract Mode
« Reply #28 on: July 17, 2020, 06:54:17 AM »
Run in root?...err I mean Admin mode...  :o

That is bizarre...or is that normal for Windows?

People want life easy..then complain about it