Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up --- Bug Reports --- Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Raspberry Pi 2 with Mame - anyone tried it yet?  (Read 26385 times)

0 Members and 1 Guest are viewing this topic.

jukingeo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 362
  • Last login:March 14, 2015, 08:25:28 pm
Raspberry Pi 2 with Mame - anyone tried it yet?
« on: February 26, 2015, 12:01:26 am »
Hello all,

Since they have released the new iteration of the Raspberry Pi, the Raspberry Pi 2, I am curious if anyone has tried this out with Mame.  I have dabbled with the original Raspberry Pi and it had a tendency to zap the SD card of it's info when running Mame.  So I wrote it off as a cool project, but not practical enough for a Mame cabinet build.  I am wondering if the new Raspi 2 is more stable and can handle Mame better.

Any info would be appreciated.

Thank You,

Geo
"Let me tell you about the time I used a sharpened clamshell to turn a T-Rex into a T-Rachel!" -Buck  Ice Age 3

lamprey

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 636
  • Last login:January 17, 2019, 07:03:11 pm
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #1 on: February 26, 2015, 12:13:33 am »
I have not. I wanted to piggy back on your question and ask if anyone knows about a free version of Windows 10 that is supposed to run on RPi2..? That suggests that we may not need a special build to run on the RPi anymore, but I don't know any of the details, just some rumors.

http://dev.windows.com/en-us/featured/raspberrypi2support

yotsuya

  • Trade Count: (+21)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18880
  • Last login:Today at 09:18:46 pm
  • 2014 UCA Winner, 2014, 2015, 2016 ZapCon Winner
    • forum.arcadecontrols.com/index.php/topic,137636.msg1420628.html
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #2 on: February 26, 2015, 12:21:48 am »
I signed up for W10 but haven't heard back yet.

I still need to do the MAME test with RP2.
***Build what you dig, bro. Build what you dig.***

empardopo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 521
  • Last login:Today at 05:36:32 pm
    • My personal forum
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #3 on: February 26, 2015, 01:55:36 am »
Hello all,

Since they have released the new iteration of the Raspberry Pi, the Raspberry Pi 2, I am curious if anyone has tried this out with Mame.  I have dabbled with the original Raspberry Pi and it had a tendency to zap the SD card of it's info when running Mame.  So I wrote it off as a cool project, but not practical enough for a Mame cabinet build.  I am wondering if the new Raspi 2 is more stable and can handle Mame better.

Any info would be appreciated.

Thank You,

Geo

In the Raspberry "1", what version of mame are you using?
Thanks

EMDB

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 863
  • Last login:February 26, 2019, 05:33:33 pm
  • Project RetroCade
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #4 on: February 26, 2015, 03:00:24 am »
I have not. I wanted to piggy back on your question and ask if anyone knows about a free version of Windows 10 that is supposed to run on RPi2..? That suggests that we may not need a special build to run on the RPi anymore, but I don't know any of the details, just some rumors.

http://dev.windows.com/en-us/featured/raspberrypi2support
The Win10 running on the Pi 2 will not be the sane intel/AMD version running on your Desktop PC but a special build so you need an even more special build of MAME to run on it  ;D
« Last Edit: February 26, 2015, 08:20:34 am by EMDB »

keilmillerjr

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1687
  • Last login:Today at 11:15:23 pm
  • Web Developer.
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #5 on: February 26, 2015, 07:43:41 am »
I have not. I wanted to piggy back on your question and ask if anyone knows about a free version of Windows 10 that is supposed to run on RPi2..? That suggests that we may not need a special build to run on the RPi anymore, but I don't know any of the details, just some rumors.

http://dev.windows.com/en-us/featured/raspberrypi2support

It doesn't suggest anything. Windows does not run on the same processor architecture, and will at least require recompiling for the ARMv7 processor. I doubt that the raspberry pi has enough processing power for an interpreter/emulator..Mac on Intel processors included a binady interpretor for PowerPC to Intel, but runs at 60-80% speed of a native Intel app. Ultimately, support was dropped. Still not happy about the archetecture change.

lamprey

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 636
  • Last login:January 17, 2019, 07:03:11 pm
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #6 on: February 26, 2015, 12:27:52 pm »
The Win10 running on the Pi 2 will not be the sane intel/AMD version running on your Desktop PC but a special build so you need an even more special build of MAME to run on it  ;D

It doesn't suggest anything. Windows does not run on the same processor architecture, and will at least require recompiling for the ARMv7 processor. I doubt that the raspberry pi has enough processing power for an interpreter/emulator..Mac on Intel processors included a binady interpretor for PowerPC to Intel, but runs at 60-80% speed of a native Intel app. Ultimately, support was dropped. Still not happy about the archetecture change.
You guys are, of course, correct. I had a bit of a brain fart last night. :)

nitrogen_widget

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1192
  • Last login:July 24, 2019, 10:45:21 pm
  • I want to build my own arcade controls!
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #7 on: February 26, 2015, 01:23:27 pm »
From what i've gleaned off the retropi forum advanced mame .106 is "faster".
But no real details or benchmarks.

I tried to compile advmame .106 on mine using an unofficial minimal debian testing build & it did not go well.
I kept getting compiler errors so i'm going to put raspbian on my pi2 and try again this weekend.


paigeoliver

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10993
  • Last login:April 28, 2019, 09:13:51 pm
  • Awesome face!
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #8 on: February 26, 2015, 03:42:26 pm »
It can't be that much faster. Mame isn't going to use the other cores, so what you are left with is a 20 percent increase in clock speed. It struggled terribly before and I don't think a 20 percent increase in clock speed will help very much.
Acceptance of Zen philosophy is marred slightly by the nagging thought that if all things are interconnected, then all things must be in some way involved with Pauly Shore.

Grasshopper

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2306
  • Last login:Yesterday at 06:10:07 am
  • life, don't talk to me about life
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #9 on: February 26, 2015, 04:55:43 pm »
It can't be that much faster. Mame isn't going to use the other cores, so what you are left with is a 20 percent increase in clock speed. It struggled terribly before and I don't think a 20 percent increase in clock speed will help very much.

Several benchmarks I've seen suggest that single core performance is about 2.5 times the speed of the previous version of the Pi.

That sounds about right to me as the ARMv7 processor is known to be about twice the speed of the previous generation of ARM processor (assuming an equivalent clock speed).
"Patriotism is the last refuge of the scoundrel." - Samuel Johnson

nitrogen_widget

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1192
  • Last login:July 24, 2019, 10:45:21 pm
  • I want to build my own arcade controls!
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #10 on: February 26, 2015, 05:06:00 pm »
It can't be that much faster. Mame isn't going to use the other cores, so what you are left with is a 20 percent increase in clock speed. It struggled terribly before and I don't think a 20 percent increase in clock speed will help very much.

According to this benchmark of just a single core:
http://www.tenpencepiece.net/blog/2015/02/08/benchmarking-the-original-raspberry-pi-model-b/

The rpi2 is 1.8 times faster than a rpi1.
what that turns into in terms of emulation on one core i don't know yet until I get it compiled and installed.
However, advmame on linux x86 uses a 2nd core for the rescale affects so there could be a performance boost there.


Saneless

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 88
  • Last login:September 19, 2015, 12:29:26 pm
  • I want to build my own arcade controls!
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #11 on: February 26, 2015, 07:41:29 pm »
I don't have any experience with the old Pi but things seemed pretty good for me.

I'm not sure which version of advmame RetroPie 2.6 uses but it's a bit screwy.  Can't get good sound in Donkey Kong.

It also seemed to struggle a little when I set everything to be vertical but it got better when I limited the resolution to 640x480.

Only real problem is how damn awful this 17" LCD looks compared to my 27" CRT. The Pi MAMEs don't seem to have any video options either.

