RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    Runcommand update

    Scheduled Pinned Locked Moved Ideas and Development
    runcommandfor
    9 Posts 3 Posters 2.2k 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.
    • BuZzB
      BuZz administrators
      last edited by BuZz

      Over the last few days I reworked much of the runcommand.sh launch script. The changes have just been merged and are available if updating RetroPie-Setup (you will end up with RetroPie setup v 4.1.1)

      I have tested it as much as possible, but there could be new bugs introduced. If anyone has some time to do some further testing it would useful - mostly the functionality switching video resolution on per emulator / per rom basis etc.

      Not much has changed from the functionality side of things - apart from a switch to the keys in configs/all/emulators.cfg and configs/all/videomodes.cfg

      Before an md5sum was used as the key for the per rom emulator/video mode saves which was fine, but not user friendly for anyone examining the files manually. I have now changed this to more readable keys - old keys will be converted on first use.

      The new format for configs/all/emulators.cfg for per rom emulator choices is now SYSTEM_ROM = "EMULATOR"where ROM is the BASENAME of the ROM without extension (with only the following characters included - a-z A-Z 0-9_ -

      The new format for `configs/all/videomodes.cfg for per rom video mode choices is

      EMULATOR_ROM = "VIDEOMODE" for video mode
      EMULATOR_ROM_fb = "RESOLUTION" for framebuffer resolution 
      EMULATOR_ROM_render = "RESOLUTION/config/output" for retroarch render resolution
      

      with the ROM name processed as detailed above.

      To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

      meleuM 2 Replies Last reply Reply Quote 2
      • meleuM
        meleu @BuZz
        last edited by meleu

        @BuZz
        I launch mgba to play a game, and get the traditional runcommand menu:

        0_1479044971621_Captura de tela de 2016-11-13 11:47:30.png

        I choose "Select default emulator for gba" and when I go back to the runcommand menu it looks like this:

        0_1479045135736_Captura de tela de 2016-11-13 11:47:37.png

        I repeated it with other system and it still happens. I was testing several RetroArch cores lately and I'm sure it wasn't happening before.

        • Useful topics
        • joystick-selection tool
        • rpie-art tool
        • achievements I made
        1 Reply Last reply Reply Quote 0
        • BuZzB
          BuZz administrators
          last edited by

          Thanks. That is a new issue - it definitely was working during the last runcommand development so I must have broken it with one of the more recent changes. Will sort.

          To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

          1 Reply Last reply Reply Quote 1
          • BuZzB
            BuZz administrators
            last edited by

            Should be fixed.

            To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

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

              @BuZz yes, it is. Thanks!

              • Useful topics
              • joystick-selection tool
              • rpie-art tool
              • achievements I made
              1 Reply Last reply Reply Quote 0
              • meleuM
                meleu @BuZz
                last edited by meleu

                @BuZz
                I think that after changing __joy2key_dev to JOY2KEY_DEV (this commit) the __joy2key_dev variable became useless and, if it's a non-zero length string, disables joystick control on dialog menus.

                function start_joy2key() {
                    [[ "$DISABLE_JOYSTICK" -eq 1 ]] && return
                 
                    # if __joy2key_dev is a non-empty string, JOY2KEY_DEV will be an empty string...
                    [[ -z "$__joy2key_dev" ]] && JOY2KEY_DEV="$(ls -1 /dev/input/js* 2>/dev/null | head -n1)"
                
                    # if JOY2KEY_DEV is an empty string, the following test fails and the runcommand won't execute joy2key.py
                    if [[ -f "$ROOTDIR/supplementary/runcommand/joy2key.py" && -n "$JOY2KEY_DEV" ]] && ! pgrep -f joy2key.py >/dev/null; then
                
                        "$ROOTDIR/supplementary/runcommand/joy2key.py" "$JOY2KEY_DEV" kcub1 kcuf1 kcuu1 kcud1 0x0a 0x09 &
                        JOY2KEY_PID=$!
                    fi
                }
                
                • Useful topics
                • joystick-selection tool
                • rpie-art tool
                • achievements I made
                1 Reply Last reply Reply Quote 0
                • BuZzB
                  BuZz administrators
                  last edited by BuZz

                  Don't you check your email ? :) I replied to you already on github and applied a fix. (Also since you already mentioned this on github, you don't need to send me additional notifications - just wait for a reply)

                  To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                  1 Reply Last reply Reply Quote 1
                  • hansolo77H
                    hansolo77
                    last edited by

                    I wish there was a LIKE! button. :) I'm glad development is still in progress with RetroPie. Makes me glad to be a part of the system. I hope to test out the changes as a potential fix to my controller issues tomorrow. But I wanted to say thanks for all you guys do!

                    Who's Scruffy Looking?

                    BuZzB 1 Reply Last reply Reply Quote 0
                    • BuZzB
                      BuZz administrators @hansolo77
                      last edited by

                      @hansolo77 Thanks. :) There isn't a like but you can vote up posts etc which is the same sort of thing.

                      To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

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