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

    ES devs and testers, this tool is for you!

    Scheduled Pinned Locked Moved Ideas and Development
    scriptgithubemulationstatiotestingdevelopment
    88 Posts 15 Posters 40.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.
    • meleuM
      meleu @Zigurana
      last edited by meleu

      @Zigurana said

      show the latest commit-date of the dev-branch, as well as the latest commit-date of the installed version of that branch, so users can see if they are up-to-date or not.

      I started to think about ways to implement such feature, but then I realized that it would solve an already solved problem. As far as I understood you want to prevent the user spending time downloading/compiling unnecessarily. Am I right?

      I made this tool acting this way: if the tester tries to build/install an up-to-date repo/branch, it won't be very time consuming.

      Why?

      Two reasons:

      1. The script downloads the source files using the gitPullOrClone function from RetroPie-Setup helpers.sh, and it won't download everything again if the local repo is already up-to-date. Thanks to the RetroPie-Setup modularity I could use that function and not "reinvent the wheel".
      2. The script gives the option to omit the make clean before make, then only those files that were changed and their dependents are compiled again (actually the script gives the option to not omit make clean, then I think we can consider this omition the default option). Thanks @Hex for this simple but wonderfully useful tip.
      • Useful topics
      • joystick-selection tool
      • rpie-art tool
      • achievements I made
      1 Reply Last reply Reply Quote 1
      • meleuM
        meleu
        last edited by

        Hey testers! There was a bug in the script when you were trying to set the official RetroPie ES as the default one (the C option in the main menu). I've just fixed it. So, please, update your scripts.

        If you used that feature to set the official ES as the default one, probably your ~/RetroPie-Setup/scriptmodules/supplementary/emulationstation.sh is non-existent/invalid. Here is how to fix it:

        cd ~/RetroPie-Setup/scriptmodules/supplementary
        rm emulationstation.sh
        wget https://raw.githubusercontent.com/RetroPie/RetroPie-Setup/master/scriptmodules/supplementary/emulationstation.sh
        

        Thanks and sorry for the inconvenience.

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

          ANOTHER UPDATE

          A small improvement to prevent problems as pointed by @TMNTturtlguy here.

          Current version: delta

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

            @meleu said in ES devs and testers, this tool is for you!:

            Current version: delta

            Was this an intentional, or unintentional Power Rangers reference?

            Creator of the Radiocade: https://retropie.org.uk/forum/topic/6077/radiocade

            Backlog: http://backloggery.com/lilbud

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

              @lilbud it's an intentional reference to the Greek alphabet :-)

              • Useful topics
              • joystick-selection tool
              • rpie-art tool
              • achievements I made
              lilbudL 1 Reply Last reply Reply Quote 3
              • HexH
                Hex
                last edited by

                @meleu I have a few more ideas. Should I post them here?

                Sent from 20,000 leagues under the sea.

                Powersaver Emulation station : https://github.com/hex007/EmulationStation
                ES dev script : https://github.com/hex007/es-dev/blob/master/es-tests.sh

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

                  @Hex PLEASE DO IT! :-)

                  Your tips are always very useful! You can also submit PRs if you prefer to write code than sentences and paragraphs (no need to do exhaustive tests, just submit the code and I test it before merge).

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

                    @meleu

                    A few changes that I have finished :

                    • Replaced gitcloneorpull/gitpullorclone for my tweaks.
                    • Added launch menu
                    • Removed default Install menu (will bring back (only on Pi) after testing)
                    • Changed all spaces to tabs
                    • Added dynamic processors for make (Faster builds on multicore processors)
                    • Added warning to Launch menu if Launching without building
                    • moved compilations to build directory.
                    • started removing dependence on Retropie scripts. (in works)
                    • Only use rpSwap if running on Pi 1/Zero
                    • Updated version to Zeta, skipping Epsilon (merging build) as you were going to incorporate my git tweaks and would have released it as Epsilon build.

                    Will these do? I might add some more. User requests are welcome

                    Sent from 20,000 leagues under the sea.

                    Powersaver Emulation station : https://github.com/hex007/EmulationStation
                    ES dev script : https://github.com/hex007/es-dev/blob/master/es-tests.sh

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

                      @Hex Those are great additions! Will you submit a PR?

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

                        I think rpswap is also used in other Pi versions in RetroPie setup. Surely it's not mandatory but unless there's a clear drawback do we need to remove it?

                        1 Reply Last reply Reply Quote 0
                        • HexH
                          Hex
                          last edited by Hex

                          @pjft rpSwap does nothing if Ram > what is asked (512). Pi 1 and Zero are the only two that need rpSwap.

                          Sent from 20,000 leagues under the sea.

                          Powersaver Emulation station : https://github.com/hex007/EmulationStation
                          ES dev script : https://github.com/hex007/es-dev/blob/master/es-tests.sh

                          meleuM 1 Reply Last reply Reply Quote 0
                          • HexH
                            Hex
                            last edited by Hex

                            @meleu I would submit it tomorrow morning. Its late here. Should I submit PR with version increment? Zeta or Epsilon?

                            Sent from 20,000 leagues under the sea.

                            Powersaver Emulation station : https://github.com/hex007/EmulationStation
                            ES dev script : https://github.com/hex007/es-dev/blob/master/es-tests.sh

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

                              @Hex Epsilon, I didn't have time to implement the git tweaks yet. Planned to add it tomorrow.

                              I'm now in the middle of a tweaking Carbon theme based on what we were talking about in the @TMNTturtlguy 's post :)

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

                                @Hex regarding to rpSwap, I think RetroPie-Setup does a good job about deciding if it really needs more swap: https://github.com/RetroPie/RetroPie-Setup/blob/master/scriptmodules/helpers.sh#L285-L313

                                But as we want to remove the dependence on those scripts, you can go ahead with your code.

                                I promess I'll organize the script and let it more readable, modularized a easier to improve. ;-)

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

                                  @meleu The goal of removing dependence on Retropie scripts is so that you can run it on Linux systems which neither needs those scipts nor the installation menu

                                  Sent from 20,000 leagues under the sea.

                                  Powersaver Emulation station : https://github.com/hex007/EmulationStation
                                  ES dev script : https://github.com/hex007/es-dev/blob/master/es-tests.sh

                                  meleuM 1 Reply Last reply Reply Quote 0
                                  • HexH
                                    Hex
                                    last edited by

                                    Can someone running Retropie on Pi 1/Zero let me know the output of this command uname -a

                                    Sent from 20,000 leagues under the sea.

                                    Powersaver Emulation station : https://github.com/hex007/EmulationStation
                                    ES dev script : https://github.com/hex007/es-dev/blob/master/es-tests.sh

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

                                      @Hex oh, I'm not in the same city as my raspi1...

                                      Maybe @obsidianspider or @edmaul69 can help with this...

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

                                        @Hex said in ES devs and testers, this tool is for you!:

                                        @meleu The goal of removing dependence on Retropie scripts is so that you can run it on Linux systems which neither needs those scipts nor the installation menu

                                        ASFAIK the only thing needed to change the default emulationstation is one single line on /usr/bin/emulationstation. The line that looks like this:

                                        "/opt/retropie/supplementary/es_pjft_retropie-screensaver-merge/emulationstation.sh" "$@"
                                        

                                        We can remove the dependency very easily a simple sed trick can deal with it. :-)

                                        I reused the code to finish a usable version of the script as soon as possible and don't lose the "timing" in the @Zigurana 's thread. :-)

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

                                          @Hex said in Help testing: Random Video Screensaver on Main Branch:

                                          To combine all of theme in one sentence you can have the command as such :
                                          git pull || git merge --abort && git pull -X theirs

                                          The || ensures that git merge --abort && git pull -X theirs only runs if git pull fails

                                          Oops. It didn't work as expected. Look what I mean:

                                          $ echo bla || echo ble && echo bli
                                          bla
                                          bli
                                          

                                          Got it?

                                          But there's no problem, I adjusted it here:

                                          if ! git pull; then
                                              git merge --abort && git pull -X theirs
                                          fi
                                          

                                          I'm making the git tweaks now (and creating my own version of gitPullOrClone), but you can still name your version as epsilon. :-)

                                          edit: git tweaks done.

                                          edit 2: I borrowed rpSwap code from RetroPie-Setup's helpers.sh, and now helpers.sh is not a dependency anymore.

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

                                            @meleu Damnit, I thought you were making a Power Rangers: S.P.D, Space Patrol Delta.

                                            Creator of the Radiocade: https://retropie.org.uk/forum/topic/6077/radiocade

                                            Backlog: http://backloggery.com/lilbud

                                            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.