nitrogen_widget

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1192
  • Last login:July 24, 2019, 10:45:21 pm
  • I want to build my own arcade controls!
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #12 on: February 27, 2015, 01:17:04 am »
Looks like they are using .9 something version of advmame.
I remember they used this on the rpi1 so you could play star wars.

Try turning on the scan lines in advmame.
Makes it look a little better.

Anyway, mortal kombat runs at about 60%. Haha.
That's like a 55% increase from the first RPI.

But games that gave me issues before like gyruss and ghouls and ghosts run great now on advmame.

Aceisback

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 53
  • Last login:October 05, 2018, 03:38:22 am
  • I want to build my own arcade controls!
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #13 on: February 27, 2015, 02:12:59 am »
Just replaced my Pi 1 B+ with the Pi 2 and had some better performance than the before, but that could be due to the Retropie image I used also. Regardless, I am quite pleased with the performance of my setup.

paigeoliver

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10993
  • Last login:April 28, 2019, 09:13:51 pm
  • Awesome face!
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #14 on: February 28, 2015, 10:40:43 am »
I stand corrected. I was not aware the new processor was also more efficient per clock.

It can't be that much faster. Mame isn't going to use the other cores, so what you are left with is a 20 percent increase in clock speed. It struggled terribly before and I don't think a 20 percent increase in clock speed will help very much.

Several benchmarks I've seen suggest that single core performance is about 2.5 times the speed of the previous version of the Pi.

That sounds about right to me as the ARMv7 processor is known to be about twice the speed of the previous generation of ARM processor (assuming an equivalent clock speed).
Acceptance of Zen philosophy is marred slightly by the nagging thought that if all things are interconnected, then all things must be in some way involved with Pauly Shore.

jukingeo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 362
  • Last login:March 14, 2015, 08:25:28 pm
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #15 on: February 28, 2015, 01:06:31 pm »
I have not. I wanted to piggy back on your question and ask if anyone knows about a free version of Windows 10 that is supposed to run on RPi2..? That suggests that we may not need a special build to run on the RPi anymore, but I don't know any of the details, just some rumors.

http://dev.windows.com/en-us/featured/raspberrypi2support

Is this something Microsoft is allowing?  That would be unusual if they are.

Looks like they are using .9 something version of advmame.
I remember they used this on the rpi1 so you could play star wars.

Try turning on the scan lines in advmame.
Makes it look a little better.

Anyway, mortal kombat runs at about 60%. Haha.
That's like a 55% increase from the first RPI.

But games that gave me issues before like gyruss and ghouls and ghosts run great now on advmame.

Yes, that is correct, I was using version .94 of AdvMame and that did work well with vector games.

Just replaced my Pi 1 B+ with the Pi 2 and had some better performance than the before, but that could be due to the Retropie image I used also. Regardless, I am quite pleased with the performance of my setup.

So I could still use AdvMame .94 with the new Raspi 2?   What is the OS currently being used for Pi 2?


As I mentioned in my OP, the problem I had with running Mame on the Raspi was that it wasn't stable.  Worse it had a tendency to wipe out the SD card and I had to start all over.  So the original Raspi I deemed not suitable for a Mame cabinet.   Those that have had success (at first) with a Raspi in a cabinet have since long replaced it with something more stable such as an Intel ITX board or even a modified original Xbox.   It would be nice to see the Raspi 2 work as it is such a nice small fanless size to work with.  it would fit in just about any cabinet as it is even smaller than those 60 in one Jamma boards.

Thanks for the input thusfar.

Geo
« Last Edit: February 28, 2015, 01:19:37 pm by jukingeo »
"Let me tell you about the time I used a sharpened clamshell to turn a T-Rex into a T-Rachel!" -Buck  Ice Age 3

yotsuya

  • Trade Count: (+21)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18880
  • Last login:Today at 09:18:46 pm
  • 2014 UCA Winner, 2014, 2015, 2016 ZapCon Winner
    • forum.arcadecontrols.com/index.php/topic,137636.msg1420628.html
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #16 on: February 28, 2015, 02:40:01 pm »
I have a feeling the Pi will probably work best as a replacement for a PCB that has died.
***Build what you dig, bro. Build what you dig.***

pbj

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 8658
  • Last login:Today at 09:31:01 pm
  • Obey.
    • The Chris Burke Band
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #17 on: February 28, 2015, 04:10:05 pm »
I have a feeling the Pi will probably work best as a replacement for a PCB that has died.

That's kinda funny because I've been reading these threads and having the exact same thought. 

Haven't read anything that makes these more compelling than an Xbox for arcade emulation.  I'm rocking a component -> HDMI adapter that works great so even the video output argument is good for me.

This forum needs more threads about Arcade 1Up cabinets.

yotsuya

  • Trade Count: (+21)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18880
  • Last login:Today at 09:18:46 pm
  • 2014 UCA Winner, 2014, 2015, 2016 ZapCon Winner
    • forum.arcadecontrols.com/index.php/topic,137636.msg1420628.html
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #18 on: February 28, 2015, 04:41:36 pm »
I have a feeling the Pi will probably work best as a replacement for a PCB that has died.

That's kinda funny because I've been reading these threads and having the exact same thought. 

Haven't read anything that makes these more compelling than an Xbox for arcade emulation.  I'm rocking a component -> HDMI adapter that works great so even the video output argument is good for me.
Right. If my original Centipede PCB died, having the Pi boot directly into one game is easy. But you start messing with messy FEes, Linux code, and so forth, and an ITX board or CoinOped Xbox is probably a more feasible choice.
***Build what you dig, bro. Build what you dig.***

nitrogen_widget

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1192
  • Last login:July 24, 2019, 10:45:21 pm
  • I want to build my own arcade controls!
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #19 on: February 28, 2015, 09:03:05 pm »
jukingeo- The new pi's official distro is running the same raspbian os with a different kernel and retropie os is based off that with the same version of advmame.
The card corruption was something that made me put my pi away for a while but they did something with the OS to fix it pretty good so I expect it to not be an issue on the RPI2.

I think as far as mame goes on the RPI2 most non 3d games should play just fine since its only single threaded however the dreamcast & PSP are multi-threaded emulators and are kinda working just a few weeks after it's release.






clok

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 336
  • Last login:April 03, 2018, 10:58:39 pm
  • I can play PacMan till the screen splits!
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #20 on: March 01, 2015, 12:35:40 am »
Check out youtube, several videos of it running quite a bit faster then  the old one. Didn't see much MAME but SNES, and PSX stuff it really looking good. Surprised its the same price as the old one.

DaOld Man

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4852
  • Last login:Yesterday at 06:05:17 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #21 on: March 01, 2015, 12:49:19 am »
Just put PiPlay on a micro sd card and tried it in my Pi2.
Mame works pretty good, however Galaga 88 seems to be a little laggy. Not sure whats going on, I am thinking about overclocking the cpu.
Played burger time, pipe dream, donkey kong, mappy, frogger, and 1942 and they seemed ok.
Played world class bowling and it seems a little laggy, but im not real sure. WCB is a pretty intense game, so I can see where it may need more processor muscle.
I was pleased to see that high scores are saved.
Also put a couple of super nes roms on it and they seem to run fine.
Im still learning but one thing I don't like is that when you quit a game it takes a few seconds to get back to the front end.

nitrogen_widget

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1192
  • Last login:July 24, 2019, 10:45:21 pm
  • I want to build my own arcade controls!
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #22 on: March 01, 2015, 09:44:20 am »
Try retropie.
It uses a slightly older version of advanced Mame.
Also I believe the delay is due to the sdcard speed.
Not sure yet, I have a class 10 sdcard on the way.

DaOld Man

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4852
  • Last login:Yesterday at 06:05:17 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #23 on: March 01, 2015, 10:20:59 am »
