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

    Announcing Pegasus Frontend

    Scheduled Pinned Locked Moved Ideas and Development
    frontendpegasusc++developmentqml
    1.7k Posts 145 Posters 5.1m 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.
    • fluffypillowF
      fluffypillow @AndersHP
      last edited by

      @AndersHP Sure, but you still have to download it first. You can

      cd ~/.config/pegasus-frontend/themes/
      wget https://github.com/mmatyas/pegasus-theme-grid/archive/master.zip
      unzip master.zip
      nano pegasus-theme-grid-master/layer_gameinfo/PanelRight.qml
      

      and edit the file there.

      AndersHPA 1 Reply Last reply Reply Quote 0
      • K
        KryPtAlIvIaN
        last edited by

        Quick question. If someone wanted to use an xbox one controller with pegasus, would it have native support or require you to do something like exit and launch emulationstation to program the controller and hotkey?

        Thanks!

        fluffypillowF 1 Reply Last reply Reply Quote 0
        • fluffypillowF
          fluffypillow @KryPtAlIvIaN
          last edited by

          @KryPtAlIvIaN While it should work out of the box in Pegasus, the emulators unfortunately won't pick up the gamepad configuration yet. At the moment it is still necessary to configure in EmulationStation too.

          K 1 Reply Last reply Reply Quote 0
          • K
            KryPtAlIvIaN @fluffypillow
            last edited by

            @fluffypillow Thanks!

            K 1 Reply Last reply Reply Quote 0
            • K
              KryPtAlIvIaN @KryPtAlIvIaN
              last edited by

              @KryPtAlIvIaN said in Announcing Pegasus Frontend:

              @fluffypillow Thanks!

              If someone used a wired switch controller, they could get it to work by configuring it with emulation station first, and then pegasus will read the same config file?

              Some of these questions I ask, I don't mind making up a Q&A for your site since you already took the time to answer these.

              fluffypillowF 1 Reply Last reply Reply Quote 0
              • fluffypillowF
                fluffypillow @KryPtAlIvIaN
                last edited by

                @KryPtAlIvIaN No, Pegasus doesn't read ES's input config files, it would be necessary to configure it in both programs.

                Generally gamepad support is not really perfect at the moment, I'd like to improve it in the future (it's just a bit complicated with so many platforms). Eventually support for sharing the button config with the emulators would be also possible (and maybe with ES too).

                I'm fine with a Q&A, just note that Pegasus is still under development so things may change quickly :)

                1 Reply Last reply Reply Quote 0
                • B
                  bleuge
                  last edited by bleuge

                  New user here, I am trying to build a Pegasus portable+Retroarch in Windows10.
                  Sorry if this is too long :D

                  I currently launch Pegasus with --portable, this is my folder structure:

                  \config
                  p.bat
                  pegasus-fe.exe
                  \ra... retroarch unpacked here, updated, cores downloaded, etc
                  README.md
                  \roms
                  \roms... roms in subfolders
                  \skraper... skraper.net i am using here
                  \themes

                  My game_dirs.txt (works nice this way)

                  ./roms/zxspectrum
                  ./roms/snes
                  ...

                  The problem I am having is with paths in the launcher I think.
                  I use this for example for Snes

                  launch: "..\ ..\ra\retroarch.exe" "-L i:/00noah2/ra/cores/snes9x_libretro.dll" "{file.path}"

                  Retroarch is launched ok because when Pegasus launch it, it's ran from the rom folder where you have the roms are, (check cwd config option).

                  But it seems RA can't see the dll once launched.
                  I thought the default folder could be \ra instead of \roms\snes, but don't work

                  launch: "..\ ..\ra\retroarch.exe" "-L .\cores\snes9x_libretro.dll" "{file.path}"

                  And get the same error:

                  [ERROR] RetroArch is built for dynamic libretro cores, but libretro_path is not set. Cannot continue.
                  [ERROR] Fatal error received in: "init_libretro_sym()"

                  Now lets see variations in the launch line, the point here are the "s
                  This launchs RA ok
                  launch: "..\ ..\ra\retroarch.exe" "-L .\cores\snes9x_libretro.dll" "{file.path}"
                  log:

                  2019-05-13T20:24:17 [i] Executing command: [I:/pegasus/ra/retroarch.exe,-L ..\..\ra\cores\snes9x_libretro.dll,I:\pegasus\roms\snes\3x3 Eyes - Juuma Houkan (Japan)-english.zip]
                  2019-05-13T20:24:17 [i] Working directory: I:/00noah2/ra

                  But then RA only exits, cant' see the dll, I've tried ....\ra\cores instead of .\cores (thinking that RA changes default folder once it's ran), but the same problem.

                  This faults Pegasus (werfault is called in my machine and it exits)
                  launch: "..\ ..\ra\retroarch.exe -L .\cores\snes9x_libretro.dll" "{file.path}"
                  log:

                  2019-05-13T20:35:14 [i] Working directory: I:/pegasus/ra/retroarch.exe -L /cores
                  2019-05-13T20:35:14 [w] Could not launch I:/pegasus/ra/retroarch.exe -L /cores/snes9x_libretro.dll. Either the program is missing, or you don't have the permission to run it.

                  It messes completely folders and executable to launch?

                  Finally, this also exits pegasus
                  launch: "..\ ..\ra\retroarch.exe -L .\cores\snes9x_libretro.dll {file.path}"
                  log:

                  2019-05-13T20:36:57 [i] Working directory: I:/pegasus/ra/retroarch.exe -L /cores/snes9x_libretro.dll I:/pegasus/roms/snes2019-05-13T20:36:57 [w] Could not launchI:/pegasus/ra/retroarch.exe -L /cores/snes9x_libretro.dll I:/pegasus/roms/snes/3x3 Eyes - Juuma Houkan (Japan)-english.zip`. Either the program is missing, or you don't have the permission to run it.

                  Has anyone build a portable pegasus+ra installation? how did you make RA to work with non fixed paths?

                  edit: I've also used this in settings file
                  cwd: ..\ ..\ra
                  launch: "retroarch ..."
                  but paths got messed again

                  @fluffypillow some other things you may consider,

                  Pegasus it's eating 30% of my i5 4cores, just idling? Nothing I care, but ? Some debug stuff?

                  portable mode in settings.txt?

                  general.portable: true

                  Would be nice.

                  I got a lot of problems scraping, I finally used Skrape.net program with generic scraping. But for example videos didn't play with gameOS theme. After some digging in source code (providers code), I found how you expected some folder names, and then map them to your stuff. This solved my problem:

                  SkraperAssetsProvider::SkraperAssetsProvider(QObject* parent)
                  : Provider(QStringLiteral("Skraper"), PROVIDES_ASSETS, parent)
                  , m_asset_dirs {
                  // NOTE: The entries are ordered by priority
                  { AssetType::ARCADE_MARQUEE, QStringLiteral("screenmarquee") },
                  { AssetType::ARCADE_MARQUEE, QStringLiteral("screenmarqueesmall") },
                  { AssetType::BACKGROUND, QStringLiteral("fanart") },
                  ...etc

                  I think it could be useful for other users to put this in the documentation, as I spent a lot of time googling pegasus scraping and found many people having problems with folders. Also with others providers.

                  If a launch process lasts 1-2 seconds, obviously something went wrong.
                  Instead of showing again the list of games, maybe it's useful to report some error, and instead of just logging it to file, show last lines of log in a dialog or something like that. Maybe this is just too user friendly? But I think it could help a lot in complex installations.

                  fluffypillowF 1 Reply Last reply Reply Quote 0
                  • fluffypillowF
                    fluffypillow @bleuge
                    last edited by

                    @bleuge Hi, "-marks in commands mean that things between the "s should be treated as a single argument to the launched program. They are often used to avoid issues when a path contains spaces. Now RetroArch's -L is a standalone parameter; instead of

                    launch: "..\..\ra\retroarch.exe" "-L i:/00noah2/ra/cores/snes9x_libretro.dll" "{file.path}"

                    it should be

                    launch: "..\..\ra\retroarch.exe" -L "i:/00noah2/ra/cores/snes9x_libretro.dll" "{file.path}"

                    Pegasus it's eating 30% of my i5 4cores, just idling? Nothing I care, but ? Some debug stuff?

                    Haven't experienced that personally, but I'd be interested whether it happens to other Windows users. Also different themes may have different system requirements as well.

                    portable mode in settings.txt?

                    Not possible to switch that during runtime due to platform file system differences :( I was thinking about either including a portable-mode .bat file though, or improving the documentation for this.

                    I got a lot of problems scraping

                    Pegasus supports these kinds of directory layouts:

                    • Per-game directories: assets for the games are looked at <romdir>/media/<gamename>/<assettype.ext>. You can find an example and list of accepted file names here. A visual example of the asset types is here.
                    • Per-asset-type directories (aka Skraper): assets for the games are stored at <romdir>/skraper (or media)/<assettype>/<gamename.ext>. The directory layout is automatically created by Skraper. Support for this layout can be turned off in the settings menu.

                    It is also possible to manually define assets in the metadata files. Also if enabled, the assets of other programs like EmulationStation or Steam are picked up automatically.

                    I think it could be useful for other users to put this in the documentation

                    I agree the documentation would need some work, hope I'll have some time eventually.

                    If a launch process lasts 1-2 seconds, obviously something went wrong

                    Nah some things just take time, especially if networking (eg. Steam) is involved or with a large number of games.

                    instead of just logging it to file, show last lines of log in a dialog or something like that

                    Yes, I'd like to do that eventually!

                    B 1 Reply Last reply Reply Quote 0
                    • B
                      bleuge @fluffypillow
                      last edited by bleuge

                      @fluffypillow Thanks for all the information!
                      If I got to put a working portable pegasus+ra I'll put the info here for other users.

                      Edit: works! thanks for clarification.
                      These are my folders, you can change names etc...
                      .\pegasus : put here pegasus files, launch pegasus with --portable, or make a bat file
                      .\ra : unpack retroarch here, download cores, etc...
                      .\roms\ : roms in subfolders here, you can use a Retropie rom folders for example

                      Add roms subfolders this way in \config\gamedirs.txt file
                      .\roms\nes
                      .\roms\snes
                      etc...

                      Launch line in metadata.pegasus.txt files in each rom subfolder, this is for example from my Snes subfolder

                      collection: Super Nintendo Entertainment System
                      description: Super Nintendo Games
                      extension: zip
                      launch: "..\..\ra\retroarch.exe" -L ".\cores\snes9x_libretro.dll" "{file.path}"
                      

                      Of course you'll need to change the core for each rom platform.

                      I've also scraped with skraper.net app, @fluffypillow has a short guide about this, I only needed to change some folder names after skraper end. I am using gameOS theme working with videos, etc. I can make a short guide about this because required some skrape.net tweaking...

                      Now you can launch pegasus from a pendrive, an external hd, any folder, etc...
                      Happy gaming!

                      1 Reply Last reply Reply Quote 0
                      • fluffypillowF
                        fluffypillow
                        last edited by

                        As for the weekly update, no changes in Pegasus due to lack of proper time. However I've started planning and doing some initial work on a graphical metadata file editor, might get released soon.

                        1 Reply Last reply Reply Quote 2
                        • fluffypillowF
                          fluffypillow
                          last edited by

                          Weekly update! I was working on the graphical metadata editor, might get it finished this week. Here's how it looks at the moment:

                          screenshot

                          K 1 Reply Last reply Reply Quote 4
                          • K
                            KryPtAlIvIaN @fluffypillow
                            last edited by

                            @fluffypillow
                            I'm having issues with your converter-Gameboy Color is taking a ES2 file with video tags and converting with just a jpeg file and no video.

                            fluffypillowF 1 Reply Last reply Reply Quote 0
                            • fluffypillowF
                              fluffypillow @KryPtAlIvIaN
                              last edited by

                              @KryPtAlIvIaN Could you upload the ES2 file that produces such problems?

                              1 Reply Last reply Reply Quote 0
                              • L
                                luis0henrique
                                last edited by luis0henrique

                                Well, hello.. I've got a little problem: I can't run Pegasus in my Windows 7. I double-click the "pegasus-fe.exe" file, it shows the loading bar but it freezes and crashes. Do I need to do something before opening the app or something? This frontend looks so great man

                                Btw, here's the log: https://pastebin.com/EuZJswDS
                                I've also got 3 ".dmp" files at "AppData\Local\CrashDumps" if it is important:
                                https://drive.google.com/drive/folders/1KovTQfF6ZSdWgzLtYEDQpuy57-oAM-De?usp=sharing

                                fluffypillowF 1 Reply Last reply Reply Quote 0
                                • fluffypillowF
                                  fluffypillow @luis0henrique
                                  last edited by

                                  @luis0henrique Hi, someone also just reported a very similar bug, so maybe that's what happened to you too. It seems this is caused by certain GOG games, which make Pegasus crash on Windows. Unfortunately I don't know which ones yet (maybe some newer games?), but in case you'd be willing to share your list of installed GOG games, that'd greatly help with fixing this bug.

                                  In case someone else also runs into this, here's the GitHub issue, also with a workaround until it's fixed.

                                  1 Reply Last reply Reply Quote 0
                                  • fluffypillowF
                                    fluffypillow
                                    last edited by

                                    Weekly update! The metadata editor is now available and ready for testing. Give it a try!

                                    I've also started looking into this GOG bug but haven't managed to fix it yet. Will take a deeper look not that the editor is out.

                                    DarksaviorD 1 Reply Last reply Reply Quote 1
                                    • DarksaviorD
                                      Darksavior @fluffypillow
                                      last edited by

                                      @fluffypillow Adjustable columns in stock theme when?:)
                                      I guess the pi isn't that powerful to show this many games at once.
                                      20190526.jpg

                                      fluffypillowF 1 Reply Last reply Reply Quote 0
                                      • fluffypillowF
                                        fluffypillow @Darksavior
                                        last edited by

                                        @Darksavior no theme settings yet, but you can change it in the sources: replace these lines with

                                        property real columnCount: 2
                                        

                                        (or your preferred column count). I think 1 makes images a bit too big, but 2 might look nice for your setup.

                                        DarksaviorD 1 Reply Last reply Reply Quote 1
                                        • DarksaviorD
                                          Darksavior @fluffypillow
                                          last edited by Darksavior

                                          @fluffypillow Wouldn't that make all columns for each system to be "2"? Sorry, I'm not familiar in editing this stuff. Ehh, it's fine. I can wait for it to mature and be a bit more user friendly.

                                          fluffypillowF 1 Reply Last reply Reply Quote 0
                                          • 5schatten5
                                            5schatten
                                            last edited by

                                            @fluffypillow
                                            Can you add an option to disable video previews in settings? For example my RPi can play the previews but unfortunately it does not use gst-omx or the libav video acceleration provided by ffmpeg and runs quite hot after a short time.

                                            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.