cosmo0 / mame-retroarch-bezel-converter Goto Github PK
View Code? Open in Web Editor NEWConverter from MAME bezel artwork to Retroarch overlay files
Home Page: https://cosmo0.github.io/mame-retroarch-bezel-converter
License: MIT License
Converter from MAME bezel artwork to Retroarch overlay files
Home Page: https://cosmo0.github.io/mame-retroarch-bezel-converter
License: MIT License
I downloaded a set of Retroarch bezels with a lot of missing cfg files for PSX games. the cfg file output that works is:
overlays = 1
overlay0_overlay = "Resident Evil - Director's Cut (USA).png"
overlay0_full_screen = true
overlay0_descs = 0
The output the convertor (win-x64) creates is:
overlays = 1
overlay0_overlay = Resident Evil - Director's Cut (USA).png
overlay0_full_screen = true
overlay0_descs = 0
custom_viewport_width = 1436
custom_viewport_height = 1076
custom_viewport_x = 242
custom_viewport_y = 1
This output only works after I changed it to:
overlay0_overlay = "Resident Evil - Director's Cut (USA).png", with the quotation marks.
Hi @cosmo0 , thanks for the tool, I've been trying to use it for a while but I'm getting a few errors.
I've got the following MAME Bezel, which is Vertical:
ddonpach.zip
If I run the following command to convert it to a Retroarch Bezel, I'm getting the following errors:
./bezel-tools.exe mtr --source ../BezelRealisticZIP/ --output-roms ../../emulators/mame/cfgRetroarch/ --output-overlays ../BezelRealisticFromMAME/ --template-game templates/game.cfg --template-overlay templates/overlay.cfg
Issue 1 - when the MAME bezel is not a zip file, but a folder instead (with the pngs and lay files inside):
ddonpach PROCESSING ERROR: Unable to find the bezel file System.String[]
Workaround 1 - zip the files into a zip and try again
Issue 2 when rerunning the command:
ddonpach PROCESSING ERROR: Unable to find file ..\DefaultBezelH.png in archive
I checked all files in a working setup of MAME and there's no DefaultBezelH.png
file anywhere, it seems as if the file is not used at all, even though it's in the .lay file (but the MAME setup works without it)
Issue 3, with a first Workaround tried for 2:
I tried to delete that section from the lay file
Deleted:
<element name="Glass">
<image file="..\DefaultBezelH.png"/>
</element>
so got the error:
ddonpach PROCESSING ERROR: Unable to find element with name Glass in LAY file
<element name="Glass">
<image file="BezelLightGlass.png"/>
</element>
This was that new file:
ddonpach.zip
Final error where I got stuck:
ddonpach doesn't have a cfg file
ddonpach PROCESSING ERROR: Bezel of view Bezel does not have coordinates starting at (0,0)
I don't understand these files much yet, so I mentioned Issues 1, 2 and 3 in case they're useful to handle them if those files are not required or the tool could check folders rather than zip files for MAME bezels, but the main issue I'm reporting (which is where I'm currently stuck) is Issue 4
, do you know why I could be getting those errors?
The 1st one in that line is mentioning that:
ddonpach doesn't have a cfg file
- but I thought the CFG file for Retroarch is what this tool was going to create, is it not?ddonpach PROCESSING ERROR: Bezel of view Bezel does not have coordinates starting at (0,0)
- this one is mentioning and error due to coordinates (0, 0), not sure if this is because the bezels are vertical?Could you see if it's something you can handle with the code in your end pls and let me know if I could try a new release?
or if you've got any suggestion about how I could re-run the command, pls let me know and I'll report how it goes?
Many thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.