Author Topic: attract mode won't launch mame games on Pi 3  (Read 21722 times)

MikesArcade

  • Jr. Member
  • **
  • Posts: 19
    • View Profile
attract mode won't launch mame games on Pi 3
« on: April 06, 2016, 12:10:41 AM »
I've got raspbian jessy running on my pi 3 with mame4all-pi and attract mode.
I ran the rom list generator in the emulator setup page and it worked fine.
However, when I try to launch a game from the list, it shows a black screen for a second (like its attempt to launch mame) so then jumps back to AM.

Since the ROM list generator was working on the emulator setup page I assumed I had everything right.
I can play the games by launching mame directly from this same folder and they work great.

I configured my mame emulator like this:

executable           /home/pi/Arcade/mame
args                 [name]
rompath              /home/pi/Arcade/roms
romext               .zip;.7z;<DIR>
system               mame
info_source          listxml
artwork    flyer           
artwork    marquee         /home/pi/Arcade/marquees
artwork    snap            /home/pi/Arcade/videos;/home/pi/Arcade/snap
artwork    wheel 

Any ideas what could be wrong?

Finhead

  • Sr. Member
  • ****
  • Posts: 125
    • View Profile
Re: attract mode won't launch mame games on Pi 3
« Reply #1 on: April 06, 2016, 12:26:25 AM »
Has to do with your executable path, same thing happened when I set mine up without a full path to the mame exe

MikesArcade

  • Jr. Member
  • **
  • Posts: 19
    • View Profile
Re: attract mode won't launch mame games on Pi 3
« Reply #2 on: April 06, 2016, 12:41:55 AM »
I think that IS my full path...
What am I missing?

(raspbian is totally new to me)
« Last Edit: April 06, 2016, 12:47:54 AM by MikesArcade »

Finhead

  • Sr. Member
  • ****
  • Posts: 125
    • View Profile
Re: attract mode won't launch mame games on Pi 3
« Reply #3 on: April 06, 2016, 12:54:48 AM »
Other than sytem name I can't see anything wrong with your config, my system lists as Arcade.

I'm sure your correct but just to be sure on the exe path, this is what mine looks like and the path is /opt/retropie/emulators/mame4all/mame




MikesArcade

  • Jr. Member
  • **
  • Posts: 19
    • View Profile
Re: attract mode won't launch mame games on Pi 3
« Reply #4 on: April 06, 2016, 01:06:41 AM »
It still doesn't work: :-(

Did you get the "hyperspin" like layout working?
Where can I get that from?

omegaman

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 880
    • View Profile
Re: attract mode won't launch mame games on Pi 3
« Reply #5 on: April 06, 2016, 07:09:09 AM »
Try this:

Use ./ before the binary.

so, something like this executable    /home/pi/Arcade/./mame

also you might need quotes for arg "[name]"

Another thing, like Fin pointed out, odd location for the executable. 

MikesArcade

  • Jr. Member
  • **
  • Posts: 19
    • View Profile
Re: attract mode won't launch mame games on Pi 3
« Reply #6 on: April 06, 2016, 09:35:34 AM »
Adding ./ before the binary did not help.

So where would mame "normally" live?
I'll just move it around.
I'm a 100% newbie to the pi 3 and to raspian.

Finhead

  • Sr. Member
  • ****
  • Posts: 125
    • View Profile
Re: attract mode won't launch mame games on Pi 3
« Reply #7 on: April 06, 2016, 10:49:43 AM »
Adding ./ before the binary did not help.

So where would mame "normally" live?
I'll just move it around.
I'm a 100% newbie to the pi 3 and to raspian.

Can you post a screen shot of where you think it's located? It would be a fair size file, as mine is 9.5mb.

omegaman

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 880
    • View Profile
Re: attract mode won't launch mame games on Pi 3
« Reply #8 on: April 06, 2016, 11:12:50 AM »
Depends,

If retropie was installed, then mame4all should be here /opt/retropie/emulators/mame4all
 
I suggest taking a look at retroarch which is also installed with retropie as the libretrocores run a little better on the pi, IMHO. The FBnext core runs a lot of mame games the pi incredibly well.

Finhead

  • Sr. Member
  • ****
  • Posts: 125
    • View Profile
Re: attract mode won't launch mame games on Pi 3
« Reply #9 on: April 06, 2016, 11:19:42 AM »
Depends,

If retropie was installed, then mame4all should be here /opt/retropie/emulators/mame4all
 
I suggest taking a look at retroarch which is also installed with retropie as the libretrocores run a little better on the pi, IMHO. The FBnext core runs a lot of mame games the pi incredibly well.

