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

    Specific retroarch emulator settings are being over written after i quit the game.

    Scheduled Pinned Locked Moved Help and Support
    37 Posts 9 Posters 29.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.
    • C
      Concat @hakan1708
      last edited by

      @hakan1708 said in Specific retroarch emulator settings are being over written after i quit the game.:

      By the way, yes, save configuration on exit is on. How do you put it off though? I put it off and I save the new configuration but when i go back, it still shows "on". You think this the curse of Retroarch? Thanks again for help. (ooops. i just saw the video) I'll find my answer in there.

      You need to turn it off in the global config, not the in game RGUI. You can do this by launching retroarch in the retropie menu. Remember to save the config before exiting...

      meleuM 1 Reply Last reply Reply Quote 0
      • meleuM
        meleu @Concat
        last edited by meleu

        @Concat @hakan1708
        I agree that using RGUI is very very user friendly, but I think that RetroPie is not designed to manipulate the RetroArch via RGUI by default.

        I'll try to explain what causes this confusion...

        If you look at the /opt/retropie/configs/SYSTEM/emulators.cfg (substitute SYSTEM by the obvious), you'll see that every single libretro core uses it's own retroarch.cfg file. And all of these inidividual files have, by default, an #include directive calling the "global" /opt/retropie/configs/all/retroarch.cfg.

        If you set "save config on exit" when playing megadrive, you'll dump the config at /opt/retropie/configs/megadrive/retroarch.cfg and it will overwrite the old file. After that the file will have no #include directive anymore (update: it was made some improvements on retropie and now the #include line is put at the end of the file. It avoid some confusions, but not solve all of them). Furthermore, be awared that the configs you made will take effect when playing megadrive only.

        Fortunately, you can "restore the factory settings" with the file /opt/retropie/configs/SYSTEM/retroarch.cfg.rp-dist. Just rename it to retroarch.cfg. ;-)

        • Useful topics
        • joystick-selection tool
        • rpie-art tool
        • achievements I made
        mediamogulM 1 Reply Last reply Reply Quote 3
        • mediamogulM
          mediamogul Global Moderator @meleu
          last edited by mediamogul

          @meleu

          I've never understood the redundancy of RetroArch's configurability in RetroPie unil your post. I've had 'save on exit' set for some time now, but have not noticed any of the issues you've described. I take it that's because I only make changes by invoking the Rgui from the 'RetroArch' menu option in the 'RetroPie' ES menu listing? From there, no core is loaded and I assume the changes are made to the global file. I'm glad I read this as I'm going to want to look over the individual core config files and perhaps rethink my setup here.

          RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

          meleuM 1 Reply Last reply Reply Quote 1
          • meleuM
            meleu @mediamogul
            last edited by meleu

            @mediamogul said in Specific retroarch emulator settings are being over written after i quit the game.:

            (...) I only make changes by invoking the Rgui from the 'RetroArch' menu option in the 'RetroPie' ES menu (...)

            Yeah! I think this is the best way to use RGUI on RetroPie, but it's still dangerous. Because if you change one single config during a game, you'll overwrite the current system retroarch.cfg. The user must keep in mind that he/she have to exit the game, and launch the RGUI via RetroPie menu.

            • Useful topics
            • joystick-selection tool
            • rpie-art tool
            • achievements I made
            1 Reply Last reply Reply Quote 1
            • C
              Concat
              last edited by

              @meleu
              Interesting. I obviously need to trace how the configs are being called to determine the problem. What you've described does shed some light on things because my /opt/retropie/configs/SYSTEM/retroarch.cfg files do not have the #include line.

              That said, I could have sworn that when I edit the global config and launch into a rom, the changes made will flow through, even though I don't have an #include line. And when I edit via RGUI while in game, and it saves to /opt/retropie/configs/SYSTEM/retroarch.cfg (confirmed via yellow text at bottom left), the changes DON'T stick when I relaunch the ROM.

              It's as if the only config being called is the global one. It's very confusing if RetroPie is managing the configs differently than the way RetroArch intended. I've been using RetroArch for a couple years now on Android, so it's been a maddening experience not to have my old methods work properly... and to not understand why.

              The wiki needs a flowchart for this config circus... it's got to be one of the most common sources of confusion in RetroPie.

              herb_fargusH meleuM 2 Replies Last reply Reply Quote 0
              • herb_fargusH
                herb_fargus administrators @Concat
                last edited by

                @Concat like this: https://github.com/retropie/retropie-setup/wiki/RetroArch-Configuration

                A visual flowchart would be cool though

                If you read the documentation it will answer 99% of your questions: https://retropie.org.uk/docs/

                Also if you want a solution to your problems read this first: https://retropie.org.uk/forum/topic/3/read-this-first

                C 1 Reply Last reply Reply Quote 0
                • meleuM
                  meleu @Concat
                  last edited by

                  @Concat said in Specific retroarch emulator settings are being over written after i quit the game.:

                  @meleu
                  Interesting. I obviously need to trace how the configs are being called to determine the problem. What you've described does shed some light on things because my /opt/retropie/configs/SYSTEM/retroarch.cfg files do not have the #include line.

                  I think the file was overwritten. Try to find an /opt/retropie/configs/SYSTEM/retroarch.cfg.rp-dist. This file contains the default config.

                  And when I edit via RGUI while in game, and it saves to /opt/retropie/configs/SYSTEM/retroarch.cfg (confirmed via yellow text at bottom left), the changes DON'T stick when I relaunch the ROM.

                  Pay attention at the filename when the yellow text appears. Maybe it is not retroarch.cfg (if the "configuration per core" is on).

                  Take a look at the /opt/retropie/configs/SYSTEM/emulators.cfg and search for the line that begins with "default=". And then look for the line that begins with the string after "default=". This is the command that will launch RetroArch. See that it calls a specific retroarch.cfg. This is the config file that will be used when executing the respective system.

                  I've been using RetroArch for a couple years now on Android, so it's been a maddening experience not to have my old methods work properly... and to not understand why.

                  Same here. My luck is that I'm an old Linux user, and I was noticing these details as I was facing these problems.

                  The wiki needs a flowchart for this config circus... it's got to be one of the most common sources of confusion in RetroPie.

                  fully agree.

                  • Useful topics
                  • joystick-selection tool
                  • rpie-art tool
                  • achievements I made
                  C 1 Reply Last reply Reply Quote 1
                  • C
                    Concat @herb_fargus
                    last edited by

                    @herb_fargus
                    Honestly, I've read that page multiple times now. The missing piece, for me anyway, is how making changes via RGUI (and saving) will affect everything. Everything on that page talks about manually editing the config files.

                    It seems I wrongly assumed Retropie plays nice when saving settings via RGUI. Hell, as soon as I got my RPi I turned on Per Core Config and went to work changing settings and saving via RGUI... just like I do with my Android tablet.

                    Thankfully Remapping seems to work the exact same as I've come to expect, so I didn't have much issues with controls.

                    FloobF 1 Reply Last reply Reply Quote 0
                    • C
                      Concat @meleu
                      last edited by

                      @meleu

                      Pay attention at the filename when the yellow text appears. Maybe it is not retroarch.cfg (if the "configuration per core" is on).

                      I'm 100% positive it is. I watched it like a hawk when troubleshooting. :)

                      But I did not analyze the contents of emulators.cfg and follow the chain of events. I'm going to do exactly that to understand where it's going wrong for me. If I need to restore all the defaults and just manually edit the configs from now on, I will just have to do that.

                      Thanks for all the info!

                      1 Reply Last reply Reply Quote 1
                      • FloobF
                        Floob @Concat
                        last edited by Floob

                        @Concat Did the video above help explain what gets written and why? I tried to show how RetroArch makes saves back to the RetroPie directory structure and how to avoid creating conflicts.

                        As you can see by reading the emulators.cfg file in a given system directory, it is the system retroarch.cfg that is read by Retroarch, this in turn reads the global setting, but can be overridden by a game/rom specific config.
                        So the priority is

                        • Game specific retroarch.cfg
                        • System specific (everything above the #include line will take priority over the global file)
                        • Global Settings

                        This allows a high level of control over exactly what settings each system (or game) will apply. By updating settings in RGUI it just wont/cant? re-apply those in the correct config files quite so specifically. You can of course use RGUI to do this, but its not quite as elegant as using the config files yourself as it results in one big mashed up config - but then if it does what you need I'd run with it. As shown in the video, its a pretty quick one time tweak to set your custom RetroArch settings without screwing up the way RetroPie wants to process the configs.

                        Plus, if you dont want to manually edit anything, the config editor will let you easily make changes that will be saved in the correct manner:
                        https://github.com/retropie/retropie-setup/wiki/Configuration-Editor

                        Please read the Docs before asking a new question.
                        RetroPie Help Guides: https://goo.gl/3gcNsT

                        1 Reply Last reply Reply Quote 1
                        • C
                          Concat
                          last edited by

                          Yes, and no.

                          In your video you are missing a RetroArch option. I actually see 2 save options while in RGUI.

                          Save Configuration
                          Save New Configuration

                          The option to Save a New Configuration file will create a "SYSTEM-1/2/3.cfg" much like your video. However, I never use this option because I've always known that RetroArch won't autoload it. I use Save Configuration File, which saves to /opt/retropie/configs/SYSTEM/retroarch.cfg and overwrites the existing file.

                          It was a helpful video though. I've had a number of aha moments in this thread, and I did watch the entirety of your video, so thank you :)

                          FloobF 1 Reply Last reply Reply Quote 0
                          • FloobF
                            Floob @Concat
                            last edited by

                            @Concat Ah - ok, so by overwriting your existing config you are effectivly doing this bit from my post above

                            You can of course use RGUI to do this, but its not quite as elegant as using the config files yourself as it results in one big mashed up config - but then if it does what you need I'd run with it.

                            So that would work, but then you are sort of opting out from being able to fine tune your setups. I'll try to cover this in more detail in a future video.
                            And thanks for the comments :)

                            Please read the Docs before asking a new question.
                            RetroPie Help Guides: https://goo.gl/3gcNsT

                            herb_fargusH 1 Reply Last reply Reply Quote 1
                            • herb_fargusH
                              herb_fargus administrators @Floob
                              last edited by

                              @Floob don't forget to make a visual flowchart ;)

                              If you read the documentation it will answer 99% of your questions: https://retropie.org.uk/docs/

                              Also if you want a solution to your problems read this first: https://retropie.org.uk/forum/topic/3/read-this-first

                              1 Reply Last reply Reply Quote 0
                              • dankcushionsD
                                dankcushions Global Moderator
                                last edited by

                                the 'proper' way of doing this is to edit these files using the retropie config editor:
                                https://github.com/retropie/retropie-setup/wiki/Configuration-Editor

                                can't go wrong with that!

                                1 Reply Last reply Reply Quote 0
                                • mediamogulM
                                  mediamogul Global Moderator
                                  last edited by

                                  This is the type of complexity that only a puppet show can fully illustrate. Too bad the price of felt and googly eyes has skyrocketed in recent years. I blame trade relations.

                                  RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

                                  1 Reply Last reply Reply Quote 0
                                  • FloobF
                                    Floob
                                    last edited by Floob

                                    First attempt. Plenty of room for correction and improvement.

                                    alt text

                                    Please read the Docs before asking a new question.
                                    RetroPie Help Guides: https://goo.gl/3gcNsT

                                    herb_fargusH C 2 Replies Last reply Reply Quote 3
                                    • herb_fargusH
                                      herb_fargus administrators @Floob
                                      last edited by

                                      @Floob oo very fancy you work fast. You using draw.io?

                                      If you read the documentation it will answer 99% of your questions: https://retropie.org.uk/docs/

                                      Also if you want a solution to your problems read this first: https://retropie.org.uk/forum/topic/3/read-this-first

                                      FloobF 1 Reply Last reply Reply Quote 0
                                      • FloobF
                                        Floob @herb_fargus
                                        last edited by

                                        @herb_fargus Yep!! Its great isnt it! :)

                                        Please read the Docs before asking a new question.
                                        RetroPie Help Guides: https://goo.gl/3gcNsT

                                        mediamogulM 1 Reply Last reply Reply Quote 1
                                        • mediamogulM
                                          mediamogul Global Moderator @Floob
                                          last edited by

                                          @Floob

                                          Very illuminating. Jim Henson himself couldn't have done better.

                                          RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

                                          1 Reply Last reply Reply Quote 0
                                          • C
                                            Concat @Floob
                                            last edited by

                                            You rock Floob. Fast indeed.

                                            Other things that (could) affect the config structure:

                                            • Core Remap files
                                            • Configuration Per Core = ON
                                            • User per-game Core Options = ON
                                            • Load Override Files Automatically = ON

                                            It sounds to me like RetroPie has it's own way of managing at least the last three items, so there could be conflicts and unexpected results.

                                            FloobF dankcushionsD 2 Replies Last reply Reply Quote 1
                                            • 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.