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

    How To Create Favorites System in Retropie (yes system, not folder!)

    Scheduled Pinned Locked Moved Ideas and Development
    favoritessystememulationstaion
    57 Posts 10 Posters 16.9k 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.
    • mattrixkM
      mattrixk
      last edited by

      I don't know when I'll have a chance to test this, but thank you for all your work putting it together, and more people need to see it.

      I was considering setting up a System for "series/franchises" which would have sub folders for mario, batman, spiderman etc. Pro is keeping them all in one place so they don't clutter up the carousel. Con is I can't style each one separately.

      My ES themes: MetaPixel | Spare | Io | Indent

      lilbudL TMNTturtlguyT CapemanC 3 Replies Last reply Reply Quote 2
      • S
        Syhles @TMNTturtlguy
        last edited by Syhles

        @TMNTturtlguy
        This an awesome work around for something I extremely wish we had.

        How's it going being green?

        TMNTturtlguyT 1 Reply Last reply Reply Quote 1
        • lilbudL
          lilbud @mattrixk
          last edited by

          @mattrixk

          alt text

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

          Backlog: http://backloggery.com/lilbud

          1 Reply Last reply Reply Quote 1
          • TMNTturtlguyT
            TMNTturtlguy @mattrixk
            last edited by

            @mattrixk you could have fun with it! Make MARIO wear a batsuit and mix and match character costumes!

            1 Reply Last reply Reply Quote 0
            • TMNTturtlguyT
              TMNTturtlguy @Syhles
              last edited by

              @Syhles like we established yesterday, it's not always easy, but someone needs to do it! And @lilbud let's keep this post on topic! Nice Mario setup!

              0_1496494878217_876215FC-EB59-43B0-979C-51A77542F1A2-17037-0000120BA772B838.jpeg

              lilbudL 1 Reply Last reply Reply Quote 1
              • lilbudL
                lilbud @TMNTturtlguy
                last edited by

                @TMNTturtlguy

                0_1496495546545_482e283b-1ddd-4271-a8b1-8debad77d17f-image.png

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

                Backlog: http://backloggery.com/lilbud

                TMNTturtlguyT 1 Reply Last reply Reply Quote 0
                • TMNTturtlguyT
                  TMNTturtlguy @lilbud
                  last edited by

                  @lilbud did you have any issues setting up your MARIO System? Were the instructions pretty easy to follow?

                  lilbudL 1 Reply Last reply Reply Quote 0
                  • HoolyHooH
                    HoolyHoo
                    last edited by

                    @TMNTturtlguy Thanks for posting. I did this quite a while ago and decided to organize the "Favorites" into subfolders by consoles. (See this thread:https://retropie.org.uk/forum/topic/4233/sub-folders-default-emulators). All worked well but never really found a way to automate the emulator per rom used which can be a pain if you add lots of favorite roms. It would be great to somehow automate this with a script from the run command that would copy the rom to the "Favorites" console and set the emulator per rom automatically per rom.

                    TMNTturtlguyT 1 Reply Last reply Reply Quote 1
                    • lilbudL
                      lilbud @TMNTturtlguy
                      last edited by

                      @TMNTturtlguy Only having to manually select the emulator for each rom. I tried to create a batch script to automatically select the emulator for the rom extension. But it never worked... probably cause I don't know how to code.

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

                      Backlog: http://backloggery.com/lilbud

                      TMNTturtlguyT 1 Reply Last reply Reply Quote 1
                      • TMNTturtlguyT
                        TMNTturtlguy @lilbud
                        last edited by

                        @lilbud yeah, that is the downside. I tried to read through the runcommand file to see if I could figure it out, but it is still over my head and it was about 3am when input this post together. I am going to keep looking at this, but I just don't see how it will be possible. The one idea I have would be to write instructions that all .nes files always default to a certain emulator. That way we are not trying to match settings from another file/folder, but just generally stating that a certain file is always run by a certain emulator. Downside to this is that .zip files probably wouldn't work, the roms would have to be unzipped, for just this folder anyways.

                        Next issue at hand, gamelists. Since this is a new roms folder, it will need a new gamelist. My first thought is to manually create it by copying out each game entry from their original list and pasting into a new file. Then manually changing the image and video snap locations to add in the path to their original location so you don't have to have art on your system twice for the same rom.

                        Future wish idea, can I create a shortcut file in the favorites rom folder so it shows on the favorites game list and have the runcommand Follow the shortcut path and actually open the original rom from its original folder. Now this idea solves all issue! It would use the original emulator and artwork by default.

                        Problem is i am better at art and idea generation than writing code!

                        1 Reply Last reply Reply Quote 0
                        • TMNTturtlguyT
                          TMNTturtlguy @HoolyHoo
                          last edited by

                          @HoolyHoo said in How To Create Favorites System in Retropie (yes system, not folder!):

                          I did this quite a while ago and decided to organize the "Favorites" into subfolders by consoles. (See this thread:https://retropie.org.uk/forum/topic/4233/sub-folders-default-emulators).

                          Like I said in the top post, I assumed that this has been done before, I just didn't find anyone who shared how to actually accomplish it. See my reply to @lilbud about launching emulators. I think that the main benefit to setting up this type of folder is to have 20-30 roms in it, not hundreds....otherwise it defeats the purpose of favorites. I am also interested in the all MARIO and all TMNT possibilities, it won't be the end of the world to launch 15-20 roms and set the emulator one time. Any additional thought you have learned would be a huge plus. Thanks

                          1 Reply Last reply Reply Quote 1
                          • SanoS
                            Sano
                            last edited by

                            Very nice tweak.

                            Juste thinking of something similar, but that would unfortunately require huge modifications on ES :
                            Being able to modify the carrousel to switch components between Systems/Game Genres/Editors/Custom keyword (Mario, Sonic, ...)

                            This would probably require to replace the gamelist.xml files with a global DB, but could be so nice, and would easily allow to implement game search too...

                            My 2 cents.

                            1 Reply Last reply Reply Quote 0
                            • TMNTturtlguyT
                              TMNTturtlguy
                              last edited by TMNTturtlguy

                              Update: I am currently trying to figure out all the runcommand code and how we can get the emulator to autoselect so we don't have to manually set it up. Here is what i think i have determined so far:

                              /opt/retropie/supplementary/runcommand/runcommand.sh tells us that if "sys" is called out then we use argument 3 = which says to look to the favorites folder we created in /opt/retropie/configs/. Nothing earth shattering figured out here. If we keep looking down in the file we find the function default_emulator() { Again, i don't know what i am doing here, but it looks that this is telling us to go to the folder we created in /opt/retropie/configs/ for favorites and look at the emulators.cfg

                              In emulators.cfg we list out all the emulators that can run in our system. We can also call out ONE single emulator to run as the default launch emulator. the runcommand.sh file says we can do this by stating default = "emulatorname" for example default = "lr-mame2003"

                              So now what i need to try to understand is if we can create code in the runcommand.sh that allows us to do an ifstatement that says "if rom = .nes " Then:

                              local key
                              local config="$EMU_SYS_CONF"
                              
                              case "$type" in
                                  emu_sys)
                                      key="default NES"
                                      ;;
                              

                              Then we can go into our favorites/emulators.cfg and add the following: default NES = lr-fceumm

                              I am probably waisting a lot of peoples time here, so i apologize. I am sure this is much more complex than what I am thinking, my hope is that this might jump start a few ideas that others can expand upon or point me in the right direction. OR tell me I am way off base! Thanks for your time.

                              lilbudL 1 Reply Last reply Reply Quote 0
                              • lilbudL
                                lilbud @TMNTturtlguy
                                last edited by

                                @TMNTturtlguy Here is the script I tried to write

                                #!/usr/bin/env bash
                                
                                for file in /tmp/*; do
                                if echo "$file" | grep -q '.gb$'; then
                                /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-
                                gambatte/gambatte_libretro.so --config /opt/retropie/configs/mario/retroarch.cfg "$file"
                                elif echo "$file" | grep -q '.nes$'; then
                                /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-
                                fceumm/fceumm_libretro.so --config /opt/retropie/configs/mario/retroarch.cfg "$file"
                                elif echo "$file" | grep -q '.sfc$'; then
                                /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-
                                snes9x2010/snes9x2010_libretro.so --config /opt/retropie/configs/snes/retroarch.cfg 
                                "$file"
                                fi
                                done
                                

                                If anyone is good with bash, tell me what i did wrong.

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

                                Backlog: http://backloggery.com/lilbud

                                TMNTturtlguyT 1 Reply Last reply Reply Quote 0
                                • TMNTturtlguyT
                                  TMNTturtlguy @lilbud
                                  last edited by

                                  @lilbud I think i might have it for you, right now you are telling the script to write the launch for the .gb files to emulator list, that list does not actually run/startup the emulator. The emulator set as default is what will launch unless the rom itself has directions save to /opt/retropie/configs/all/emulators.cfg

                                  What we could do is create the script to add the following output for each rom in your mario folder. Here is what the required output is:

                                  mario_romname = "emulator"
                                  for example my turtles system - TMNT
                                  TMNT_tmnt22p = "mame4all"

                                  So all the script needs to do is look in your mario folder for file types .nes and then output mario_supermario = "lr-fceumm" to /opt/retropie/configs/all/emulators.cfg

                                  I am not good with scripts, but maybe you can test writing this and report back?

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

                                    Hey guys, I didn't read all the thread, sorry. But as far as I understood the OP is about creating a theme for favourites, not implementing a way to manage its contents.

                                    If the user is supposed to manage files/gamelist.xml manually I would suggest to use symbolic links (or full path in gamelist.xml).

                                    But why don't we test the branch of this PR?: https://github.com/RetroPie/EmulationStation/pull/131

                                    • Useful topics
                                    • joystick-selection tool
                                    • rpie-art tool
                                    • achievements I made
                                    lilbudL TMNTturtlguyT 2 Replies Last reply Reply Quote 2
                                    • lilbudL
                                      lilbud @TMNTturtlguy
                                      last edited by

                                      @TMNTturtlguy said in How To Create Favorites System in Retropie (yes system, not folder!):

                                      mario_supermario = "lr-fceumm

                                      Shouldn't that say:

                                      mario_nes = "lr-fceumm" ?

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

                                      Backlog: http://backloggery.com/lilbud

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

                                        @meleu yeah, but we get sidetracked easily. Could you look at the code above and see what's wrong?

                                        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 sure. Will do as soon as I get home.

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

                                            @lilbud said in How To Create Favorites System in Retropie (yes system, not folder!):

                                            Shouldn't that say:
                                            mario_nes = "lr-fceumm" ?

                                            no, it should say the name of your system folder: mario then then name of the rom: supermario = emulator

                                            I am just using supermario as the name of your rom

                                            lilbudL 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.