RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Easiest way to merge FBA and Mame on the Arcade folder (?)

    Scheduled Pinned Locked Moved Help and Support
    arcade foldermergefbamame
    4 Posts 3 Posters 1.0k 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.
    • N
      NightShadowPT
      last edited by

      Hi,

      I have a tabletop arcade that I have just finished configuring all the games I wanted.

      I have configured them separately on the FBA and the mame (libretro) folders, and I'm now looking to join them all in the Arcade folder.

      Does anyone know what is the best strategy to merge them as easily as possible?

      I was thinking about merging the two gamelist.xml files into one, but that would not be all, would it?

      P.S. - I tried to use the "all games" collection, but it shows the emulator after the name of the game and that is just ugly, so I'll have to get them all in the Arcade folder...

      mituM 1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator @NightShadowPT
        last edited by

        @nightshadowpt said in Easiest way to merge FBA and Mame on the Arcade folder (?):

        I was thinking about merging the two gamelist.xml files into one, but that would not be all, would it?

        You also need to take care of which emulator is used to launch the ROM. This is configured in /opt/retropie/configs/arcade/emulators.cfg, where the per-rom emulator configuration is stored. You can see how this would look like by copying one ROM in the arcade folder and them saving - from the Runcommand launch menu - a non-default arcade emulator for the ROM.
        After merging the gamelists (and taking care of the paths to images/videos/marquees/etc.), you should also produce a list of overrides you can add to the emulators.cfg file.

        D 1 Reply Last reply Reply Quote 0
        • D
          dudleydes @mitu
          last edited by

          @NightShadowPT It is possible to auto-populate the file that stores the per-rom configuration, /opt/retropie/configs/all/emulators.cfg, using the command line. For the FBA folder, you can use the following:

          ls -1 RetroPie/roms/fba | sed -e 's/\.zip$//' -e 's/_//g' -e 's/^/arcade_/' -e 's/$/ = "lr-fbalpha"/' >> /opt/retropie/configs/all/emulators.cfg
          

          I suggest backing up your current emulators.cfg file before running this command in case it results in spurious entries.

          1 Reply Last reply Reply Quote 2
          • N
            NightShadowPT
            last edited by

            It worked like a charm... thanks for the code dudleydes.

            If anyone else is thinking about doing something similar, please bear in mind that you will also need to copy the Mame configurations (overwrite the mame folder in arcade), otherwise you'll loose your keyboard mappings and other configurations.

            Cheers,

            1 Reply Last reply Reply Quote 0
            • 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.