Try retropie.
It uses a slightly older version of advanced Mame.
Also I believe the delay is due to the sdcard speed.
Not sure yet, I have a class 10 sdcard on the way.

Ok, I will do.
I am using a Lexar 16 gig micro SDHC card. It says it is a class 10.

nitrogen_widget

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1192
  • Last login:July 24, 2019, 10:45:21 pm
  • I want to build my own arcade controls!
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #24 on: March 01, 2015, 10:47:06 am »
Try retropie.
It uses a slightly older version of advanced Mame.
Also I believe the delay is due to the sdcard speed.
Not sure yet, I have a class 10 sdcard on the way.

Ok, I will do.
I am using a Lexar 16 gig micro SDHC card. It says it is a class 10.

nice on the SD card.
class 10 makes a world of difference over standard cards.

Wired203

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 31
  • Last login:February 03, 2016, 09:22:59 am
  • I want to build my own arcade controls!
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #25 on: March 01, 2015, 11:10:43 am »
http://www.raspberrypi.org/magpi/issues/31/

Page 56 are reviews of the different game players for the Pi,  free download.

jukingeo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 362
  • Last login:March 14, 2015, 08:25:28 pm
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #26 on: March 02, 2015, 12:50:23 am »
Hello guys,

 Thank you all for responding, but since this became a hot topic I will mostly reply those those that are most relevant to my situation.


jukingeo- The new pi's official distro is running the same raspbian os with a different kernel and retropie os is based off that with the same version of advmame.
The card corruption was something that made me put my pi away for a while but they did something with the OS to fix it pretty good so I expect it to not be an issue on the RPI2.

I think as far as mame goes on the RPI2 most non 3d games should play just fine since its only single threaded however the dreamcast & PSP are multi-threaded emulators and are kinda working just a few weeks after it's release.

I have a feeling the Pi will probably work best as a replacement for a PCB that has died.

That's kinda funny because I've been reading these threads and having the exact same thought. 

Haven't read anything that makes these more compelling than an Xbox for arcade emulation.  I'm rocking a component -> HDMI adapter that works great so even the video output argument is good for me.
Right. If my original Centipede PCB died, having the Pi boot directly into one game is easy. But you start messing with messy FEes, Linux code, and so forth, and an ITX board or CoinOped Xbox is probably a more feasible choice.


Point made.  I already have an ITX board waiting and I have modified an Xbox as well and I agree those are better platforms than the Raspi.  But given that the Raspi was inexpensive and very small, I figured I would give it a shot.  I have not thought of trying the Raspi just with one game as I was mainly testing the Raspi for the feasibility of a cabinet install. It flunked. Which brings me to the next point...

jukingeo- The new pi's official distro is running the same raspbian os with a different kernel and retropie os is based off that with the same version of advmame.
The card corruption was something that made me put my pi away for a while but they did something with the OS to fix it pretty good so I expect it to not be an issue on the RPI2.

I think as far as mame goes on the RPI2 most non 3d games should play just fine since its only single threaded however the dreamcast & PSP are multi-threaded emulators and are kinda working just a few weeks after it's release.

So you had that issue to with the SD card just suddenly becoming corrupt too?  I even had my write safe on and it STILL corrupted the SD card.  And yeah, I put my Raspi away also because of that.  I figured it was nothing serious but just a programming 'toy'.   I didn't it would be practical for any kind of permanent install or 'replacement'.   So it was the operating system that caused that issue and now it is fixed?   Hmmm, then I might revisit the Raspi again.   But I am thinking about going with the Raspi 2 this time around.  More power, more ports, etc.

Basically I was not expecting much out of the Raspi or Raspi 2.  I am mainly interested in running the older games from around the mid 80's.  You know your typical fair, Donkey Kong, Burger Time, Asteroids, Pac Man, Space Invaders, Tempest...those games.   So I am hoping the Raspi 2 is a better candidate than it's earlier cousin.

Thanx,

Geo
"Let me tell you about the time I used a sharpened clamshell to turn a T-Rex into a T-Rachel!" -Buck  Ice Age 3

nitrogen_widget

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1192
  • Last login:July 24, 2019, 10:45:21 pm
  • I want to build my own arcade controls!
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #27 on: March 02, 2015, 09:45:12 am »
jukingeo - havn't seen a corrupted card in a while on my RPI1.
For games on the RPI1 you want final burn alpha & mame4all.
Mame4all is based off 37b roms & i found .72 version roms to work well with FBA. You should be good on performance with those two.
advanced mame on rpi1 is hit or miss performance wise.

I was running classic 4-away verticals on my rpi1 with mame4all just fine.
Actually i couldn't find a game I cared about on the .37b romset that didn't run full speed.
Advanced mame was hit and miss. Galaga 88 for example was slow with advancedmame.
gyruss also.
The biggest annoyance with vertical games is emulationstation doesn't rotate or supports vertical themes & rotating the pi itself can cause performance issues so you are pretty much stuck with advmenu and for some reason I can't change the aspect of the tile's in the menu so all my vert screenshots/movies are squished.
If I could find another simple front end for the RPI1 it would def. go in the dedicated vertical 4-way cab i'm building.

on the RPI2 I've mostly been testing the 8-way horizontal because I know those require more power with advmame and i've been happy so far with performance.
I havn't had time to run through all the games i'm interested in playing in cab yet but havn't seen too many issues so far and emulationstation2 is a nice looking front end.

It really comes down to what games you want to play and if they run fullspeed.

Saneless

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 88
  • Last login:September 19, 2015, 12:29:26 pm
  • I want to build my own arcade controls!
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #28 on: March 02, 2015, 10:44:04 pm »
Are there any real issues using MAME .37b other than its being very old? I have those roms but don't have the proper ones for the version of advmame they use.

jukingeo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 362
  • Last login:March 14, 2015, 08:25:28 pm
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #29 on: March 02, 2015, 11:15:50 pm »
jukingeo - havn't seen a corrupted card in a while on my RPI1.
For games on the RPI1 you want final burn alpha & mame4all.

Mame4all was one of the first programs I tried for the Raspi and I didn't care for it because vector games looked terrible and the front end was 'blah'.   Plus I had troubles with it too.

Quote
Mame4all is based off 37b roms & i found .72 version roms to work well with FBA. You should be good on performance with those two.
advanced mame on rpi1 is hit or miss performance wise.

Well, I had a rather lengthy post up on the Raspberry Pi site if you care to take a look at the trials and tribulations I have had with getting Mame to work with the Raspi:

http://www.raspberrypi.org/forums/viewtopic.php?f=78&t=44667

I did manage to get it to work, but every so often it would still blow the SD card.  Of course I do have backups but since I was testing the feasibility of using a Raspi for a cabinet build.  Let's just say it flunked the test.  I just simply can't have it blowing SD cards constantly.

Quote
I was running classic 4-away verticals on my rpi1 with mame4all just fine.
Actually i couldn't find a game I cared about on the .37b romset that didn't run full speed.
Advanced mame was hit and miss. Galaga 88 for example was slow with advancedmame.
gyruss also.

In that thread a fellow helped me out with a 'special build' of AdvMame that actually did work pretty fast and looked good with Vector games, but as I said the issue that I had was that it just seemed very unstable and the SD card would become corrupted and I had to start all over again.  It's all in that thread I posted.

Quote
The biggest annoyance with vertical games is emulationstation doesn't rotate or supports vertical themes & rotating the pi itself can cause performance issues so you are pretty much stuck with advmenu and for some reason I can't change the aspect of the tile's in the menu so all my vert screenshots/movies are squished.
If I could find another simple front end for the RPI1 it would def. go in the dedicated vertical 4-way cab i'm building.

I have not even gotten that far.  I was just doing regular tests on a horizontal screen.

