Main > Raspberry Pi & Dev Board
How to make a dedicated MAME 0.250 Appliance on a Raspberry Pi 4/Pi 400
wimpie3:
Hi there, thanks for responding.
I managed to get the wifi up and running by putting the special config file in the root.
I got to the point until I fully configured Attract and MAME. Worked like a charm. Today I wanted to play some games and... as soon as I launch them with Attract, I see the MAME screen and everything hangs. So I've checked out the mame.ini file in the /data directory. 8000 bytes full of garbage. I deleted the file. Sudo reboot. File is there again!
OK, I open up a putty session. Asks me for my password, all seems okay. And that's it. The system hangs afterwards:
Using username "pi".
pi@192.168.0.52's password:
Linux arcade 5.4.77-v7l+ #1371 SMP Tue Nov 17 13:35:27 GMT 2020 armv7l
Last login: Tue Jan 4 09:16:18 2022
I can press CTRL+C to abort, and I get a prompt, but typing things like "rw" or "servicemode" result in a "command not found". So I'm a bit stuck now. Obviously the system decided to do some mean things to the MAME file, but now I can't get into servicemode anymore since nothing happens after the prompt...
bbegin:
--- Quote from: wimpie3 on January 05, 2022, 10:58:39 am ---Hi there, thanks for responding.
I managed to get the wifi up and running by putting the special config file in the root.
I got to the point until I fully configured Attract and MAME. Worked like a charm. Today I wanted to play some games and... as soon as I launch them with Attract, I see the MAME screen and everything hangs. So I've checked out the mame.ini file in the /data directory. 8000 bytes full of garbage. I deleted the file. Sudo reboot. File is there again!
OK, I open up a putty session. Asks me for my password, all seems okay. And that's it. The system hangs afterwards:
Using username "pi".
pi@192.168.0.52's password:
Linux arcade 5.4.77-v7l+ #1371 SMP Tue Nov 17 13:35:27 GMT 2020 armv7l
Last login: Tue Jan 4 09:16:18 2022
I can press CTRL+C to abort, and I get a prompt, but typing things like "rw" or "servicemode" result in a "command not found". So I'm a bit stuck now. Obviously the system decided to do some mean things to the MAME file, but now I can't get into servicemode anymore since nothing happens after the prompt...
--- End quote ---
Just to let you know, I completed the upload of the new image file with updated scripts. Can you download again, please?
On the first run, you have to expand the data partition with:
--- Code: ---expand-data-partition.sh
--- End code ---
Thanks in advance!
wimpie3:
--- Quote from: ZoOl007 on May 27, 2020, 01:57:43 pm ---Edit: I just looked at your video - you really should try https://github.com/mgzme/MAME-PSGS as it looks stunning.
--- End quote ---
I agree, MAME-PSGS looks stunning! But how can we add this? I've tried modifying mame.ini. I've reset "effect" to "none" and I've pasted this at the bottom:
#
# OpenGL-SPECIFIC OPTIONS
#
gl_forcepow2texture 0
gl_notexturerect 0
gl_vbo 1
gl_pbo 1
gl_glsl 1
gl_glsl_filter 1
glsl_shader_mame0 ".$HOME/.mame/roms/mame-psgs"
I've put mame-psgs.vsh and mame-psgs_rgb32_dir.fsh in the mame rom directory. But it doesn't seem to work. Am I overlooking something?
bbegin:
--- Quote from: wimpie3 on January 07, 2022, 11:47:30 am ---
--- Quote from: ZoOl007 on May 27, 2020, 01:57:43 pm ---Edit: I just looked at your video - you really should try https://github.com/mgzme/MAME-PSGS as it looks stunning.
--- End quote ---
I agree, MAME-PSGS looks stunning! But how can we add this? I've tried modifying mame.ini. I've reset "effect" to "none" and I've pasted this at the bottom:
#
# OpenGL-SPECIFIC OPTIONS
#
gl_forcepow2texture 0
gl_notexturerect 0
gl_vbo 1
gl_pbo 1
gl_glsl 1
gl_glsl_filter 1
glsl_shader_mame0 ".$HOME/.mame/roms/mame-psgs"
I've put mame-psgs.vsh and mame-psgs_rgb32_dir.fsh in the mame rom directory. But it doesn't seem to work. Am I overlooking something?
--- End quote ---
I see 3 elements in your path:
1. You have an extra leading dot (.) just before $HOME
2. No need to use double quotes
3. You should use a dedicated folder for the GLSL shaders (for example: $HOME/.mame/glsl)
For example, you may use:
--- Code: ---glsl_shader_mame0 $HOME/.mame/glsl/mame-psgs
--- End code ---
Just create the glsl folder under /data/mame.
wimpie3:
@bbegin Thanks for your help, unfortunately it's not working. What I have right now:
In mame.ini I've set effect to none
and added this at the end of mame.ini:
#
# OpenGL-SPECIFIC OPTIONS
#
gl_forcepow2texture 0
gl_notexturerect 0
gl_vbo 1
gl_pbo 1
gl_glsl 1
gl_glsl_filter 1
glsl_shader_mame0 $HOME/.mame/glsl/mame-psgs
I've created a directory /data/mame/glsl with these files:
custom_crt.vsh (contents: palette_emulation = 0.0;)
mame-psgs.vsh
mame-psgs_rgb32_dir.fsh
When I launch mame there is no filter effect present.
Could it be that glsl shaders only work when video=opengl?
Edit: google says that "GLSL requires OpenGL support", can I just change video to opengl and not use the current accel option? Or would that break my installation?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version