RetroPie emulationstation not saving game progress 3

I spent part of my Saturday on this issue where I’d make progress in a game and save it within the game, but upon powering down the raspberry pi and returning, the progress would be gone. The problem is if you’re not exiting the game “cleanly”, the the emulation station will not write the game progress to the SD card, even though you’ve saved it in the game. When you configure a controller with RetroPie, it does not present you with a button combination to exit the game, which will initiate a write to the SD card. You can manually add a button combination for your controller by logging into the terminal and going to /opt/retropie/emulators/RetroArch/configs/ , then selecting your controller config, and adding the below two lines:

input_enable_hotkey_btn = 8
input_exit_emulator_btn = 9

Within the config, you’ll see each button on your controller is assigned a number. On my NES controller the “select” button was 8 and the “start” button was 9. With these lines added to the config file, I now press select and start at the same time to exit the game cleanly (which saves progress to the SD card).

Also, you can configure an automatic write to the SD card at an interval. Edit your retroarch.cfg file and uncomment the line “autosave_interval” and set it’s value to an integer representing a number of seconds. For example

autosave_interval = 5

Will save your progress to the SD card every 5 seconds.

Leave a comment

Your email address will not be published. Required fields are marked *

3 thoughts on “RetroPie emulationstation not saving game progress

  • NoDramas

    This does not seem to work for me with Berryboot boot loader and retropie 3.5 on raspberry pi 2 however I am seeing looking at the Config file in \\ipaddress\configs\all\retroarch-joypads\ShanWanPS(R)Ga`epad.cfg rather than opt/retropie/emulators/RetroArch/configs/ as you stated which would, I believe, require an exit to the shell which would ruin my wife’s game of Super Mario. I will try and change the file you as you stated if I can get her off Mario 🙂
    My current Config from the CFG file above.
    input_start_btn = “3”
    input_select_btn = “0”

    input_enable_hotkey_btn = “0”
    input_exit_emulator_btn = “3”

  • Metacide

    Worked! I already had the the hotkey and exit emulator buttons assigned and even then the games would’t save properly. Setting the autosave interval to 30 did the trick though. Thanks!