• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
RetroPie forum home
  • Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
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

How to restart ES from a script?

Scheduled Pinned Locked Moved Help and Support
scriptessystems.cfgrestart
111 Posts 5 Posters 39.8k 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.
  • M
    meleu @TMNTturtlguy
    last edited by 19 Jun 2017, 17:23

    @TMNTturtlguy out of curiosity: you need a keyboard to choose an option on your script, right? Or is it able to get input from joystick?

    • Useful topics
    • joystick-selection tool
    • rpie-art tool
    • achievements I made
    T 1 Reply Last reply 19 Jun 2017, 17:39 Reply Quote 0
    • T
      TMNTturtlguy @meleu
      last edited by 19 Jun 2017, 17:39

      @meleu the way it is written now it works from joystick/controller. The whole point is that i want to be able to make the ES changes without a keyboard. It works great right now with joystick and ps4 controller, less the restart issues. Thanks

      M C 2 Replies Last reply 19 Jun 2017, 18:01 Reply Quote 0
      • M
        meleu @TMNTturtlguy
        last edited by 19 Jun 2017, 18:01

        @TMNTturtlguy said in How to restart ES from a script?:

        @meleu the way it is written now it works from joystick/controller.

        This is curious. I can't see any mention to joy2key in your script. And joy2key is the tool responsible to convert the up/down/left/right on d-pad to up/down/left/right key presses (and A button to <enter>).

        Can you confirm that you navigate through your dialog menu using the up/down in your joystick and select an option with the button A?

        • Useful topics
        • joystick-selection tool
        • rpie-art tool
        • achievements I made
        1 Reply Last reply Reply Quote 0
        • C
          cyperghost
          last edited by 19 Jun 2017, 18:44

          @meleu
          Yes It's working with D-Pad A and B
          even this minimal menu works

          #!/bin/bash
          # Bash Menu Script Example
          dialog --clear --backtitle "Backtitle here" --title "Title here" --menu "Choose one of the following options:" 15 40 4 \
          1 "Option 1" \
          2 "Option 2" \
          3 "Option 3"
          M 1 Reply Last reply 19 Jun 2017, 19:56 Reply Quote 1
          • C
            cyperghost @TMNTturtlguy
            last edited by cyperghost 19 Jun 2017, 19:23

            @meleu @TMNTturtlguy @BuZz Man I'm so ....
            pkill -n emulationstatio always kills the newest process that the short version what my script exactly does. With all advantages and disadvantages - but the shortest script ;)

            I should more RTFM

            1 Reply Last reply Reply Quote 0
            • M
              meleu @cyperghost
              last edited by 19 Jun 2017, 19:56

              @cyperghost said in How to restart ES from a script?:

              @meleu
              Yes It's working with D-Pad A and B

              Really neat! :-) It seems to be a cool RetroPie feature, because if you launch the script directly from command line you can't use joystick for that.

              pkill -n emulationstatio always kills the newest process that the short version what my script exactly does. With all advantages and disadvantages - but the shortest script ;)

              Maybe we can make a video like this below replacing pumpkin by emulationstation:

              • Useful topics
              • joystick-selection tool
              • rpie-art tool
              • achievements I made
              C 1 Reply Last reply 19 Jun 2017, 20:01 Reply Quote 1
              • C
                cyperghost @meleu
                last edited by 19 Jun 2017, 20:01

                @meleu Is this always the same pumpkin? I think a pumpkin always got's seven lives.

                M 1 Reply Last reply 19 Jun 2017, 21:26 Reply Quote 0
                • M
                  meleu @cyperghost
                  last edited by meleu 19 Jun 2017, 21:26

                  @cyperghost said in How to restart ES from a script?:

                  @meleu Is this always the same pumpkin? I think a pumpkin always got's seven lives.

                  I think one is a binary, two or three are scripts, and the others were launched in an infinite loop inside some of those scripts.

                  • Useful topics
                  • joystick-selection tool
                  • rpie-art tool
                  • achievements I made
                  M 1 Reply Last reply 20 Jun 2017, 00:29 Reply Quote 2
                  • M
                    mediamogul Global Moderator @meleu
                    last edited by 20 Jun 2017, 00:29

                    @meleu

                    What about Schrödinger's pumpkin?

                    RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

                    1 Reply Last reply Reply Quote 0
                    • T
                      TMNTturtlguy
                      last edited by 20 Jun 2017, 16:44

                      @meleu @cyperghost I tried to create the restart function as a separate choice from the menu, thus you first pick an option for which config file to load and then choose to restart. I tested with several of the variations of the restart command and each time I get similar results. The script works fine, but after running it, the start/quit menu runs an auto restart, no different than when the restart command is within the actual config change function. I am at a loss, like charlie brown waiting for the great pumpkin to appear :)

                      M 1 Reply Last reply 20 Jun 2017, 17:29 Reply Quote 0
                      • M
                        meleu @TMNTturtlguy
                        last edited by 20 Jun 2017, 17:29

                        @TMNTturtlguy what's the version of your RetroPie-Setup? It must be 4.2.8+

                        • Useful topics
                        • joystick-selection tool
                        • rpie-art tool
                        • achievements I made
                        T 1 Reply Last reply 20 Jun 2017, 17:30 Reply Quote 0
                        • T
                          TMNTturtlguy @meleu
                          last edited by 20 Jun 2017, 17:30

                          @meleu I am not at my pi right now, but i updated again about 12 hours ago, so it is the current version as of then.

                          1 Reply Last reply Reply Quote 0
                          • C
                            cyperghost
                            last edited by 20 Jun 2017, 19:00

                            Added new possibilities to ES RESTART THREAD

                            M T 2 Replies Last reply 20 Jun 2017, 19:25 Reply Quote 0
                            • M
                              meleu @cyperghost
                              last edited by 20 Jun 2017, 19:25

                              @cyperghost Wow! We're looking like a bunch of murderers... There are many threads showing that there are many ways to kill EmulationStation. And I suspect the most promising is this one.

                              • Useful topics
                              • joystick-selection tool
                              • rpie-art tool
                              • achievements I made
                              C 1 Reply Last reply 20 Jun 2017, 20:37 Reply Quote 1
                              • T
                                TMNTturtlguy @cyperghost
                                last edited by 20 Jun 2017, 20:22

                                @cyperghost said in How to restart ES from a script?:

                                Added new possibilities to ES RESTART THREAD

                                I just checked the thread and I am not clear what edits you made today? We have gone through so many ways to kill (per @meleu) that i can't keep what codes are what, and what new possibilities you added/modified.

                                Thanks

                                1 Reply Last reply Reply Quote 0
                                • C
                                  cyperghost @meleu
                                  last edited by 20 Jun 2017, 20:37

                                  @meleu That looks really promising ... But AS you know I am not a scraper. Indeed the caurosel view is fine. Maybe in not a far future all databases are setted to SQL and then it is easier to exchange ready scraped Databases. What do you think?

                                  @TMNT in the thread are all working scripts listed inkl. how to and version numbering

                                  1 Reply Last reply Reply Quote 0
                                  111 out of 111
                                  • First post
                                    111/111
                                    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.

                                    This community forum collects and processes your personal information.
                                    consent.not_received