I tried getting the fba_libretro.so core to run mame as well as a few others and they did the blank screen thing for me.  Unless there is a different location for the cores I haven't found, in the RetroPie 3.6 install the only directory that I could find is located at
/opt/retropie/libretrocores/lr-fba-next

Finhead

  • Sr. Member
  • ****
  • Posts: 125
    • View Profile
Re: attract mode won't launch mame games on Pi 3
« Reply #10 on: April 06, 2016, 11:26:35 AM »
It still doesn't work: :-(

Did you get the "hyperspin" like layout working?
Where can I get that from?

I was not able to get Hyperspin themes to work, never used HS or a Rpi before 3 weeks ago so learning but steep hill. lol

I was able to get Omegaman's  Robospin theme/layout working pretty awesome though. Not sure what the difference would be between HS and RS.
It was easy to get running, just copy the robospin folder into the .attract/layouts  directory.
Then you need to load up all your flyers, marquee and wheel art to folders and direct the layout to them. Hardest part is sourcing the art and downloading it all, I had to download 6 gb of files to get what I wanted and then sort through them for the 114 I needed.

Here's mine running, mind the vid it's my phone. ;)

https://www.youtube.com/watch?v=wHACF477Wuw&feature=youtu.be

nitrogen_widget

  • Sr. Member
  • ****
  • Posts: 307
    • View Profile
Re: attract mode won't launch mame games on Pi 3
« Reply #11 on: April 06, 2016, 11:38:58 AM »
Adding ./ before the binary did not help.

So where would mame "normally" live?
I'll just move it around.
I'm a 100% newbie to the pi 3 and to raspian.

Can you post a screen shot of where you think it's located? It would be a fair size file, as mine is 9.5mb.

you need to tell retroarch to launch in one line & the core you want to run in the argument line for the rom.
It took some playing around for me.
when I get home i'll post my mame config text.
I use lr-mame2003.


MikesArcade

  • Jr. Member
  • **
  • Posts: 19
    • View Profile
Re: attract mode won't launch mame games on Pi 3
« Reply #12 on: April 06, 2016, 01:27:38 PM »
I moved mame to here (it was fun with access denied permission issues!):
/usr/local/share/mame/

Which I "think" is more standard.
The same problem exists. Launching a game doesn't work. Black screen then back to attract mode in less than 1 second.

executable           /usr/local/share/mame/mame.exe
args                 "[name]"
rompath              /usr/local/share/mame/roms
romext               .zip;.7z;<DIR>
system               Arcade
info_source          listxml
artwork    flyer           
artwork    marquee         /usr/local/share/mame/marquees
artwork    snap            /usr/local/share/mame/videos;/usr/local/share/mame/snap
artwork    wheel 

Is there a debug mode or something for attract mode that I can use to figure this out?

I'm donating this for a school fundraiser on Saturday.  So I need it working ASAP.
Thanks!
« Last Edit: April 06, 2016, 01:30:17 PM by MikesArcade »

MikesArcade

  • Jr. Member
  • **
  • Posts: 19
    • View Profile
Re: attract mode won't launch mame games on Pi 3
« Reply #13 on: April 06, 2016, 01:34:25 PM »
My setup is Raspbian Jessie created from NOOBs installer.
I'm using Mame4All-Pi
Attract mode was compiled and installed using these instructions:

https://github.com/mickelson/attract/wiki/Compiling-on-the-Raspberry-Pi-%28Raspbian-Jessie%29

Attract.exe is located at:

/usr/local/bin/attract.exe

The attract mode settings are in:

/home/pi/.attract/

The default user appears to be "pi" which auto logs on for me when it boots.
« Last Edit: April 06, 2016, 01:41:08 PM by MikesArcade »

omegaman

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 880
    • View Profile
Re: attract mode won't launch mame games on Pi 3
« Reply #14 on: April 06, 2016, 01:49:03 PM »
FIn-

Here is my config for using libretrocores. You need to read up on how to save configs for each emulator.

executable           /opt/retropie/emulators/retroarch/bin/./retroarch
args                 -L /opt/retropie/libretrocores/lr-fba-next/fba_libretro.so --config /home/pi/.config/retroarch/fba_libretro.so.cfg "[rompath][name][romext]"
rompath              /media/pi/BigMedia/roms/mame_fb
romext               .zip;.7z;.chd;<DIR>
import_extras        /home/pi/.attract/catver.ini;/home/pi/.attract/nplayers.ini
artwork    flyer           /media/pi/BigMedia/media/mame/flyers
artwork    marquee         /media/pi/BigMedia/media/mame/marquee
artwork    screen          /media/pi/BigMedia/media/mame/snap
artwork    snap            /media/pi/BigMedia/media/mame/video
artwork    wheel           /media/pi/BigMedia/media/mame/wheel