Quote
on the RPI2 I've mostly been testing the 8-way horizontal because I know those require more power with advmame and i've been happy so far with performance.
I havn't had time to run through all the games i'm interested in playing in cab yet but havn't seen too many issues so far and emulationstation2 is a nice looking front end.

It really comes down to what games you want to play and if they run fullspeed.

As I mentioned in that post I linked to, I am pretty much running games prior to 1988 and even then I concentrate mostly on games before 1985.  I mostly play the classics such as your typical vertical games from the late 70's to early 80's.   Horizontal games, again mostly those from the early 80's.

Another thing I found out is that there was a Raspberry Pi B+ (Plus), which has the four USB ports.  I have seen these for less than $30.  Is that a significant improvement over the original Raspi B?

Basically I would like to revisit the Raspi as a base for an arcade cabinet, but only if I don't have that issue with the SD card corruption anymore.  I figured the B+ or Raspi 2 should work better.  But that is just a guess which is why I posted here in the first place.

Thanx,
Geo
"Let me tell you about the time I used a sharpened clamshell to turn a T-Rex into a T-Rachel!" -Buck  Ice Age 3

nitrogen_widget

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1192
  • Last login:July 24, 2019, 10:45:21 pm
  • I want to build my own arcade controls!
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #30 on: March 03, 2015, 06:36:51 am »
Idk, maybe the rpi doesnt like your card?
I've had the same install on my RPI for months booting it up and shutting it down and I know its lost power a few times also.

If you buy a pi, get the rpi2.
There really isn't a reason to go with the rpi1 unless you have a specific low power project you need it for.

But, there are also a few atom or and apu micro boards out there you could set up with a small ssd for Chromebooks  that might work better for you if you are looking for a small low power solution.

nitrogen_widget

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1192
  • Last login:July 24, 2019, 10:45:21 pm
  • I want to build my own arcade controls!
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #31 on: March 03, 2015, 04:37:40 pm »
Hey Jukingeo, A thought, I made my stripped down vertical image available for download.
It has no X-windows, boots into advmenu in the vertical orientation, and is setup to use mame4all which is setup to rotate also when it launches a vertical rom.
It has SSH for running remote commands & FTP so you can copy your roms and snaps over your network.
It has no gamepad drivers yet but I plan to use either the GPIO or a kade device for my controls but keyboard will work just to test.
If you want I can PM you the link to my drop-box for the image along with the root password (it only runs as root) and you could try that out.


DaOld Man

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4852
  • Last login:Yesterday at 06:05:17 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #32 on: March 03, 2015, 07:04:32 pm »
Try retropie.
It uses a slightly older version of advanced Mame.
Also I believe the delay is due to the sdcard speed.
Not sure yet, I have a class 10 sdcard on the way.

