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

    Retropie not saving Favorites upon reboot

    Scheduled Pinned Locked Moved Help and Support
    not savingfavoritecustom collectifavourites menugamelist.xml
    23 Posts 6 Posters 17.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.
    • C
      ChrissyHemond
      last edited by ChrissyHemond

      Good evening all,

      I've followed these two tutorials as to how install retropie on my Pi3 ;

      https://github.com/retropie/retropie-setup/wiki/First-Installation
      https://github.com/retropie/retropie-setup/wiki/Transferring-Roms

      Everything is working fine, if I play a game such as OOT ( which is a big laggy, but playable) I can save, upon reboot my save will still be there.
      Unfortunately, whenever I add something to my favorites, or that I create a new custom collection, upon reboot, everything is undone. Scrapper included.

      I've look threw dozens of forums but few seems to have my problem and yet not one has an answer to my question.

      I don't know if it can help, but whenever I go in the file manager the gamelist.xml is red.

      Edit :
      -Yes, I've properly closed the emulsation before powering down my Pi3, still no change. Everything keeps disappearing.
      -Metadata upon closing is on.
      -Upon closing, going into audio and other transitory places the Pi3 keeps telling me "error parsing [Folder directory]...gamelist.xml " something something

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

        @chrissyhemond It looks like either a permission problem or a bad gamelist.xml formatted file.
        Try resetting the permissions on your ROMs folders - https://retropie.org.uk/docs/FAQ/#reset-ownershippermissions-of-homepiretropie-roms.

        1 Reply Last reply Reply Quote 0
        • C
          ChrissyHemond
          last edited by ChrissyHemond

          Did not work :

          Here is the message given to me when I quit emulsation :

          lvl0 error parsing XML file "home/pi/.emulationstation/gamelists/n64/gamelist.xml"!
          no document element found

          lvl0 error parsing XML file "home/pi/.emulationstation/gamelists/retropie/gamelist.xml"!
          no document element found

          Ive manually deleted the items above, the error disappeared until i added new favorites.

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

            @chrissyhemond said in Retropie not saving Favorites upon reboot:

            home/pi/.emulationstation/gamelists/retropie/gamelist.xml

            Seems like an empty file to me. Exit Emulationstation, then move the files where you get the errors out of the way, from the command line:

            mv /home/pi/.emulationstation/gamelists/retropie/gamelist.xml /home/pi/.emulationstation/gamelists/retropie/gamelist.xml.bad
            mv /home/pi/.emulationstation/gamelists/n64/gamelist.xml /home/pi/.emulationstation/gamelists/n64/gamelist.xml.bad
            

            Restart the system and see if you get the same errors.

            C 1 Reply Last reply Reply Quote 0
            • C
              ChrissyHemond @mitu
              last edited by

              @mitu

              Cannot move "/home/pi/.emulationstation/gamelists/n64/gamelist.xml to /home/pi/.emulationstation/gamelists/n64/gamelist.xml.bad"
              no such file or directory exist

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

                @chrissyhemond Does the /home/pi/.emulationstation/gamelists/folder exist ? Try running

                ls -l /home/pi/.emulationstation/
                ls -l /home/pi/.emulationstation/gamelists/
                

                and see what't the output. The command should give you also the permissions on the folders, if they're not owned by the pi user, then I recommend reinstalling Emulationstation from the RetroPie-Setup script.

                C 2 Replies Last reply Reply Quote 0
                • C
                  ChrissyHemond @mitu
                  last edited by

                  @mitu said in Retropie not saving Favorites upon reboot:

                  -l

                  Really sorry, yes it works, I then proceeded to redo what you've told me MV etc.

                  It works and yes the message is gone.

                  Unfortunately, if I add a game to my favorite and reset the favorite thingy, then proceed to leave emulationstation, the message comes back

                  1 Reply Last reply Reply Quote 0
                  • C
                    ChrissyHemond @mitu
                    last edited by

                    @mitu
                    what does it means when the text is red?

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

                      @chrissyhemond said in Retropie not saving Favorites upon reboot:

                      what does it means when the text is red?

                      If we're talking about the listing in the command line, it usually means a broken symlink, i.e. the file file is a shortcut to another file - but the target shortcut file doesn't exist anymore.

                      C 1 Reply Last reply Reply Quote 0
                      • C
                        ChrissyHemond @mitu
                        last edited by

                        @mitu
                        What can I do, if I move the said file with xml.bad as you told me, the moment i add a new favorite it justs come back the second i close emulationstation.

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

                          @chrissyhemond Did you try re-installing the Emulationstation package from the RetroPie-Setup script ?

                          C 1 Reply Last reply Reply Quote 0
                          • W
                            ward614
                            last edited by

                            A quick workaround for this is restarting emulation station rather than rebooting. The favorites save when you do and then you can reboot or turn off as usual.

                            1 Reply Last reply Reply Quote 0
                            • C
                              ChrissyHemond @mitu
                              last edited by

                              @mitu
                              I've done as you told me, I deleted it and re-installed it, it works now.
                              I can add favorites and they stay after shutdown.

                              Thanks a lot.

                              My question now, how do I remove a game for the gamelist / favorite without having to go in file manager ?
                              I can add a favorite, but I can't remove it, if I do remove it and I restart the emulationstation, it stays there.
                              The only way I've found to do things is to go in file manager and delete both gamelist.xml from retropie and SNES.

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

                                @chrissyhemond How are you removing the favorite flag ? It should be the same as adding it - pressing Y while the game is selected.

                                C 1 Reply Last reply Reply Quote 0
                                • C
                                  ChrissyHemond @mitu
                                  last edited by

                                  @mitu
                                  Yeah that's exactly what I do.
                                  But upon reboot or reset of the emulationstation it doesn't disappear, it stays in the favorite.

                                  I can add favorites, cannot remove them.

                                  99 little bugs in the code, 99 little bugs.
                                  Take one down, patch it around...
                                  127 little bugs in the code.

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

                                    @chrissyhemond It could be a bug, but that's not what I'm experiencing - I can reliably add/remove favorites and the list stays the same when restarting Emulationstation. It could be something in your particular configuration/system that triggers this bug.
                                    Do you see any errors in /home/pi/.emulationstation/es_log.txt when you perform the actions ?

                                    C 1 Reply Last reply Reply Quote 0
                                    • C
                                      ChrissyHemond @mitu
                                      last edited by

                                      @mitu
                                      "Couldn't find entry in index! 1"
                                      "Couldn't find entry in index! FALSE"
                                      "Couldn't find entry in index! FALSE"
                                      "Couldn't find entry in index! FALSE"

                                      that's what's added when i remove a favorite to the log.

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

                                        @chrissyhemond Can you post the gamelist.xml file or at least the section for the game where that you added as favorite ?

                                        C 1 Reply Last reply Reply Quote 0
                                        • C
                                          ChrissyHemond @mitu
                                          last edited by

                                          @mitu
                                          I'm not too sure how to do that

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

                                            @chrissyhemond Use Winscp to login to the PI (details are in the https://github.com/retropie/retropie-setup/wiki/Transferring-Roms page) and copy the /home/pi/.emulationstation/gamelists/nes/gamelist.xml file to your pc.
                                            Then paste the contents of the file to a site like pastebin.com and add the link in the topic post so we can take a look at it.

                                            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.