RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    MAME/Retroarch overlay/bezel conversion tool

    Scheduled Pinned Locked Moved Ideas and Development
    bezelconversionmame overlaysoverlaytool
    17 Posts 3 Posters 3.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      Folly @cosmo0
      last edited by Folly

      @cosmo0 said in MAME/Retroarch overlay/bezel conversion tool:

      @folly If your MAME bezel has multiple pictures then no, it doesn't. My programs does the same as your script, it just extracts one of the pictures from the MAME file (probably not the same one as yours, though).

      Indeed, ours have multiple pictures.

      But it shouldn't be too hard to do what you want; if you provide me with a sample I think I can do it (but not right now because my priority is converting @Orionsangel 's overlays for use in Retropie).

      I will see how our project evolves.
      I will keep your offer in my mind, thanks.馃槉

      1 Reply Last reply Reply Quote 3
      • cosmo0C
        cosmo0
        last edited by

        New version: v2.0

        https://github.com/cosmo0/mame-retroarch-bezel-converter/releases/latest

        New features

        • Checks the integrity of your RA overlays, and fixes them

        Warning the tool has change name (because it does more than convert now).

        Usage

        !!! BACKUP YOUR FILES BEFORE USING THIS TOOL !!! I have used it on my own files but I cannot guarantee that it will work on yours.

        Get a detailed help and list of options by running bezel-tools --help or bezel-tools [verb] --help.

        Check overlays integrity

        Simple check:

        bezel-tools check --overlays-config samples/retroarch/overlays --roms-config samples/retroarch/roms

        Check and fix when possible:

        bezel-tools check --overlays-config samples/retroarch/overlays --roms-config samples/retroarch/roms --autofix --input-overlay-path /opt/retropie/configs/all/retroarch/overlay/ --template-overlay templates/overlay.cfg --template-rom templates/game.cfg

        Convert MAME bezels to RetroArch overlays

        bezel-tools mtr --source path/to/mame/zips --output-roms output/roms --output-overlays output/overlay --template-game templates/game.cfg --template-overlay templates/overlay.cfg

        Convert RetroArch overlays to MAME bezels

        bezel-tools rtm --source-roms path/to/rom/files --source-configs path/to/config/files --output path/to/output --template templates/default.lay --zip

        1 Reply Last reply Reply Quote 2
        • cosmo0C
          cosmo0
          last edited by

          New release: v3.0

          New feature: generates overlays directly from images.

          bezel-tools generate --images samples/images --roms-configs samples/roms --template-overlay templates/overlay.cfg --template-rom templates/game.cfg

          https://github.com/cosmo0/mame-retroarch-bezel-converter/releases/tag/v3.0

          I'm done with what I want to do with this tool right now (for my own personal use) and I'll move on to other projects.

          Feel free to open an issue if you find a bug, or if you want another feature.

          I want to generate "complete" overlays from MAME layouts (with background layers, etc) but it can get pretty complicated pretty fast, and I don't need it personally right now, but if people want it, I can take some time to do it. I'm open to pull requests, and I welcome forks.

          1 Reply Last reply Reply Quote 2
          • cosmo0C
            cosmo0
            last edited by

            New release that fixes a but with some LAY files.

            https://github.com/cosmo0/mame-retroarch-bezel-converter/releases/tag/v3.3

            F 1 Reply Last reply Reply Quote 0
            • F
              Folly @cosmo0
              last edited by Folly

              @cosmo0

              Can your program convert gameandwatch dual screen artwork (only backgrounds) to retroarch overlay ?
              I think a nice example is gnw_zelda.
              I did already some manually :
              my post
              But it's quite some work and not all are done yet.

              I just checked your github page, I am missing a pre-compiled package for arm32bit as most RetroPie's run on 32bit.
              Btw. How does it compile ?

              ps.
              I read a bit trough your thread again seems I asked you a similar question a long time ago.
              Multiple pictures are not supported by your script, right ?

              cosmo0C 1 Reply Last reply Reply Quote 0
              • cosmo0C
                cosmo0 @Folly
                last edited by

                @Folly If you provide me with a sample of what you're trying to convert, I can check whether it would be possible. The problem is that last time I checked, RA did not support multi-monitor games very well, but I can take a look (hopefully before next year).

                I've added ARM32 binaries to the release (same link).

                The build instructions are at the bottom of the readme.

                F 1 Reply Last reply Reply Quote 2
                • F
                  Folly @cosmo0
                  last edited by Folly

                  @cosmo0

                  These are the artwork files on which I added a Background.png manually :
                  (created from one or the TOP/BOTTOM or LEFT/RIGHT backgrounds)
                  https://drive.google.com/drive/folders/1YkISUXfKsdHvMv6HACwKhsVHBiGGHCjv

                  An option "creating background overlays" in my add-system-mamedev.sh script unzips the Background.png pictures and renames it and places them in the correct folder along with the needed configs.

                  In the folder RAconversions I added one RAconversion.
                  (Be aware that I did not add the folder structure, just the files)

                  cosmo0C 1 Reply Last reply Reply Quote 0
                  • cosmo0C
                    cosmo0 @Folly
                    last edited by

                    @Folly Thanks, I created an issue https://github.com/cosmo0/mame-retroarch-bezel-converter/issues/2

                    I'll see if I have some time to do it, but don't count on it too soon! :P

                    F 1 Reply Last reply Reply Quote 0
                    • F
                      Folly @cosmo0
                      last edited by Folly

                      @cosmo0

                      Thank's for looking at it.
                      I know it's a difficult one and that not everyone has the time to make solutions.
                      So I know that perhaps you will not find one.
                      It will not be the end of the world ;-)
                      Take your time.

                      Btw.
                      Be aware that the Background.png normally does not exist.
                      Also the screen has to match the LC-display figures.

                      1 Reply Last reply Reply Quote 0
                      • cosmo0C
                        cosmo0
                        last edited by

                        New version: now with a GUI (Windows only).

                        Release MAME / Retroarch bezel / overlays tool v4.0 路 cosmo0/mame-retroarch-bezel-converter (github.com)

                        93c85c74-01ad-4a42-b87b-9ba9cb051c8e-image.png

                        1 Reply Last reply Reply Quote 4
                        • First post
                          Last post

                        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.