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

    Easy way of renaming Arcade roms?

    Scheduled Pinned Locked Moved Help and Support
    arcade emulatorarcade
    26 Posts 5 Posters 8.2k 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.
    • D
      dudleydes @mitu
      last edited by

      @mitu Thank you.

      The command below will give a preview of amended gamelist.xml:

      xmlstarlet ed -d '//game/desc | //game/image | //game/releasedate | //game/rating  | //game/developer  | //game/publisher | //game/genre  | //game/players' gamelist.xml
      

      To write changes, add --inplace as below:

      xmlstarlet ed --inplace -d '//game/desc | //game/image | //game/releasedate | //game/rating  | //game/developer  | //game/publisher | //game/genre  | //game/players' gamelist.xml
      
      M 1 Reply Last reply Reply Quote 0
      • D
        dudleydes @MikeLang
        last edited by

        @MikeLang Try

        cd /opt/retropie/configs/all/emulationstation/gamelists/arcade
        

        After this command, run ls to check gamelist.xml is there.

        1 Reply Last reply Reply Quote 0
        • ClydeC
          Clyde @MikeLang
          last edited by Clyde

          @MikeLang said in Easy way of renaming Arcade roms?:

          Already stuck, running putty, don't know how to change directory from 'pi@retropie:/ $' to:

          \RETROPIE\configs\all\emulationstation\gamelists\arcade\gamelist

          Just an addition to @dudleydes' post: Windows uses backslashes (\) as directory dividers. The official Retropie image is running on Linux, which uses slashes as directory dividers (/).

          1 Reply Last reply Reply Quote 0
          • M
            MikeLang @dudleydes
            last edited by

            @dudleydes said in Easy way of renaming Arcade roms?:

            @mitu Thank you.

            The command below will give a preview of amended gamelist.xml:

            xmlstarlet ed -d '//game/desc | //game/image | //game/releasedate | //game/rating  | //game/developer  | //game/publisher | //game/genre  | //game/players' gamelist.xml
            

            That's not giving me a full preview of gamelist, I'm getting something like this:

            gamelist.xml:1697.16: xmlParseEntityRef: no name
            <name>Game name</name>
            ^
            gamelist.xml:1889.17: xmlParseEntityRef: no name
            <name>Game name 2</name>
            ^

            The original command 'sed '/<desc>|<image>|<rating>|<releasedate>|<developer>|<publisher>|<genre>|<players>/d' gamelist.xml' is giving a fuller list but has entry run issues as you mentioned.

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

              @MikeLang You'll have to be more specific, maybe you can upload your final gamelist.xml somewhere so we can check.

              1 Reply Last reply Reply Quote 0
              • M
                MikeLang
                last edited by

                I know why I was getting that weird error now, it was related to having '&' in the name of a game. My example didn't help matters seeing as I didn't type '&'.

                The list it generates still doesn't have the games I haven't picked, for example say the arcade rom folder has 300 games and the gamelist.xml file lists 200 roms. There's still 100 games that I have to manually pick in order for them to appear in the gamelist.xml file.

                Thanks for all the help everyone I've learned a great deal from all your input.

                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.