I downloaded retropie and put it on a 4 gig sdcard.
I like the old doom and quake games that are included (even though Doom1 moves way too fast, haven't yet figured out how to slow it down. Quake arena worksreal good.)
I have a question: How do I put my mame games on it? Tried ftp'ing through the Ethernet from my desktop pc, but thats not working.
I like that I can transfer them that way with piplay.

yotsuya

  • Trade Count: (+21)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18880
  • Last login:Today at 09:18:46 pm
  • 2014 UCA Winner, 2014, 2015, 2016 ZapCon Winner
    • forum.arcadecontrols.com/index.php/topic,137636.msg1420628.html
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #33 on: March 03, 2015, 07:07:33 pm »
Plug a flash drive into a USB port.
ES will make a folder on the drive for ALL the emulators.
Plug the drive into your PC.
Add roms into the correct folders on the flash drive.
Plug the drive back into the Pi.
ES will move the files over.

Done.
***Build what you dig, bro. Build what you dig.***

nitrogen_widget

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1192
  • Last login:July 24, 2019, 10:45:21 pm
  • I want to build my own arcade controls!
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #34 on: March 03, 2015, 07:33:04 pm »
Try retropie.
It uses a slightly older version of advanced Mame.
Also I believe the delay is due to the sdcard speed.
Not sure yet, I have a class 10 sdcard on the way.

I downloaded retropie and put it on a 4 gig sdcard.
I like the old doom and quake games that are included (even though Doom1 moves way too fast, haven't yet figured out how to slow it down. Quake arena worksreal good.)
I have a question: How do I put my mame games on it? Tried ftp'ing through the Ethernet from my desktop pc, but thats not working.
I like that I can transfer them that way with piplay.

what Yotsuya said or just browse the network from your PC.
It should show up.

I havn't tried FTP on retropie.

DaOld Man

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4852
  • Last login:Yesterday at 06:05:17 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #35 on: March 03, 2015, 08:31:29 pm »
Plug a flash drive into a USB port.
ES will make a folder on the drive for ALL the emulators.
Plug the drive into your PC.
Add roms into the correct folders on the flash drive.
Plug the drive back into the Pi.
ES will move the files over.

Done.

Thanks!

Nitro: I could not get to retropie through my network, but the usb stick worked pretty good. Now how do I transfer snaps?

jukingeo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 362
  • Last login:March 14, 2015, 08:25:28 pm
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #36 on: March 03, 2015, 10:26:53 pm »
Idk, maybe the rpi doesnt like your card?
I've had the same install on my RPI for months booting it up and shutting it down and I know its lost power a few times also.

Hmmm, tried three different cards, three different brands, all did the same thing.  In the end, I was thinking there might be something wrong with the Raspi itself and I delegated it to other 'lesser' projects.   But that hasn't happened and for the most part I just put the Raspi away.   I don't know if you read that LONG thread I posted on the Raspi forum about my issues.   But when you mentioned the corruption in regards to the OS that kind of raised an eyebrow.

Quote
If you buy a pi, get the rpi2.
There really isn't a reason to go with the rpi1 unless you have a specific low power project you need it for.

I thought there might be improvements with the B+ since it seems to follow the same form factor as the RPI2.   But I certainly could get the RPI2 instead, it is a bit more money, but still no biggie.

Quote
But, there are also a few atom or and apu micro boards out there you could set up with a small ssd for Chromebooks  that might work better for you if you are looking for a small low power solution.

I have this:

http://www.amazon.com/gp/product/B0041RSC94/ref=oh_aui_detailpage_o06_s01?ie=UTF8&psc=1

I bought it for $87 a few years ago.

I was going to set this up with either Linux or Windows XP OS using a CF card as a hard drive.   This way it is a fanless, noiseless system.   It was shortly after I bought this I learned about the Raspi and given that it was smaller, I wanted to give that a shot.   I was saving the Atom computer for a 'bigger' project, but I COULD use it now.

Being that it was mentioned that the Raspi works better with just Mame and no front end, I had thought of creating a bartop Space Invaders cabinet that would have the 'moon lit' back drop.  I have the half silvered mirror to do that 'trick'.   It would be a button only cabinet that you would just type in 'Mame (game here)' to run and it would pretty much stay on that game.   Mostly I would run Space Invaders and Space Invaders Deluxe (II).   I had a post here in regards to that build:

http://forum.arcadecontrols.com/index.php/topic,98542.msg1040700.html#msg1040700

Hey Jukingeo, A thought, I made my stripped down vertical image available for download.
It has no X-windows, boots into advmenu in the vertical orientation, and is setup to use mame4all which is setup to rotate also when it launches a vertical rom.
It has SSH for running remote commands & FTP so you can copy your roms and snaps over your network.
It has no gamepad drivers yet but I plan to use either the GPIO or a kade device for my controls but keyboard will work just to test.
If you want I can PM you the link to my drop-box for the image along with the root password (it only runs as root) and you could try that out.

That sounds good.  Yeah, I will give that a shot.

Thank you,

Geo
« Last Edit: March 03, 2015, 10:32:56 pm by jukingeo »
"Let me tell you about the time I used a sharpened clamshell to turn a T-Rex into a T-Rachel!" -Buck  Ice Age 3

nitrogen_widget

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1192
  • Last login:July 24, 2019, 10:45:21 pm
  • I want to build my own arcade controls!
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #37 on: March 03, 2015, 11:03:44 pm »


Nitro: I could not get to retropie through my network, but the usb stick worked pretty good. Now how do I transfer snaps?

Try finding the RPI's ip address by exiting Emulationstation & dropping to the command prompt then typing "hostname -I" without quotes.
take that ip address and use it to connect directly in windows explorer by typing "//192.168.0.10" or whatever your RPI ip address is.
That should bring up a folder you can drill down to.

alternatively you could just run emulationstations scraper & goto bed. it'll download the snaps & metadata for your roms but will take a while.

EightBySix

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 523
  • Last login:October 10, 2018, 09:34:37 am
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #38 on: March 06, 2015, 11:21:06 am »
Quote
The biggest annoyance with vertical games is emulationstation doesn't rotate or supports vertical themes & rotating the pi itself can cause performance issues so you are pretty much stuck with advmenu and for some reason I can't change the aspect of the tile's in the menu so all my vert screenshots/movies are squished.
If I could find another simple front end for the RPI1 it would def. go in the dedicated vertical 4-way cab i'm building.

I found that rotating the pi itself (via the config.txt) works nicely with EmulationStation2. The default theme isn't ideal in that orientation, but I'm hoping to roll my own anyway.  Maybe the RPi2 gives it the extra grunt it needed. It's great not to have to get a stiff neck whenever you drop into the OS and have to read sideways.

I've found that the Rpi2 performance just tips it onto the right side of borderline, for the games I want to play.

nitrogen_widget

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1192
  • Last login:July 24, 2019, 10:45:21 pm
  • I want to build my own arcade controls!
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #39 on: March 06, 2015, 02:56:52 pm »
Quote
The biggest annoyance with vertical games is emulationstation doesn't rotate or supports vertical themes & rotating the pi itself can cause performance issues so you are pretty much stuck with advmenu and for some reason I can't change the aspect of the tile's in the menu so all my vert screenshots/movies are squished.
If I could find another simple front end for the RPI1 it would def. go in the dedicated vertical 4-way cab i'm building.

I found that rotating the pi itself (via the config.txt) works nicely with EmulationStation2. The default theme isn't ideal in that orientation, but I'm hoping to roll my own anyway.  Maybe the RPi2 gives it the extra grunt it needed. It's great not to have to get a stiff neck whenever you drop into the OS and have to read sideways.

I've found that the Rpi2 performance just tips it onto the right side of borderline, for the games I want to play.

emulationstation 1 would goto a blank screen when rotated because of sdl1 & a bug.
I tried the rotation on the rpi1 with em2 but when I tried to adjust the theme I broke something & couldn't get it to work again so I just switched to advmenu. :)

If you come up with a vertical friendly theme please share it.
I'm looking at pyrharckade right now which does have a vertical mode https://github.com/tuxme/PYRHARCKADE/.
I also got Wah!cade/Mah!cade (I foget which one is the latest) running on my rpi2 last night but havn't played with it yet.


Saneless

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 88
  • Last login:September 19, 2015, 12:29:26 pm
  • I want to build my own arcade controls!
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #40 on: March 06, 2015, 07:34:32 pm »
For me, rotating the Pi itself caused my performance to tank. However, I noticed that it set the resolution really high when loading MAME. Once I locked it to 640x480 it really helped.

Still doesn't seem quite as smooth though. EmulationStation definitely has has visible tearing

nitrogen_widget

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1192
  • Last login:July 24, 2019, 10:45:21 pm
  • I want to build my own arcade controls!
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #41 on: March 07, 2015, 08:49:56 am »
For me, rotating the Pi itself caused my performance to tank. However, I noticed that it set the resolution really high when loading MAME. Once I locked it to 640x480 it really helped.

Still doesn't seem quite as smooth though. EmulationStation definitely has has visible tearing

I found the same with my rpi1
I also found if I split the video memory instead of just giving the video 64mb that things worked smoother vertically.
My rpi1 only had 256mb.

Having mame & advmenu rotate on their own made a big difference.

With the rpi2 I can give my video a lot more ram so i'll give the vertical a try again.

Saneless

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 88
  • Last login:September 19, 2015, 12:29:26 pm
  • I want to build my own arcade controls!
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #42 on: March 07, 2015, 08:27:23 pm »
I did that as well, bumped it to 128.

Not really liking retropie so far. I'm sure it's good overall if you want to use other emulators but for MAME only there has to be better.

nitrogen_widget

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1192
  • Last login:July 24, 2019, 10:45:21 pm
  • I want to build my own arcade controls!
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #43 on: March 07, 2015, 11:53:35 pm »
Pyros supports vertical setups.
But its website is in Spanish I think.
I've been asking themdev for help over on the piplay forum.

Also, I just compiled advance menu plus on my rpi2.
It supports simple layouts and can be rotated along with advmame at startup which means you can boot horizontal.

edit: I think retropi is a great distro for the pi.
They utilize SDL compiled with dispmanx for scaling the emulators.
This means the gpu does some of the work.

I'm looking into changing the frontend to advmenu plus for my classic project & I believe the setup script will let you remove emulators so you can make a smaller image.
Their version of advancemame seems to work really well on the RPI2 also.

I can't get piplay beta 8 to work on my RPI2 so i can't test it yet.
« Last Edit: March 08, 2015, 08:59:22 am by nitrogen_widget »

berzerking

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 3
  • Last login:April 07, 2015, 07:07:14 am
  • I want to build my own arcade controls!
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #44 on: March 26, 2015, 11:55:05 am »
Hi i just google my project and it seam that you re talking of it :) The web site si en french :) But the Wiki is in english (english from a french)

Theire is a new version of Pyrharckade : http://pyrharckade.io/pyrharckade_2_1b.tar.bz2

Pyros will come next ...

See ya all

nitrogen_widget

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1192
  • Last login:July 24, 2019, 10:45:21 pm
  • I want to build my own arcade controls!
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #45 on: March 26, 2015, 11:17:18 pm »
Hi i just google my project and it seam that you re talking of it :) The web site si en french :) But the Wiki is in english (english from a french)

Theire is a new version of Pyrharckade : http://pyrharckade.io/pyrharckade_2_1b.tar.bz2

Pyros will come next ...

See ya all

'Sup.
Good to see you here.
Sorry about the language thing.


berzerking

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 3
  • Last login:April 07, 2015, 07:07:14 am
  • I want to build my own arcade controls!
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #46 on: March 28, 2015, 05:55:19 am »
no prob ;)

berzerking

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 3
  • Last login:April 07, 2015, 07:07:14 am
  • I want to build my own arcade controls!
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #47 on: April 07, 2015, 07:07:40 am »
New version de pyrharckade :
Modifications / News :

+ download manager directly from the game selection : push "z" key or button 3 of joystick.

+ download manager for all media use rom by rom and not rom by media

+ add vertical mode (./start.py X/Y par default X)

http://pyrharckade.io/pyrharckade_2_5b.tar.bz2

phulshof

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 53
  • Last login:Today at 06:38:35 pm
    • Pieter's Webpage
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #48 on: April 07, 2015, 08:23:15 am »
RetroFE has just added Pi 2 support as well: http://www.retrofe.com/forum/index.php?topic=170.0

