Page 7 of 18

Re: MAME4ALL for Pi

Posted: Thu May 23, 2013 3:17 pm
by jukingeo
pudding wrote:I've ported MAME4ALL to the Pi.

It uses MAME v0.37b5 ROMS. Optimised for the Raspberry Pi with dispmanx graphics, SDL input and ALSA sound. Works in X-Windows or Console. Runs with a frontend gui or traditional MAME command line mode....
Could you use 0.58b roms?

Thanx,
Geo

Re: MAME4ALL running game list

Posted: Thu May 23, 2013 3:42 pm
by jukingeo
Hello,

I am new to the Raspi and working with Mame on the Pi. I want to get Mame4All running using PiMame. I know that defaults to AdvMame, but I would like to make Mame4All the default.

Now while running Mame4All, I was hoping to find some kind of 'running game list'. In other words, I am curious to know if someone has already tested what games work on the raspi and what doesn't and perhaps post that listing here in the games forum. Now I wouldn't be looking for a complete "all inclusive" list. As it is I would be looking for something based on the popular games and not the obscure. Also, I am certain that there is some kind of 'wall' on the newer games, that once you reach a certain year of release, you know it will not work. From that point on back, I would like to know what would work.

What should be included on the list whether or not a particular controller would work. As it stands, I am not sure if spinner or trackball games would work on the Raspi. Could this also be on a per game issue?

I am sure others might think of what else to put on such a list.

Thank You,

Geo

Problem with french keyboard

Posted: Sat May 25, 2013 3:20 pm
by Holy Diver
Hi,

I have a problem using Mame4all with a french keyboard.
Nearly all keys are OK, except keys 5, 6, 2 and 1 ; so, I can't insert credit, nor launch a game.

The only workaround I've found is to run raspy-config and to configure my keyboard as an english one. Doing this allows me to use Mame4all but, of course, the "a" key becomes "q", "z" becomes "w" and so on ... Thus, after playing, I need to launch raspi-config again to reconfigure my keyboard as a french one.

I'm running Raspbian Wheezy 3.6.11+ #452 and the latest version of Mame4all
Raspberry Pi Model B V2

Is there a way to use a french keyboard ?

Thanks !

H_D

Re: MAME4ALL for Pi

Posted: Sat May 25, 2013 4:14 pm
by gyruss
Hi - I am really enjoying using mame4all - thanks for your work. Is it possible to customize the frontend so it's a bit more like the old gamelauncher frontend (or lemon launcher)? Can I specify the font and font size/colour in a config somewhere? Or would it need to be edited in the source and recompiled?

Cheers

gyruss

Re: Problem with french keyboard

Posted: Sat May 25, 2013 4:30 pm
by pudding
Holy Diver wrote:Hi,
I have a problem using Mame4all with a french keyboard.
Nearly all keys are OK, except keys 5, 6, 2 and 1 ; so, I can't insert credit, nor launch a game.
Just reconfigure the keys in MAME, press TAB and enter the "Input (general)" section. You can then reconfigure the coin and start keys etc to your liking.

Re: MAME4ALL for Pi

Posted: Sun May 26, 2013 3:43 pm
by Holy Diver
Thanks a lot pudding, it works !

H_D

Re: MAME4ALL for Pi

Posted: Sat Jun 08, 2013 10:40 am
by pudding
New version released. Download it from the Pi Store.

* New graphics engine backend has options for non-antialised graphics, scanlines and 16bit colour support.
* VSync support is much better eliminating stutter on full speed games.
* New graphics backend may mean some 8bit games are faster, but 16bit games maybe slower.
* Improvements to the sound should eliminate static on full speed games.

Thanks to Welshy for helping with the testing.

Re: MAME4ALL for Pi

Posted: Sat Jun 08, 2013 3:40 pm
by gyruss
Wow! Thanks for the update pudding - the scanlines look fantastic! :D

Re: MAME4ALL for Pi

Posted: Sat Jun 08, 2013 5:10 pm
by Vanfanel
Fantastic release, pudding!
It's faster than the last one, so games like Street Fighter II never ever go under 60FPS :D

Re: MAME4ALL for Pi

