Using MAME Overlays/Bezels and shaders with RetroArch in RetroPie
-
@Floob
you have psp.cfg from Attract Mode in http://pastebin.com?be able to pass I will be very grateful
-
@stargamesrc
I imagine it would look like this
http://pastebin.com/XbsDvYip -
@Floob
thank you and the teacher, solved my problem worked -
Just an update on the 1440x900 conversion.
I am running through each ROM to check that the screen looks good and there are no issues. Some had no scaling in their .cfg's, so did not fit the 'screen area'.
I am on the letter 'G'. Getting there slowly ;)
Anyone have a Flying Shark bezel? It was one of my fav ZX Spectrum games. I never played the (MAME) arcade game till a few years ago. I have currently dropped in one of the Standard Vertical bezels.
-
I finished my set of 1024x768 bezels and cfg's a while back. Just as batch crop followed by a resize action. Wrote a little script to recalculate the viewport size & position.
I haven't tested them all, but I am willing to share them anyways, if there is an interest.
-
@Higgy This ok?
http://s000.tinyupload.com/index.php?file_id=21688361564337193935You guys may also find this relevant:
http://smartretro.co.uk/forums/viewtopic.php?f=3&t=8313&start=10#p9074 -
@Floob - thanks for creating the download, but it seems to be a <10k file that Windows reports as a virus! Android downloads it, but like I said it is less than 10k and the file is broken/not a ZIP.
The bash file for conversion looks good. I am nursing a cold so I can't get my head around it at the moment. :(
-
For the 1440x900 bash file it seems I have to swap out:
(CUSTOM_VIEWPORT_WIDTH * 2/3)
(CUSTOM_VIEWPORT_HEIGHT * 2/3)with 3/4 & 8333/100 to convert the 1920x1080 to the 1440x900
How do I go about creating (this will be run on my RPI), could I have a simple guide please :
I then had a separate batch to run it for all files in the folder and rename it to the right <romname>.cfg format in a separate folder.
Sorry, I am not so good at this sort of thing normally, let alone with a cold.
I guess I start by using NANO to copy/past the text and save it as say 1440convert.bash -
@Higgy Thats odd - its a 6MB download when I try, maybe there is something about the website it doesnt like. I'm on a mac at the moment.
-
@Floob - I have the files now. It seemed to download ok with Internet Explorer.
I have created a bezel now thanks. It is not as good as the others but better than nothing. -
Hi guys, hey Floob it's my understanding that to get these overlays to display properly for my 1680x1050 display, I would need to resize the actual png's.
But do I also need to edit the game specific configuration that go with them?They actually display ok on my screen, but the game is kind of offcenter to the right side. I'm willing to do the work to get it right for my screen, but I would just like a point in the right direction. I'm just not sure where to start. Thanks for all you do for the community, it's much appreciated.
-
You have to edit each config file. The xxx.zip.cfg
Someone has made a batch file for 720p here:
Http://smartretro.co.uk/forums/viewtopic.php?f=3&t=8313&start=10#p9074
I am not sure how to run it, but your understanding of Linux may be better.
The bash file reduces the file from 1080p to 720p so the width and height plus x and y start locations are divided by 2/3. I need to use 3/4 and 83.33/100 to goto 900p.You will need to work out the factor to match your screen res.
I was hoping that the original poster on Smartretro (or someone who knows linux) would run the batch/bash file for all the common resolutions. The resulting files are not large. And it would only take minutes.I am slowly converting each file one at a time for 1440x900p!
-
Ok thanks for that. My uderstanding isn't that much better I'm sure, but it's a start!
-
So I've edited a couple of them. 3 actually. Resized pngs, put the new values for x,y in configuration files for each, and man, it worked amazingly well!
Since I only have the 3 loaded onto the pi, I noticed though that when I choose any other rom to play, if it doesn't have the bezel yet, will take the bezel from the last game I played that had a bezel.In other words, I have a donkey kong bezel, so I play that, then I goto play asteroids, which I haven't loaded a bezel to the pi for yet, and it comes up with the donkey kong bezel.
So is this sort of an all or nothing thing? Or is there some line I can change in a configuration that tells lr-mame 2003 that these particular roms do not have a bezel yet?
Thanks,
xb -
@xb Its highly likely your system specific retroarch.cfg is saving all the settings. You probably had save on exit enabled at some point in RGUI. This is not a great idea. Set your system specific retroarch.cfg back to normal and youll be fine.
-
@Floob
Ah you're right. I forgot about that. Thanks!
And thanks for all your tutorials Floob, I've got a lot to learn but watching and reading your videos and posts has sped up the process tremendously for me. Thanks again. -
As @Higgy mention a few post up anyone care to have a look at the script that was posted to convert from 1080o to 720p?
-
Sure, what's up?
That script I put together can be saved as a file in the config files folder, and then on the command line you can run
chmod 755 <script filename>
in order to give it permissions to be executed.
You can find its content here:
It was some weeks ago, and I didn't have a lot of time, so it was a very scrappy job here - no points on making it elegant.
I made that to work for a single file, and since I didn't quite know off the top of my head how to retrieve all files in the folder and run that for each (which I'm sure there's a 2-3 line solution for), I just dumped the contents of the folder in a separate batch file, and got it to invoke this one for each of the config files.
Here's the content of that main file:
As you can tell, I named my first script (the earlier one) "batch.sh".
Once again, you'll need to save the content of the main file on the config-file folder, and then run
chmod 755 <filename>
on it as well.
A couple of things, which I believe I mentioned earlier:
a) it doesn't handle the invaders.cfg files correctly, because it has some commented lines that relate to the settings we're trying to change. Do remove those two or so commented lines on the invaders files before running the batch file - they'll start with # custom_viewport_width or something to that effect. As there were only three, it was easier for me to fix them, though fixing the processing should also be fairly easy, given time.
b) It will output the files to the same folder, but append ".new" to their end. In my case, I just moved those files to a separate folder and bulk renamed them, removing the .new extension. I'm sure you can tweak the script's FILENAME_OUT variable to output to wherever you want. For instance, you may create a new folder beforehand in the same directory you're running it from, say "output" and then set FILENAME_OUT = "output/$1" and it should work, alleviating the need for renaming the files afterwards.
c) It currently is set to adjust the proportions to 2/3, which is 1080 to 720. If you want a different proportion, just replace the 2/3 in the script by the new proportion, for both height and width.Hope these help.
Let me know if you have any problems running it - I ended up not using it as weirdly enough it seems I am currently running on a 1080p screen, so I can't promise it works, but theoretically it should.
Best.
-
@pjft
Thanks for replying.
The problem is I am such a Linux noob :)I have spent sooo many hours manually working my way through the configs, so I created a new folder 'test' (/home/pi/test).
I copied the *.zip.cfg files to it. I created batch.sh and bulk_process.sh and gave them the correct file permissions.
then within /home/pi/test/ I type ./bulk_process.sh and get -
-bash: ./batch.sh: /bin/bash^M: bad interpreter: No such file or directory
Also a couple of questions assuming I get it to work. I have added some more games, so what command do I type to create a 'bulk_process.sh' with the ROMS I have?
And because my res is a little odd, I need to carry out another maths function, so does this:NEWLINE='custom_viewport_width = "'$((CUSTOM_VIEWPORT_WIDTH * 2/3))'"';
become:
NEWLINE='custom_viewport_width = "'$(((CUSTOM_VIEWPORT_WIDTH * 5/6)-80))'"';
To go from 1920 to 1440 I first have to divide by 5/6 to get 1600 which is at the correct aspect ratio, I then need to subtract 80 pixels to centrailise the image as I have 1440 not 1600 (80*2 = difference 1600-1440).
Sorry for being such a dope ;)
-
No need to apologize whatsoever, I'm not in any way an expert Linux user either. :)
On my phone at the moment, so will reply in more detail tomorrow when I'm at a laptop, but wanted to point you in the right direction in regards to the error you're facing.
I googled it and found this which may help:
http://stackoverflow.com/questions/2920416/configure-bin-shm-bad-interpreter
As for the resolution maths, I'm not sure what the best way is. If the aspect ratio of the screen is the same as the 1080p one, then I'd suggest just dividing by the right number, otherwise you'll need to do a different subtraction on the other axis, I suspect.
What's the exact resolution?
Hope these help for the moment. Let me know how it goes. I'll answer the remainder tomorrow but at least this should help you move forward for the time being.
For the file names, I simply did a folder listing, piping it to a new file. So, if I recall correctly,
ls > main.sh
Or something to that effect. Then with my text editor just replaced all newline character in the main.sh file with the bash file we needed to run for each and newline again.
Very scrappy, I know. Sorry. :)
Let me know if this helps. Best.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.