the720k

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 89
  • Last login:July 04, 2019, 02:31:47 am
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #49 on: April 20, 2015, 01:11:11 am »
If anyone is interested, you may want to go to That Other Site that has all the roms.  I have a project I uploaded there.  It's very simple - just boots directly into mame4all in a read-only environment with a read-write partition for save games, controls, etc.  This makes it very useable for a replacement of a failed PCB in arcade games or a replacement for those xxx-in-1 boards.  You can kill power to your cab and not have to worry about SD card corruption.  Also eliminates the need to do any sort of complicated safe shutdown methods on the Pi.  Either boot into the default mame4all menu or enable rw mode and edit rc.local to boot straight into the game of your choice.  I've gotten some decent feedback on that project and a lot of people seem to be happy with it overall.  I use it for a portable arcade stick I modified, as well as for my living room TV and a drop-in replacement for my Xevious cab.  The current downloadable version is about 5.something GB and is ready-to-run as soon as you write it to an SD card.  Now that I've released version 2.0, all future revisions will have the .37 roms not included so I'll be able to post it here and elsewhere.

Also, I don't know if anyone here has run into this issue, but with mame4all on the Pi, many games in wonky resolutions look awful because of the pixels being taller and mame4all not knowing how to handle tall pixels.  This causes the games to look squished and you have large black borders on the top and bottom when playing on a 4:3 display.  MAME .37 didn't account for those taller pixels, so some hacking was in order to work around the issue.  Squished CPS roms irritated me to no end, so I played a bit with the mame4all source and added a way to stretch the display when in anti-aliased mode for those of us using 4:3 monitors.  Stretching in this case actually makes sense, as you're only really stretching vertically, thus really only making the pixels taller during emulation.  Very little to no distortion of the original bitmap in any game I've done this with.  Street Fighter 2 has never looked or played so well on a Pi until this hack.  You guys are welcome to download it and overwrite your existing mame4all with mine.  I included the old mame4all binary in the archive in case you want to revert to the original.  My hack is totally optional, meaning you just toggle it on and off in mame.cfg, so you may want to give this a look.  I've contacted Squid and he expressed interest into pulling it into master, so you may see this happen on future official mame4all-pi releases when/if he incorporates it.  Just remember that fullscreen stretching only works in anti-aliasing mode.  So if you turn that off, you get the same old weird native res on all games. 

In the meantime, here's my mame4all hack

Enjoy!   :cheers:
« Last Edit: April 20, 2015, 01:19:50 am by the720k »
My Machines:  Sega Top Skater | Vertical 25" JAMMA cabinet (Raiden Fighters II / 60-in-1 currently) |  Xevious (Restored)  |  3-Player MAME in a previously MA(i)MEd Beast Busters cab (In progress)  |  19" upright 2-player MAME cab w/light gun  |  Pac-Man Cocktail running MAME (built from scratch - no original harmed in the making) : http://forum.arcadecontrols.com/index.php?topic=64599.0

nitrogen_widget

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1192
  • Last login:July 24, 2019, 10:45:21 pm
  • I want to build my own arcade controls!
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #50 on: April 20, 2015, 01:10:25 pm »
i just put together a new setup with mame4all on my rpi 1 using DietPi OS.
found the same thing with mame4all but i'm using a 4:3 19" and plan to have tinted plexi over it so people wouldn't be able to tell if there was a border.
i'm also rotating mame4all for vertical only games.

I'll take a look at your build.

Edit: seems to work well. breaks the scanlines though. :)
« Last Edit: April 20, 2015, 08:42:03 pm by nitrogen_widget »

StefanBurger

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 38
  • Last login:February 13, 2018, 04:07:59 am
  • I want to build my own arcade controls!
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #51 on: April 21, 2015, 03:07:52 pm »
Hello everyone!

Yes I tried. I started with model 1 and switch to model 2 some weeks ago.

I use a copy of mame4all-pi and as I have some skills in C++, I did the following modifications:

1) modified the mame4all-pi text-output routines, so that the text of the menu is always oriented according to the mame-core orientation (mame.cfg: parameters ror, rol, flipx, flipy). Therefore its now possible to install the game monitor partrait instead of landscape while the menu is still readable.

2) modified the mame4all-pi txt-output routines once more, so that the font can be replaced with a custom font by providing a configuration file. Created a set of 16 different fonts. But its basically unlimitted.

3) incorporated an usb-driver (based upon hidlib and a code sample that I found on the internet) to support ultimarcs pacdrive. I have only led-lighted controls on my controler board. I implemented the pacdrive usb-driver into the mame4all-pi menu routines so, that when a game becomes selected, the routine reads the supported controls out of the mame game driver and only those controls become ilumanated, that are supported by the selected game.

4) incorporated an servo driver (attached to gpio). So when a game becomes selected, the routine reads the mame game driver to check if either a 4-way or a 8-way joystick is supported. Depending on that, the driver turns the servo motor and an attached restrictor plate by 45 to restrict either for 4- or 8-ways. I 3d-printed a mount for the servo and the restrictor plate to mount both on the bottom of the joystick

5) Very exiting!: I ordered a so called "Gert VGA666" adapter (cheap, approx 10 ). This adapter allows to connect an hdmi monitor and an vga monitor at the same time to the raspi and by using some low leval API of the graphic hardware it becomes possible to have independent monitor outputs at the same time. I wrote small library and implemented it to the mame4all-pi menu routines, so that once a game within the menu becomes selected, on the secondary vga display a dynamic marquee will be displayed (while on the primary monitor still menu or game is running). This modification needs some refinement, as my function that display the marquee file does not yet copensate different resolutions of the marquee graphics (PNG format).

And yes, all that works for me on just one single raspi2!!

I'm also currently working on a machine that allows to cut an LCD-panel to a custom format, especially for marquees. Also work in progress, but some files are available on thingiverse http://www.thingiverse.com/thing:625790

Regards
Stefan
« Last Edit: April 21, 2015, 03:17:47 pm by StefanBurger »

BorgDog

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 436
  • Last login:Today at 07:22:27 pm
  • Not a hipster for over 50 years!
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #52 on: April 21, 2015, 04:06:47 pm »
Hello everyone!

Yes I tried. I started with model 1 and switch to model 2 some weeks ago.

I use a copy of mame4all-pi and as I have some skills in C++, I did the following modifications:

1) modified the mame4all-pi text-output routines, so that the text of the menu is always oriented according to the mame-core orientation (mame.cfg: parameters ror, rol, flipx, flipy). Therefore its now possible to install the game monitor partrait instead of landscape while the menu is still readable.

2) modified the mame4all-pi txt-output routines once more, so that the font can be replaced with a custom font by providing a configuration file. Created a set of 16 different fonts. But its basically unlimitted.

3) incorporated an usb-driver (based upon hidlib and a code sample that I found on the internet) to support ultimarcs pacdrive. I have only led-lighted controls on my controler board. I implemented the pacdrive usb-driver into the mame4all-pi menu routines so, that when a game becomes selected, the routine reads the supported controls out of the mame game driver and only those controls become ilumanated, that are supported by the selected game.

4) incorporated an servo driver (attached to gpio). So when a game becomes selected, the routine reads the mame game driver to check if either a 4-way or a 8-way joystick is supported. Depending on that, the driver turns the servo motor and an attached restrictor plate by 45 to restrict either for 4- or 8-ways. I 3d-printed a mount for the servo and the restrictor plate to mount both on the bottom of the joystick

5) Very exiting!: I ordered a so called "Gert VGA666" adapter (cheap, approx 10 ). This adapter allows to connect an hdmi monitor and an vga monitor at the same time to the raspi and by using some low leval API of the graphic hardware it becomes possible to have independent monitor outputs at the same time. I wrote small library and implemented it to the mame4all-pi menu routines, so that once a game within the menu becomes selected, on the secondary vga display a dynamic marquee will be displayed (while on the primary monitor still menu or game is running). This modification needs some refinement, as my function that display the marquee file does not yet copensate different resolutions of the marquee graphics (PNG format).

And yes, all that works for me on just one single raspi2!!

I'm also currently working on a machine that allows to cut an LCD-panel to a custom format, especially for marquees. Also work in progress, but some files are available on thingiverse http://www.thingiverse.com/thing:625790