Posted: Sun Jun 09, 2013 11:16 am
by mongrol
Does anyone know where mame keeps it's UI settings? During an eldster moment I changed the key for the TAB menu to Enter instead of Tab. Now I can't change it back since when I try it the Enter key closes the menu! Doh!

Re: MAME4ALL for Pi

Posted: Sun Jun 09, 2013 12:14 pm
by kalehrl
mame4all/cfg/default.cfg

Re: MAME4ALL for Pi

Posted: Sun Jun 09, 2013 2:57 pm
by Vanfanel
I'm trying to build it myself, but I get:

Code: Select all

obj_mame_rpi/rpi/sound.o: In function `alsa_free(void*)':
sound.cpp:(.text+0x70): undefined reference to `snd_pcm_drop'
sound.cpp:(.text+0x78): undefined reference to `snd_pcm_close'
obj_mame_rpi/rpi/sound.o: In function `alsa_worker_thread(void*)':
sound.cpp:(.text+0x154): undefined reference to `snd_pcm_writei'
sound.cpp:(.text+0x180): undefined reference to `snd_strerror'
sound.cpp:(.text+0x1d4): undefined reference to `snd_pcm_recover'
sound.cpp:(.text+0x208): undefined reference to `snd_strerror'
obj_mame_rpi/rpi/sound.o: In function `osd_start_audio_stream(int)':
sound.cpp:(.text+0x38c): undefined reference to `snd_pcm_open'
sound.cpp:(.text+0x3a0): undefined reference to `snd_pcm_hw_params_malloc'
sound.cpp:(.text+0x3e0): undefined reference to `snd_pcm_set_params'
sound.cpp:(.text+0x3f8): undefined reference to `snd_pcm_get_params'
sound.cpp:(.text+0x42c): undefined reference to `snd_pcm_frames_to_bytes'
sound.cpp:(.text+0x43c): undefined reference to `snd_pcm_frames_to_bytes'
sound.cpp:(.text+0x464): undefined reference to `snd_pcm_prepare'
sound.cpp:(.text+0x474): undefined reference to `snd_pcm_hw_params_free'
sound.cpp:(.text+0x49c): undefined reference to `snd_pcm_writei'
sound.cpp:(.text+0x540): undefined reference to `snd_pcm_hw_params_free'
collect2: ld returned 1 exit status
during the linking process. I'm cross-compiling this on a remote machine with distcc (it takes a few minutes vs the hours it would take on the Pi) but I think linking is made locally on the Pi so it should have no impact at all.
According to apt-get, libasound2 and libasound2-dev are both installed on the Pi at their latest versions.

Any ideas?

PD: The reasons I'm compilig it are:
-Patching code to force every game into exact 60HZ (hharry or cninja, for example, benefit from this).
-Uncommenting the "Ghouls'n Ghotst" memory tests patching out in src/vidhrdw/cps1.cpp. The game takes AGES to boot with this patch commented.

Re: MAME4ALL for Pi

Posted: Sun Jun 09, 2013 5:28 pm
by kalehrl
Did you add -lasound in the LIBS = ... line?
I've just successfully cross-compiled mame4all using this:

Code: Select all

LIBS = -lm -lpthread -lSDL -lasound -lrt -lvcos -lbcm_host -lvchiq_arm -L/home/kalehrl/Templates/raspi/firmware/hardfp/opt/vc/lib -lGLESv2 -lEGL -lglib-2.0

Re: MAME4ALL for Pi

Posted: Sun Jun 09, 2013 6:33 pm
by Vanfanel
@kalehrl: linked without problems now. Sorry, I didn't think the Makefile needed to be tweaked to compile from sources. Thanks!! :D

@pudding: it seems mame4all doesn't have screen.c file where I used to force 60HZ for every game. Do you have any ideas where can I force the games HZs? (I know it may break internal timming, but it works great for me).

Re: MAME4ALL for Pi

Posted: Tue Jun 11, 2013 12:50 am
by mongrol
kalehrl wrote:mame4all/cfg/default.cfg
Thanks for that. All good.

Re: MAME4ALL for Pi

Posted: Wed Jun 12, 2013 11:52 am
by gzz
curious, i see cps2.cpp is in the source tree, is there plans on adding that? I know the 37b5 romset doesnt contain cps2 games, but man, if mame4all for pi could run cps2 games.... wheres the drooling smilie?? :lol:

and btw, it rocks already as it is. Thanks for the time and effort!

Re: MAME4ALL for Pi

Posted: Wed Jun 12, 2013 6:44 pm
by yottskry
FortyRock wrote:
yottskry wrote:I'm finding that if I go into the tab menu on a game and change the "General Settings" (I can't remember the exact option - there's an option to change keybindings for just the current game, and another to change keybindings in general, it's this one I'm referring to) the settings aren't remembered. I've tried binding a joystick button to the "one player start" button and another to the "insert coin" button, and it works for the current session, but as soon as I exit and choose another game (or even the same game again) the setting is lost. Anyone have any idea?
If you haven't already, run the install script or change the permissions on the files / folders to allow writes.
Just in case anyone else gets this problem, it was caused by the fact I didn't have a cfg folder within my Mame4All-Pi folder. Creating a cfg folder manually solved the problem.

Re: MAME4ALL for Pi

Posted: Tue Jun 18, 2013 9:48 pm
by jrmago
You can force the aspect ratio to 4:3 on a wide screen (16:9)? You can change this in mame.cfg? I did not see this option.
The games are horrible with the stretched image.

Re: MAME4ALL for Pi

Posted: Wed Jun 19, 2013 7:58 am
by welshy
jrmago
That's odd, all games should display in correct A/R? Which ROMS are an issue? Or ALL of them?

Re: MAME4ALL for Pi

Posted: Wed Jun 19, 2013 12:09 pm
by jrmago
Welshy,

With all ROMs, follows the example images:

https://dl.dropboxusercontent.com/u/350 ... e_dino.jpg
https://dl.dropboxusercontent.com/u/350 ... ffight.jpg

This monitor has a resolution 1440X900 (16:9).

Re: MAME4ALL for Pi

Posted: Wed Jun 19, 2013 12:15 pm
by Keir
Is there any kind of compatibility list anywhere for MAME4all? It would be cool to set one up online (I can do this if there isn’t –

Mame4all Version
Clock speed
Game
Red/Amber/Green
Comments

Assuming all are running version B Pis. In this way forum users could update the sheet with a handful of entries whenever they had a session on the emulator.

Re: MAME4ALL for Pi

Posted: Wed Jun 19, 2013 12:22 pm
by welshy
Keir
A FULL list of MAME4ALL ROMS can be found Here - http://code.google.com/p/imame4all/wiki/GameList

Re: MAME4ALL for Pi

Posted: Wed Jun 19, 2013 12:33 pm
by pudding
Keir wrote:Is there any kind of compatibility list anywhere for MAME4all?
You can get the info directly from mame4all:
/usr/local/bin/indiecity/InstalledApps/mame4all_pi/Full/mame -gamelist

Get the header using "-gamelistheader" and other options use "-h"

Re: MAME4ALL for Pi

Posted: Wed Jun 19, 2013 12:41 pm
by welshy
jrmago
I do know Capcom CPS board games do slightly ‘stretch’ (e.g. Final Fight), but not to fullscreen!
Do you have any other emulators/programs running that use dispmanx backbends that could be affecting it?

Also when testing for pudding I did find -

NEW SETTINGS -
display_border: Works well with all games, ranging from 0-500. Pushing limits to 600 ‘fills screen’ with the obvious resulting correct aspect ratio loss. Addtitonal: MAX setting at 1920X1200 is 599 before ‘limit’.

Maybe it happens at the other end of the the 'range' too! The default is ‘0’, try upping the figure slightly, see if it eradicates the problem.

Re: MAME4ALL for Pi

Posted: Wed Jun 19, 2013 1:41 pm
by Keir
welshy wrote:Keir
A FULL list of MAME4ALL ROMS can be found Here - http://code.google.com/p/imame4all/wiki/GameList
Hi guys

So this shows working ROMs - but there's nothing on there showign how well they work on a Ver B Pi?