Creating scripts to choose between different button layouts

Welcome Page Forums RetroPie Project New to RetroPie? Start Here! Creating scripts to choose between different button layouts

This topic contains 4 replies, has 2 voices, and was last updated by Profile photo of Xenotome Xenotome 1 year, 9 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #105717
    Profile photo of Xenotome
    Xenotome
    Participant

    I struggle to find a good solution to switch between 4-button (i.e. SNK) and 6-button (i.e. Capcom) arcade game layouts for my HORI and X-Arcade sticks. Any suggestions?

    I had the idea to set up both and copy them to different .cfg files.

    Then put some .sh scrips in the Retropie Menu that replace the retroarch.cfg in /opt/retropie/configs/all/ with the .cfg I want to use. Would this be possible?

    I’m a linux noob, but from what I understand creating those .sh scripts shouldn’t be that different from creating batch files in the DOS days? Just need to look up the proper syntax to copy the files over. 🙂

    But how would I add a menu item to the retropie menu in emulation station?

    Thanks in advance!

    layouts

    Attachments:
    #105750
    Profile photo of Floob
    Floob
    Member

    You could update the system specific retroarch.cfg files instead?
    /opt/retropie/configs/{systemname}/retroarch.cfg

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

    #105756
    Profile photo of Xenotome
    Xenotome
    Participant

    That wouldn’t make a difference as I’d still need two layouts for the same emulator (in this case lr-fba), unless I’m missing something (which is quite possible).

    #105758
    Profile photo of Floob
    Floob
    Member

    If you want to switch per game (using the same emulator) then you could use the per rom retroarch.cfg settings?
    I talk about that towards the end of this video

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

    #105799
    Profile photo of Xenotome
    Xenotome
    Participant

    Hey and thanks for your videos, I’ve watched some of them when I first got my Raspberry Pi and they helped a lot to get started!
    Setting things per game will come handy, but I’m not sure it will actually help here.

    In retrospect I think I should have provided more detail in the initial post to what my problem actually is *doh*

    So here is what I’ve got:

    • Controllers with a PSX/SNES button layout (i.e. Dualshock 3, Xbox360 gamepad) – Those work well with all Emulators and games
    • HORI Real Arcade Pro 3 – Works well for fighting games, but needs settings per game (4- or 6-button layout)
    • X-Arcade – for most other arcade games, needs settings per game (4- or 6-button layout)

    What I just realized writing this is the real problem is making those game dependent settings without breaking controls with the other controllers.
    For example: I’ve got the HORI Real Arcade and a Dualshock 3 connected and want to play a game of Street Fighter (a 6-button game) with someone. This could be configured just fine:
    The DS3 would use its face and shoulder buttons as always, and the HORI would use two rows of three.

    But if we’d switch to Art of Fighting 3 (a 4-button game) controls on the HORI would be messed up.
    Button 4 wouldn’t be the fourth button in the top row, it would be the first in the bottom row.

    On the other hand, if I’d edit the game specific .cfg to fix the HORI, it would mix up the buttons on the DS3.

    So if I’m not mistaken, I’d need settings per game and per controller.

    To complicate things even more:
    layoutx

    P.S.: Maybe getting a second HORI would be the better option 😉

    Attachments:
Viewing 5 posts - 1 through 5 (of 5 total)

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

Skip to toolbar