Regards
Stefan

Dude, that's awesome!  I've been thinking of using a pi2 for my next project but had no idea how to do #4 on your list.  Would you mind sharing more details, or even your build!

That's LCD cutter looks like a cool concept, would love to see how that turns out.
My Projects:
MisSpent Youth a Vigolix bartop,  Little Bastard a rotating tablet/display bartop,
Pin-Dog a mini pin-cab on vpforums.org  Star Wars a wedgehead pincab on vpinball.com

StefanBurger

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 38
  • Last login:February 13, 2018, 04:07:59 am
  • I want to build my own arcade controls!
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #53 on: April 21, 2015, 04:16:19 pm »
Yes, I'm basically fine with sharing my stuff.

Just from a practical view it might become difficult as there are some dependencies.
Maybe I backup the whole image, but no idea how to exchange a file that big.

By the way: the gpio base address on raspi 1 is different to that for raspi 2. So the current implamentation for the servo would not work an an model 1 without adaption.
The pwm (pulse width modulation) is done in software istead of hardware. Therefore the gpio pin can be modified just by an configuration file entry.

the720k

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 89
  • Last login:July 04, 2019, 02:31:47 am
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #54 on: April 22, 2015, 12:51:04 am »
i just put together a new setup with mame4all on my rpi 1 using DietPi OS.
found the same thing with mame4all but i'm using a 4:3 19" and plan to have tinted plexi over it so people wouldn't be able to tell if there was a border.
i'm also rotating mame4all for vertical only games.

I'll take a look at your build.

Edit: seems to work well. breaks the scanlines though. :)

Thanks for checking it out.  Yeah, I forgot to mention the scanline thing.  They don't turn out too pretty when stretching.  This is due to when the stretching happens in the code (after the scanline shader is applied.)  I might have another look at it at some point and try to figure out a better way to do this.  Fix one thing, break two others, right?  ;)  But for my purposes it works fine, as I don't use the scanline shader in mame4all-pi, and I do like the antialiasing when using LCD monitors. 

Stefan: Sounds great.  Looking forward to seeing your work at some point!  You may want to jump onto the *ahem* other site and post your image as a torrent.  The community there would be thrilled to check it out, present company included.  Particularly in terms of retaining the menu while using -rol or -ror.  That's awesome!!  Do you have any screenshots?
« Last Edit: April 22, 2015, 12:53:56 am by the720k »
My Machines:  Sega Top Skater | Vertical 25" JAMMA cabinet (Raiden Fighters II / 60-in-1 currently) |  Xevious (Restored)  |  3-Player MAME in a previously MA(i)MEd Beast Busters cab (In progress)  |  19" upright 2-player MAME cab w/light gun  |  Pac-Man Cocktail running MAME (built from scratch - no original harmed in the making) : http://forum.arcadecontrols.com/index.php?topic=64599.0

StefanBurger

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 38
  • Last login:February 13, 2018, 04:07:59 am
  • I want to build my own arcade controls!
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #55 on: April 22, 2015, 02:05:35 am »
Other side?

Other side of the moon?

Other side of the force?

the720k

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 89
  • Last login:July 04, 2019, 02:31:47 am
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #56 on: April 22, 2015, 09:07:18 am »
Other site.  As in that other site where everyone gets their roms for nearly every version of MAME out there. 
My Machines:  Sega Top Skater | Vertical 25" JAMMA cabinet (Raiden Fighters II / 60-in-1 currently) |  Xevious (Restored)  |  3-Player MAME in a previously MA(i)MEd Beast Busters cab (In progress)  |  19" upright 2-player MAME cab w/light gun  |  Pac-Man Cocktail running MAME (built from scratch - no original harmed in the making) : http://forum.arcadecontrols.com/index.php?topic=64599.0

sharpfork

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 611
  • Last login:July 31, 2019, 12:05:12 am
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #57 on: April 22, 2015, 09:18:38 am »
This is pure awesomenss.  I just pulled my b+ out of my arcade project and swapped it out for a 2.  Looks like I have so pi tinkering to do in the near future!  Thank you for the contrabution the720k.
« Last Edit: April 22, 2015, 04:40:02 pm by sharpfork »

StefanBurger

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 38
  • Last login:February 13, 2018, 04:07:59 am
  • I want to build my own arcade controls!
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #58 on: April 22, 2015, 02:48:57 pm »
Other site.  As in that other site where everyone gets their roms for nearly every version of MAME out there.

Hmmmm, the problem is, that there are several sites with rom.
That makes a hard guess.

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Online Online
  • Posts: 7328
  • Last login:Today at 11:53:15 pm
  • Designated spam hunter
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #59 on: April 22, 2015, 03:55:06 pm »
Other site.  As in that other site where everyone gets their roms for nearly every version of MAME out there.
Hmmmm, the problem is, that there are several sites with rom.
That makes a hard guess.
He's just following Rule 5.


Scott

nitrogen_widget

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1192
  • Last login:July 24, 2019, 10:45:21 pm
  • I want to build my own arcade controls!
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #60 on: April 22, 2015, 06:23:09 pm »
This is pure awesomenss.  I just pulled my b+ out of my arcade project and swapped it out for a 2.  Looks like I have so pi tinkering to do in the near future!  Thank you for the contrabution the720k.

I've compiled & installed Attract mode on both RPIb /256mb model and an RPI2.
The rpi1 runs surprisingly well using one of the minimal distro's.

Most of the included layouts with wheel art work just fine.
main issue is you need to give the GPU ~100MB to handle attract mode & mame4all.
otherwise some ROMS just won't load.

But since my rpi1 is going to be a dedicated vertical it's all good.

sharpfork

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 611
  • Last login:July 31, 2019, 12:05:12 am
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #61 on: April 22, 2015, 06:25:21 pm »
Crafty mech needs to make a hdmi to cga converter now!

Mocean

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 7
  • Last login:June 01, 2017, 01:18:53 pm
  • My pins are lonely...
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #62 on: April 28, 2015, 03:42:35 pm »
Any progress on releasing a version of the SD image without the roms?  I'm eager to give this a try!

Thanks!

If anyone is interested, you may want to go to That Other Site that has all the roms.  I have a project I uploaded there.  It's very simple - just boots directly into mame4all in a read-only environment with a read-write partition for save games, controls, etc.  This makes it very useable for a replacement of a failed PCB in arcade games or a replacement for those xxx-in-1 boards.  You can kill power to your cab and not have to worry about SD card corruption.  Also eliminates the need to do any sort of complicated safe shutdown methods on the Pi.  Either boot into the default mame4all menu or enable rw mode and edit rc.local to boot straight into the game of your choice.  I've gotten some decent feedback on that project and a lot of people seem to be happy with it overall.  I use it for a portable arcade stick I modified, as well as for my living room TV and a drop-in replacement for my Xevious cab.  The current downloadable version is about 5.something GB and is ready-to-run as soon as you write it to an SD card.  Now that I've released version 2.0, all future revisions will have the .37 roms not included so I'll be able to post it here and elsewhere.

Also, I don't know if anyone here has run into this issue, but with mame4all on the Pi, many games in wonky resolutions look awful because of the pixels being taller and mame4all not knowing how to handle tall pixels.  This causes the games to look squished and you have large black borders on the top and bottom when playing on a 4:3 display.  MAME .37 didn't account for those taller pixels, so some hacking was in order to work around the issue.  Squished CPS roms irritated me to no end, so I played a bit with the mame4all source and added a way to stretch the display when in anti-aliased mode for those of us using 4:3 monitors.  Stretching in this case actually makes sense, as you're only really stretching vertically, thus really only making the pixels taller during emulation.  Very little to no distortion of the original bitmap in any game I've done this with.  Street Fighter 2 has never looked or played so well on a Pi until this hack.  You guys are welcome to download it and overwrite your existing mame4all with mine.  I included the old mame4all binary in the archive in case you want to revert to the original.  My hack is totally optional, meaning you just toggle it on and off in mame.cfg, so you may want to give this a look.  I've contacted Squid and he expressed interest into pulling it into master, so you may see this happen on future official mame4all-pi releases when/if he incorporates it.  Just remember that fullscreen stretching only works in anti-aliasing mode.  So if you turn that off, you get the same old weird native res on all games. 

