Libretro-based emulators not saving config.

Home Forums RetroPie Project Controller Configuration in RetroPie Libretro-based emulators not saving config.

RetroPie has a new website and forum. Please visit https://retropie.org.uk/ for the new site. The new forum is located at https://retropie.org.uk/forum/. This forum is left here as a read-only archive.

This topic contains 8 replies, has 4 voices, and was last updated by Profile photo of Floob Floob 1 year, 11 months ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #98066
    Profile photo of sn00gans
    sn00gans
    Participant

    I ran into this problem while I was configuring Libretro-FBA and PIFBA.

    If I try to change any button settings in any Libretro through the onscreen menu (using HOTKEY + F1) they take effect until I close the emulator. Once I re-open it, the settings have reverted to their previous values.

    I’ve tried using the ‘save configuraion’ option within the menu to save the settings and then try to load those settings, but it doesn’t work–after I load up the new .cfg file, I am unable to do anything within the menu.

    I have also copying the settings within the new .cfg file into the retroarch.cfg within the emulator subdirector, but to no effect.

    Can someone give me some guidance as to where to find what’s causing the problem?

    #98311
    Profile photo of drvenkman
    drvenkman
    Participant

    Yep, I’m running into this same thing. It’s causing a MAJOR pain in my butt. Using any of the Libretro-based emulators in combination with my Tankstick (using the XArcade2Jstick service) gives some VERY odd button and keyboard defaults that are entirely unintuitive and unsuited for the classic games I like to play. Each time I boot the emulator from the menu -basically every time I select a new ROM! – I have to redefine everything.

    I wish we had some indication this is being looked into, or might be fixed in another Beta. For that matter, 3.0 Beta 2 has been out for a good while. Has anyone seen any indication of a new release or possible 3.0 Final that would fix this bug?

    #98312
    Profile photo of Floob
    Floob
    Moderator

    If you want to set controls in a libretro based emulator, you can either update controller config file, or update the system specific retroarch.cfg

    I wouldnt recommend updating the main retroarch.cfg (in the /all directory) for controller updates.

    If you look in the /opt/retropie/configs/{systemname}/ directory, you’ll see the file that was created when you saved from the RGUI interface (do “ls -lah” and itll be the latest datestamped one). If you post that up here I could point out the section to paste in your /opt/retropie/configs/{systemname}/retroarch.cfg file.

    This video gives an overview on where to change these files (although its a little out of date in terms of some of the paths – new one coming soon!)

    RetroPie help guides --> https://goo.gl/Yfy8kj
    Please read this before asking for help --> http://goo.gl/eLErnl

    #98313
    Profile photo of drvenkman
    drvenkman
    Participant

    Thanks for the reply, Floob, but I don’t think I quite understand. You say to look in the /opt/retropie/configs/{systemname}/ directory, but in my case, the problem is that the emulator doesn’t seem to be saving the configuration after I make changes and redefine things. So in my case, using Stella-lr, my retroarch.cfg file in opt/retropie/configs/atari2600/ looks like this:

    #include "/opt/retropie/configs/all/retroarch.cfg"
    # All settings made here will override the global settings for the current$
    input_remapping_directory = /opt/retropie/configs/atari2600/

    • This reply was modified 1 year, 11 months ago by Profile photo of drvenkman drvenkman. Reason: Formatting
    #98315
    Profile photo of Floob
    Floob
    Moderator

    Yep, its not really all that clear at the moment, but in essence, when you save your settings from RGUI it wont save to the retroarch.cfg.
    Instead it will write a new config file in the same directory.

    You can see it if you type “ls -lah”

    Whilst you could simply rename this new file to be retroarch.cfg, that would break a lot of the other links that RetroPie uses.

    So the best bet would be to take the relevant lines out of the new file and put them in your retroarch.cfg. I’ll try to cover this in a new video this weekend.

    RetroPie help guides --> https://goo.gl/Yfy8kj
    Please read this before asking for help --> http://goo.gl/eLErnl

    #98393
    Profile photo of patl
    patl
    Participant

    It’s best to manually edit the configs for each system to set up the key
    e.g. /opt/retropie/configs/snes/retroarch.cfg

    .
    ..
    input_hold_fast_forward_btn = 9
    input_exit_emulator_btn = 0
    input_rewind_btn = 8
    input_pause_toggle_btn = 3
    input_reset_btn = 12
    #include “/opt/retropie/configs/all/retroarch.cfg”

    These entries will be preferred than the entries in /opt/retropie/configs/all/retroarch.cfg

    Or you can set in RGUI the option “save on exit” to true.
    I think this option can be found in settings -> Generall Settings
    .. I don’t know the Path of these option exactly now.
    But I do not recommend this because the whole config would be overwritten with the actual retroarch settings.

    #98401
    Profile photo of Floob
    Floob
    Moderator

    I’ve made a (very dull) video about the retroarch.cfg files in RetroPie here if you want to see why the RGUI settings arent saved – start about 30mins in or so. (Although it is summarised nicely in patl post above)

    RetroPie help guides --> https://goo.gl/Yfy8kj
    Please read this before asking for help --> http://goo.gl/eLErnl

    #98407
    Profile photo of sn00gans
    sn00gans
    Participant

    Thank you very much, Floob and patl. Instead of adding the entire text from my saved .cfg file, I just added the lines representing the buttons I needed changed and voilait worked! I can use this knowledge to make sure the settings in the PSX emulator also stay saved, too.

    Now all I have to do is find out why some roms work in PIFBA but not in libretro-fba. Probably need a different dump.

    Thanks again!

    #98411
    Profile photo of Floob
    Floob
    Moderator

    Now all I have to do is find out why some roms work in PIFBA but not in libretro-fba. Probably need a different dump.

    Thanks again!

    Thats correct.
    Details here:
    http://blog.petrockblock.com/forums/topic/mame-versions-and-romsets-on-retropie/#post-92997

    RetroPie help guides --> https://goo.gl/Yfy8kj
    Please read this before asking for help --> http://goo.gl/eLErnl

Viewing 9 posts - 1 through 9 (of 9 total)

Forums are currently read only - please visit the new RetroPie forums at https://retropie.org.uk/forums/

Skip to toolbar