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

    Is it possible to call an RetroPie-Setup scriptmodule from command line?

    Scheduled Pinned Locked Moved Ideas and Development
    retropiemenuemustationscriptmoduleretropie-setup
    18 Posts 6 Posters 14.3k 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

      sudo ./retropie_packages.sh runcommand install would install runcommand.

      run sudo ./retropie_packages.sh on it's own for a list of modules / functions. Some functions may show up but may require parameters etc.

      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
        Really cool!

        Worked like a charm here. But I noted that it overwrote my tweaked runcommand.sh with no backups.

        No problems here. I just need to warn the user about it.

        BTW: Some guys are making cool stuff with tweaked runcommands (example: https://retropie.org.uk/forum/topic/3134/meet-the-retrog). And that runcommand-on{start|end} can avoid the need of tweaking runcommand directly.

        Thanks a lot!

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

          @BuZz
          I tried sudo ./retropie_packages.sh runcommand install to get your recent changes to runcommand but it didn't work as expected. Then I updated RetroPie-Setup script and tried to update runcommand from command line again. This time it worked perfectly. Probably it's a git thing...

          Maybe it's better to update retropie-setup script before update runcommand from command line.

          Looking to the output sudo ./retropie_packages.sh, I inferred that the command to update retropie-setup is sudo ./retropie_packages.sh setup updatescript. I tried and it worked!

          [No questions this time. Only posting this trick for future reference.]

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

            if you didn't update retropie-setup then you don't have the latest changes - so runcommand will re-install the current version.

            That will update the script, but it's not the same as doing the update through the gui. You would also need to call post_update. I would recommend using the gui unless you are ok with debugging problems yourself etc.

            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
            • cyperghostC
              cyperghost @MikeDave
              last edited by

              @MikeDave
              Can you please post your Backup/Restore Solution.

              Maybe I can create a entry that saves
              "wpa_suppliment.conf", "retroarch.cfg" and the BT-settings for each controller.
              It will be backuped to FAT32 partition and can be restored to RetroPie-system.
              It's always a bit of work to flash a new image to system and then to enable wifi-connect, restore joypad-settings and perform some scripts (link to rom folder, restore BIOS files, enable root....)

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

                @BuZz
                [Reposting what I posted here a few weeks ago, but maybe you aren't following that thread anymore. The subject fits in this thread too.]

                It would be a nice feature if we could access that configedit "Choose a player to adjust" dialog for a specific system directly as a runcommand menu option, to let the user choose joypads right before launching a game.

                I was thinking in something similar with an -onstart script but I think that a runcommand menu option would be more concise and elegant. Then I was trying to find a way to invoke that configedit dialog directly for a specific system retroarch.cfg, but stumbled on the iniFileEditor complexity.

                Is there a way to call that dialog directly?

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

                  @meleu not without some code refactoring.

                  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 I was about to ask if you would accept a PR with a scriptmodule to do the very same task as the _joypad_index_configedit does, with the only reason to make it able to be called by runcommand. But then I realized that, considering that the next release of RetroPie will have an updated RetroArch, the users will be able to change the controllers on-the-fly with RGUI (following the steps I detailed here)

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

                      I have related problem, adding this system:

                      <system>
                      <name>retropie</name>
                      <fullname>RetroPie</fullname>
                      <path>~/RetroPie/retropiemenu</path>
                      <extension>.rp .sh</extension>
                      <command>sudo /home/pi/RetroPie-Setup/retropie_packages.sh retropiemenu launch %ROM% </dev/tty >/dev/tty</command>
                      <platform>retropie</platform>
                      <theme>retropie</theme>
                      <directlaunch/>
                      </system>

                      on es_systems.cfg is crashing emulationstation.

                      Permission problems?

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

                        @chapas It's not related - please open a new topic (even if you have the same problem, it's not helpful to post to the end of an old topic)

                        also

                        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

                        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 0
                        • 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.