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

omegaman

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 880
    • View Profile
Re: attract mode won't launch mame games on Pi 3
« Reply #15 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.

MikesArcade

  • Jr. Member
  • **
  • Posts: 19
    • View Profile
Re: attract mode won't launch mame games on Pi 3
« Reply #16 on: April 06, 2016, 01:59:43 PM »
I'm not using retro pi.

MikesArcade

  • Jr. Member
  • **
  • Posts: 19
    • View Profile
Re: attract mode won't launch mame games on Pi 3
« Reply #17 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
« Last Edit: April 06, 2016, 02:23: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 #18 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

omegaman

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 880
    • View Profile
Re: attract mode won't launch mame games on Pi 3
« Reply #19 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).

MikesArcade

  • Jr. Member
  • **
  • Posts: 19
    • View Profile
Re: attract mode won't launch mame games on Pi 3
« Reply #20 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.
« Last Edit: April 06, 2016, 02:31:44 PM by MikesArcade »

MikesArcade

  • Jr. Member
  • **
  • Posts: 19
    • View Profile
Re: attract mode won't launch mame games on Pi 3
« Reply #21 on: April 06, 2016, 02:50:08 PM »
Reposting here:

*** Running: /usr/local/share/mame/mame "defender.zip"
Game "defender.zip" not supported

omegaman

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 880
    • View Profile
Re: attract mode won't launch mame games on Pi 3
« Reply #22 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
« Last Edit: April 06, 2016, 03:48:52 PM by omegaman »

Finhead

  • Sr. Member
  • ****
  • Posts: 125
    • View Profile
Re: attract mode won't launch mame games on Pi 3
« Reply #23 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.

MikesArcade

  • Jr. Member
  • **
  • Posts: 19
    • View Profile
Re: attract mode won't launch mame games on Pi 3
« Reply #24 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!

Finhead

  • Sr. Member
  • ****
  • Posts: 125
    • View Profile
Re: attract mode won't launch mame games on Pi 3
« Reply #25 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.

MikesArcade

  • Jr. Member
  • **
  • Posts: 19
    • View Profile
Re: attract mode won't launch mame games on Pi 3
« Reply #26 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?

MikesArcade

  • Jr. Member
  • **
  • Posts: 19
    • View Profile
Re: attract mode won't launch mame games on Pi 3
« Reply #27 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.

Finhead

  • Sr. Member
  • ****
  • Posts: 125
    • View Profile
Re: attract mode won't launch mame games on Pi 3
« Reply #28 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. ;)

MikesArcade

  • Jr. Member
  • **
  • Posts: 19
    • View Profile
Re: attract mode won't launch mame games on Pi 3
« Reply #29 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!