In the meantime, here's my mame4all hack

Enjoy!   :cheers:

yotsuya

  • Trade Count: (+21)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18880
  • Last login:Today at 09:18:46 pm
  • 2014 UCA Winner, 2014, 2015, 2016 ZapCon Winner
    • forum.arcadecontrols.com/index.php/topic,137636.msg1420628.html
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #63 on: April 28, 2015, 04:06:39 pm »
I just want to chime in that the720k's project KICKS ASS! I'm a believer.
***Build what you dig, bro. Build what you dig.***

BorgDog

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 436
  • Last login:Today at 07:22:27 pm
  • Not a hipster for over 50 years!
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #64 on: April 28, 2015, 04:21:00 pm »
Yes, I'm basically fine with sharing my stuff.

Just from a practical view it might become difficult as there are some dependencies.
Maybe I backup the whole image, but no idea how to exchange a file that big.

By the way: the gpio base address on raspi 1 is different to that for raspi 2. So the current implamentation for the servo would not work an an model 1 without adaption.
The pwm (pulse width modulation) is done in software istead of hardware. Therefore the gpio pin can be modified just by an configuration file entry.

@StefanBurger Not sure how big the file would be, but there is a 2GB limit for attachments here (zip is OK) and you could remove the roms to save space.  I would really like to try your servo control setup, and alas I have not the programming skills to figure out myself.

Thanks.
My Projects:
MisSpent Youth a Vigolix bartop,  Little Bastard a rotating tablet/display bartop,
Pin-Dog a mini pin-cab on vpforums.org  Star Wars a wedgehead pincab on vpinball.com

Mocean

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 7
  • Last login:June 01, 2017, 01:18:53 pm
  • My pins are lonely...
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #65 on: April 28, 2015, 04:58:49 pm »
:(

I just want to chime in that the720k's project KICKS ASS! I'm a believer.

LEDAero

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 2
  • Last login:June 26, 2015, 03:32:46 am
  • I want to build my own arcade controls!
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #66 on: June 26, 2015, 03:32:12 am »

Well, I had a rather lengthy post up on the Raspberry Pi site if you care to take a look at the trials and tribulations I have had with getting Mame to work with the Raspi:

http://www.raspberrypi.org/forums/viewtopic.php?f=78&t=44667

I did manage to get it to work, but every so often it would still blow the SD card.  Of course I do have backups but since I was testing the feasibility of using a Raspi for a cabinet build.  Let's just say it flunked the test.  I just simply can't have it blowing SD cards constantly.

90% of corrupted SD cards were due to either not enough juice (cheap wall-wart) or overclocking.

The other 10% was cheap SD cards.

Which was it in your case?

I've been using R'Pi's since about a couple of months after they came out - some have stayed powered on for months at a time and never a single corrupted SD card.

I use 2A power supplies and always buy quality cards.

Badly-configured Linux implementations, where the log file is constantly being written to the SD is another problem- eventually the card fills up.

As hardware, the Pi is extremely reliable. I have 5 of them, doing duty as such things as streaming hifi receivers, wifi repeaters, Airplay powered speakers, second TV streamer.

The hifi and wifi units have been on as long as the power has held up  in the house - and we haven't had a power cut for  a while.

But then I don't have a need to overclock - which some seem to do as a matter of course.

nitrogen_widget

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1192
  • Last login:July 24, 2019, 10:45:21 pm
  • I want to build my own arcade controls!
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #67 on: June 26, 2015, 09:18:58 pm »
also,
Shutting down the rpi instead of just unplugging it keeps the os good.
I have my gpio's hooked up to just run a halt script.
No matter what I do to lock up my RPI hitting my shut off button eventually shuts it down & lets me start back up no problem.

sealcouch

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 133
  • Last login:Today at 07:18:12 pm
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #68 on: July 07, 2015, 11:18:08 pm »
To anyone using The720k's build, how can I change the blinky loading screen? I've been trying for 2 hours and I feel like I'm probably missing something obvious. I've replaced the file in the main folder, is there another copy of it somewhere? I am trying to make it a little more theme appropriate for my cab.

the720k

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 89
  • Last login:July 04, 2019, 02:31:47 am
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #69 on: July 19, 2015, 01:54:21 am »
To anyone using The720k's build, how can I change the blinky loading screen? I've been trying for 2 hours and I feel like I'm probably missing something obvious. I've replaced the file in the main folder, is there another copy of it somewhere? I am trying to make it a little more theme appropriate for my cab.

Hey there, sorry for the delay - I don't log in as often as I probably should.  Yes, you can change the blinky png file pretty easily.  Do a

Code: [Select]
sudo rwenable
and then replace /etc_org/splashscreen.png with the png of your choice.  The png files in the /home/pi folder are just there for doing a quick replacement of the /etc_org/splashscreen.png file.  I thought I put this in my instructions somewhere, but I've had a few people ask this, so I probably just forgot to mention it.  I've been meaning to revise the instructions at some point anyway, 

Hope you enjoy the project!  v3.0 will be out at some point in the not-so-distant future, and it'll include my modified mame4all binary baked-in so that people can play CPS roms and other oddball roms with weird native resolutions without the "squish" factor on 4:3 monitors.  I'm also planning on adding a way to rotate the mame4all menu for vertical displays.  Stay tuned to the official thread on the other site for updates. 

And someone here also asked if I've made any progress in making an image that doesn't include all the roms.  Thanks for reminding me!  Yes, v3.0 will have two releases - the "lite" version with no roms - just the structure I built for the distro, and the "renegade" version that will only be posted at the other site.  I'll post a link in this thread to the "lite" edition when I have it ready, and I'll try to make one for 2.0 as well. 
My Machines:  Sega Top Skater | Vertical 25" JAMMA cabinet (Raiden Fighters II / 60-in-1 currently) |  Xevious (Restored)  |  3-Player MAME in a previously MA(i)MEd Beast Busters cab (In progress)  |  19" upright 2-player MAME cab w/light gun  |  Pac-Man Cocktail running MAME (built from scratch - no original harmed in the making) : http://forum.arcadecontrols.com/index.php?topic=64599.0

elvis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1154
  • Last login:August 05, 2019, 08:41:19 pm
  • penguin poker
    • StickFreaks
Re: Raspberry Pi 2 with Mame - anyone tried it yet?
« Reply #70 on: July 25, 2015, 05:04:24 pm »
Nitro: I could not get to retropie through my network, but the usb stick worked pretty good. Now how do I transfer snaps?
If you're running Linux (Raspbian, PiPlay, etc) then just use SCP or SFTP.   The Pi comes with SSH enabled by default (enabling remote command-line logon), which also allows file transfer over the same protocol.  If you're a Windows user, WinSCP or Filezilla will allow these protocols.  For Mac users, grab CyberDuck.

Crafty mech needs to make a hdmi to cga converter now!
I backed the "Gert VGA666" kickstarter that offered a VGA port for the RPi B+ and 2.  Thread here:
http://forum.arcadecontrols.com/index.php/topic,141660.0.html

I haven't even taken mine out of the packet yet due to working commitments, but one of the first things I'm going to try is pumping 15KHz modes out of the Pi to a CGA monitor.
« Last Edit: July 25, 2015, 05:08:18 pm by elvis »