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

    [dev] Little favorite launcher (third attempt - ready for testers!) v.055! - last release I am finished

    Scheduled Pinned Locked Moved Ideas and Development
    favoritesfavouriteslaunch menu
    20 Posts 5 Posters 5.1k 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.
    • cyperghostC
      cyperghost
      last edited by cyperghost

      pushed code to v0.55 now - my work is done!
      Source code ist in posting #3, feel free to use'n'compile

      Changes

      • FAV files are called via runcommand now (better for individual rom settings or individual launching screens)
      • Filename for favs look more beautifull with 'SYSTEM' - ROMname naming
      • Take use of runcommand_systems.txt these are the same runcommands as found in es_system.cfg (read point 1)
      • lvl-create acts as FAV creater and as FAV launcher the function will be declared via command(1)
      • if system is not available in list (nes, megadrive...) then try to launch the commandlineparameter that runcommand usually uses for that rom
      • if that is also a failure than try to lauch fav file via bash call
      • for interested people... basic is a very good language for manipulating file strings take this as example
      • I can't delete FAV files that easy. I could make a flip flop if I can create it like "If fav file can be found then delete it else create fav file" - That's stupid!

      Config es_systems.cfg

      Add new system like done in the code box and use lfl-createas launcher for ROM files:

        <system>
          <name>favorites</name>
          <fullname>Favorites</fullname>
          <path>/home/pi/RetroPie/roms/fav123456789012345</path>
          <extension>.fav .FAV</extension>
          <command>/opt/retropie/supplementary/runcommand/lfl-create %ROM%</command>
          <platform>all</platform>
          <theme>favorites</theme>
        </system>
      

      Please contribute if you use this software
      it is tended as free but please respect the work of others

      IDE was nano :D
      So the code looks a bit messy :D

      Content of created FAV file GAMEGEAR - Addams Family, The (U) [!].fav

      /home/pi/RetroPie/roms/gamegear/Addams Family, The (U) [!].gg
      gamegear
      /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-genesis-plus-gx/genesis_plus_gx_libretro.so --config /opt/retropie/configs/gamegear/retroarch.cfg "/home/pi/RetroPie/roms/gamegear/Addams Family, The (U) [!].gg"
      

      Content of runcommand_systems.txt that has to be located into FAV-folder

      /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ amstradcpc %ROM%
      /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ arcade %ROM%
      /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ atari2600 %ROM%
      /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ atari7800 %ROM%
      /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ atarilynx %ROM%
      /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ fba %ROM%
      /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ fds %ROM%
      /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ gamegear %ROM%
      /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ gb %ROM%
      /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ gba %ROM%
      /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ gbc %ROM%
      /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ mame-libretro %ROM%
      /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ mame-mame4all %ROM%
      /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ mastersystem %ROM%
      /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ megadrive %ROM%
      /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ msx %ROM%
      /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ n64 %ROM%
      /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ neogeo %ROM%
      /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ nes %ROM%
      /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ ngp %ROM%
      /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ ngpc %ROM%
      /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ pcengine %ROM%
      bash %ROM%
      /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ psp %ROM%
      /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ psx %ROM%
      sudo /home/pi/RetroPie-Setup/retropie_packages.sh retropiemenu launch %ROM% &lt;/dev/tty &gt;/dev/tty
      /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ sega32x %ROM%
      /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ segacd %ROM%
      /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ sg-1000 %ROM%
      /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ snes %ROM%
      /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ vectrex %ROM%
      bash %ROM%
      
      pjftP 1 Reply Last reply Reply Quote 2
      • pjftP
        pjft @cyperghost
        last edited by

        @cyperghost My, you really like to suffer, editing all this in nano :) I'm sure you'd even have emacs, if you do want to do everything on the Pi!

        You might be better off coding on your computer and copying the files to the pi for compilation, though.

        cyperghostC 1 Reply Last reply Reply Quote 0
        • cyperghostC
          cyperghost @pjft
          last edited by

          @pjft Most of the work was done in nano.
          Of course I made some file testing like this sysbash=mid(runcommand,1,InStr(runcommand, "%ROM%")-1)+chr(34)+rom_name+chr(34)+Mid(runcommand,InStr(runcommand, "%ROM%")+Len("%ROM%"),Len(runcommand)) on a windows mashine but inserting was done via nano!

          So the code locks messy but it is structered via case select for

          1. Acting as creator for FAV files
          2. Acting as lauchner for FAV files

          Is there a need for the binary?

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

            @cyperghost hello mate! I was bothering BuZz to implement a feature in runcommand that I think would help you here. Such feature is now part of RetroPie-Setup.

            I think you can use your method described in the OP without messing the "official" runcommand, just place your script at /opt/retropie/configs/all/runcommand-menu/.

            See the conversation here to get details. I'll try to update the runcommand wiki accordingly soon.

            • Useful topics
            • joystick-selection tool
            • rpie-art tool
            • achievements I made
            pjftP cyperghostC 2 Replies Last reply Reply Quote 3
            • pjftP
              pjft @meleu
              last edited by

              @meleu Well done good sir. Thanks for helping move the community's initiatives forward!

              1 Reply Last reply Reply Quote 1
              • cyperghostC
                cyperghost @meleu
                last edited by cyperghost

                @meleu Sorry my friend that does not work!
                I can't create a FAV on every time I run a ROM.
                I need an exact entrypoint if I want to change some settings and this entry point can only be the runcommand.sh in it's selection mode. I developed this software a bit more on to version 0.65, it now deltetes created fav by toggle check fileexistance....

                I fully understand buzz because the runcommand is his baby - and I just implanted an alien egg in. I think it's okay for personal purpose and for a few freaks but I have the deep hope that someone creates sometimes a better system.

                Personally this laucher is very cool, because you can edit FAV files and can easily change emumashine call. I created yesterday CPS1 und CPS2 systems. Almost all CPS1 run in mame-libretro almost all CPS2 run in FBA.

                But one or two romes of CPS1 do only run in FBA... But I have no further game selection out of ES because the CPS1 system is marked as mame-libretro. So you pick out that little coconut via FAV menu and just toggle from mame to fba by editing FAV file second line :)

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

                  @cyperghost said in [dev] Little favorite launcher (third attempt - ready for testers!) v.055! - last release I am finished:

                  @meleu Sorry my friend that does not work!
                  I can't create a FAV on every time I run a ROM.
                  I need an exact entrypoint if I want to change some settings and this entry point can only be the runcommand.sh in it's selection mode.

                  I think you misunderstood what that PR really is. It's a way to launch a user script during runcommand only if user invoke runcommand menu and choose the option to launch the script. IMHO your method to create those .fav files fits perfectly in this feature.

                  Sorry if I'm not being very clear, I'll try to describe it better when I update the the wiki. ;-)

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

                    Ah understand....
                    Yes that should work....
                    Am I able to select specific binaries/bash schript? Or does they run all if they are called?

                    cyperghostC 1 Reply Last reply Reply Quote 0
                    • cyperghostC
                      cyperghost @cyperghost
                      last edited by

                      @meleu Wonderfull! That's really a hit! Works like a charm. Now I can add two options....
                      Add Favourites and Delete Favourites!

                      1 Reply Last reply Reply Quote 1
                      • cyperghostC
                        cyperghost @meleu
                        last edited by

                        @meleu even the EXIT codes work as they should... nice work!

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

                          @cyperghost BuZz is a genius! :-)

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

                            @meleu I've bumped the fav-launcher to v0.85 now
                            Maybe you can give it a chance. With the User Menu it is now possible to add more than one FAV-system

                            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.