Attract-Mode Support Forum

Attract-Mode Support => General => Topic started by: MikesArcade on April 06, 2016, 12:10:41 AM

Title: attract mode won't launch mame games on Pi 3
Post by: MikesArcade 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?
Title: Re: attract mode won't launch mame games on Pi 3
Post by: Finhead 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
Title: Re: attract mode won't launch mame games on Pi 3
Post by: MikesArcade 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)
Title: Re: attract mode won't launch mame games on Pi 3
Post by: Finhead 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

(http://i1017.photobucket.com/albums/af298/Finhead/Rpi3/MAME_DIR_zpsvh9qqtb7.jpg)

Title: Re: attract mode won't launch mame games on Pi 3
Post by: MikesArcade 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?
Title: Re: attract mode won't launch mame games on Pi 3
Post by: omegaman 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. 
Title: Re: attract mode won't launch mame games on Pi 3
Post by: MikesArcade 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.
Title: Re: attract mode won't launch mame games on Pi 3
Post by: Finhead 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.
Title: Re: attract mode won't launch mame games on Pi 3
Post by: omegaman 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.
Title: Re: attract mode won't launch mame games on Pi 3
Post by: Finhead 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
Title: Re: attract mode won't launch mame games on Pi 3
Post by: Finhead 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 (https://www.youtube.com/watch?v=wHACF477Wuw&feature=youtu.be)
Title: Re: attract mode won't launch mame games on Pi 3
Post by: nitrogen_widget 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.

Title: Re: attract mode won't launch mame games on Pi 3
Post by: MikesArcade 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!
Title: Re: attract mode won't launch mame games on Pi 3
Post by: MikesArcade 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.
Title: Re: attract mode won't launch mame games on Pi 3
Post by: omegaman 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
Title: Re: attract mode won't launch mame games on Pi 3
Post by: omegaman on April 06, 2016, 01:55:55 PM
Mike-

Why do you have mame.exe in your config. This is not windows :p

Trying running the emulator on the cmd line in terminal first. If it works on the cmd line, it should work in attract the same way.

Im pretty sure you need to run ./ before launching the binary.
Title: Re: attract mode won't launch mame games on Pi 3
Post by: MikesArcade on April 06, 2016, 01:59:43 PM
I'm not using retro pi.
Title: Re: attract mode won't launch mame games on Pi 3
Post by: MikesArcade on April 06, 2016, 02:05:47 PM
Yeah I know its not windows...
Took out the .exe
No dice.

I tried launching a game 10 times in a row really fast in attract mode.
I think there is popup in the background that says:

"This file "mame" is an executable.  Are you sure you want to execute it?"

That might be a red herring.

When I launch attract via terminal and try to load a game I noticed a command window in the back which says:

usr/local/bin $ attract
Starting Attract-Mode v2.0.0 (Linux)
Config: /home/pi/.attract/attract.cfg

*** Initializing display: 'Classic Arcade Games'
 - Loaded master romlist 'Classic Arcade Games' in 0 ms (45 entries kept, 0 discarded)
 - Constructed 2 filters in 0 ms (90 comparisons)
AL lib: (WW) alc_initconfig: Failed to initialize backend "pulse"
Unable to get joystick attribute. Could not find USB device for joystick at index 0.
Unable to get joystick attribute. Could not find USB device for joystick at index 0.
Unable to get joystick attribute. Could not find USB device for joystick at index 1.
Unable to get joystick attribute. Could not find USB device for joystick at index 1.
Error opening input file: /usr/local/share/attract/intro/intro_4x3.mp4
ERROR loading video: /usr/local/share/attract/intro/intro_4x3.mp4
Error opening input file: /usr/local/share/attract/intro/intro.mp4
ERROR loading video: /usr/local/share/attract/intro/intro.mp4
 - Loaded layout: /usr/local/share/attract/layouts/Attrac-Man/ (layout.nut)
*** Running: /usr/local/share/mame/mame "defender.zip"
Game "defender.zip" not supported
Title: Re: attract mode won't launch mame games on Pi 3
Post by: omegaman on April 06, 2016, 02:17:14 PM
If it was installed right, you should be able to drop into terminal and just type ./mame

I'm too lazy to read all the threads again but did you compile this yourself or download a pre-compiled ?

I'm thinking the mame binary is somewhere here /usr/local/bin/, Check every sub-folder under bin
Title: Re: attract mode won't launch mame games on Pi 3
Post by: omegaman on April 06, 2016, 02:23:37 PM
Does your directory look like this ?

/usr/local/bin/indiecity/InstalledApps/mame4all/Full/roms/

   
To run MAME simple run the "mame" executable. At the command line "./mame".

This runs the GUI frontend by default. To simply run MAME without the GUI
enter "./mame {gamerom}" where "{gamerom}" is the game to run.

It will work in X-Windows or in the Console (which is preferred).
Title: Re: attract mode won't launch mame games on Pi 3
Post by: MikesArcade on April 06, 2016, 02:26:06 PM
./mame in a terminal works great.  The UI comes up and games can play.

See previous post.  Added contents of the attract terminal stuff.

mame was downloaded and copied over.
I can run games directly from mame just fine.
Title: Re: attract mode won't launch mame games on Pi 3
Post by: MikesArcade on April 06, 2016, 02:50:08 PM
Reposting here:

*** Running: /usr/local/share/mame/mame "defender.zip"
Game "defender.zip" not supported
Title: Re: attract mode won't launch mame games on Pi 3
Post by: omegaman on April 06, 2016, 03:41:00 PM
Ok, I think we are getting somewhere now. This should work below: 

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

I would move your roms to /home/pi/, you might have to put this path in your mame.cfg as well. My setup is somewhat different because I use libretrocores.

Also, keep in mind that mame4all uses 0.37b5 romset
Title: Re: attract mode won't launch mame games on Pi 3
Post by: Finhead on April 06, 2016, 03:43:56 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

Honestly I'm 100% shocked I have made it this far with AM, like I say 3 weeks ago I never looked at linux or a Rpi. So it's a steep learning curve coming off the click install Windows based OS.
Where would I go to read up on saving configs for each emulator? If it's a matter of just saving off the settings you have listed I have dont that for MAME and SNES so far and both work fine, just didn't have any luck trying to run any other MAME version other than mame4all.
I have all the flyer, marquee, snap, video and wheel working fine in the proper directories. Just couldn't get other emulators that are not a direct path working.
Title: Re: attract mode won't launch mame games on Pi 3
Post by: MikesArcade on April 06, 2016, 03:46:48 PM
I solved it!!

The attract software adds a ".zip" extension to the ROM file when it auto builds the ROM list from the MAME files.

When I take out the .zip for all the roms in the list it works great!
Title: Re: attract mode won't launch mame games on Pi 3
Post by: Finhead on April 06, 2016, 03:53:33 PM
I solved it!!

The attract software adds a ".zip" extension to the ROM file when it auto builds the ROM list from the MAME files.

When I take out the .zip for all the roms in the list it works great!

So it wont run the roms with a .zip extension? Weird mine is opposite.

BTW if you don't have a crazy amount of roms on there and need the wheel art, marquee and flyers LMK and I can most likely drop box them for you. That way you can get the Robospin frontend workin as well.
Title: Re: attract mode won't launch mame games on Pi 3
Post by: MikesArcade on April 06, 2016, 04:10:24 PM
Yes that would be awesome!!  Give me whatever you got.

Does it have the cool sounds like Hyperspin when you switch games?
Title: Re: attract mode won't launch mame games on Pi 3
Post by: MikesArcade on April 06, 2016, 04:13:42 PM
omegaman,

What files should go where for mame?
You said to put roms in /home/pi/mame/roms directory?

Where does mame.cfg go?

If I start splitting things up I just want to know where to put them.
Title: Re: attract mode won't launch mame games on Pi 3
Post by: Finhead on April 06, 2016, 04:26:43 PM
Yes that would be awesome!!  Give me whatever you got.

Does it have the cool sounds like Hyperspin when you switch games?

Can't really give you all I have, something like 9 gbs of files.
Send me a email with a list of the Roms you going to install on that machine and I'll sort out what all I have for them provided you don't have like 200 or something going on there. ;)
Title: Re: attract mode won't launch mame games on Pi 3
Post by: MikesArcade on April 06, 2016, 04:36:15 PM
I'm focusing on classics 80's arcade games for now.
Can't drop box handle that big of a file?

Send me a link to m i k e . m o e n i n g @  goo-gle mail .c o m

You'll have to remove the spaces and replace that last part with gmail.com
Thanks!
Send me the themes and stuff too. I'm totally in the dark about all that too!
Title: Re: attract mode won't launch mame games on Pi 3
Post by: omegaman on April 06, 2016, 05:01:30 PM
Mike-

Excellent...

How did you create your romlist? My romlist doesn't have any zip ext. But, I typically import using xml files. Though, building with the gui shouldn't make any difference. Maybe, its the way mame4all generates its list. 

All your roms, media, configs etc... I would put somewhere on /home/pi like below:

However, you want to organize it. I do something like this:

/home/pi/media/mame/snaps
/home/pi/roms/mame
Title: Re: attract mode won't launch mame games on Pi 3
Post by: nitrogen_widget on April 07, 2016, 09:13:21 AM
mame4all if I recall was different than libretro or advanced mame when it came to generating a list.
Title: Re: attract mode won't launch mame games on Pi 3
Post by: omegaman on April 07, 2016, 09:30:38 AM
Libretro 2003 is looking pretty good thus far on the rpi3. Might need to try 2010, also.
Title: Re: attract mode won't launch mame games on Pi 3
Post by: nitrogen_widget on April 07, 2016, 10:29:06 AM
Libretro 2003 is looking pretty good thus far on the rpi3. Might need to try 2010, also.

I had mk3 and street fighter alpha at 59.9 fps on my rpi3 with libretro 2003.

advmame is still a problem because of SDL1.
someone needs to port it to sdl2.

I took my .106 rom collection & downgraded it to .78.

Still can't get shaders to work though.
Wondering if it's because of my power issue.