Announcing Pegasus Frontend
-
@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 exampleAdd 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! -
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.
-
Weekly update! I was working on the graphical metadata editor, might get it finished this week. Here's how it looks at the moment:
-
@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. -
@KryPtAlIvIaN Could you upload the ES2 file that produces such problems?
-
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 -
@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.
-
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.
-
@fluffypillow Adjustable columns in stock theme when?:)
I guess the pi isn't that powerful to show this many games at once.
-
@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.
-
@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.
-
@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. -
@Darksavior ah you'd like to set it per-platform, that's also possible. Change the code like this:
property real columnCount: { if (platform.shortName == "arcade") return 2; if (cellHeightRatio > 1.2) return 5; if (cellHeightRatio > 0.6) return 4; return 3;
and similarly for other platforms.
@5schatten I'd like to, as soon as there are theme settings. There's also the plan to improve the video playback in general. In the meantime, you could edit the source as well, by removing this line. It brings up the problem of how you start the video though...
-
@fluffypillow can you share Horizon theme to test it?
-
-
@fluffypillow
well video playback works fine on other platforms or at least they don't run hot as the Pi does. The main problem for me is that even though I added packages like this https://github.com/5schatten/LibreELEC-RR/blob/libreelec-9.x-rr/packages/5schatten/depends/gst-omx/package.mk Qt does not really care about the video acceleration.ES for examples uses VLC which can be patched to use MMAL https://github.com/RPi-Distro/vlc/blob/stretch-rpt/debian/patches/mmal_8.patch to handle video acceleration und runs quite fine.
So it would be great if you could find a way to either utilize these vendor packages or if you could change the way gst-libav handles video playback because normally the ffmpeg package should use MMAL for playback too.
-
@5schatten I did some experiments with gstreamer some time ago, but the hardware acceleration didn't work well back then (and I suppose it doesn't now either). I'd like to write a custom media backend for Qt common on most platforms (which could be even VLC), but that's probably going to be a bit larger task. At the moment I'm trying to focus on functional issues, features, then documentation, but once they're done I do plan to improve this part too (it has some problems on other platforms too).
-
Hello! thanks again @fluffypillow as your frontend is really performing amazingly well and I have no single crash for weeks now that I completey got rid of ES2. Well done! Below my really last comments on what's missing to make it even better from the get-go.
- to echo @5schatten I agree that there's an issue with loop playback of video on the Pi. If you leave PE as is your Pi will crash after a while due to load/temperature. I'm going to test with another package I've found here. I have not tested yet. As a workaround I did change this line to prevent the playback loop. Video will play once and then stop. Just move to another video and get back to it will trigger playback once more. Not the most elegant but it works!
=> question: any chance to define somewhere the video has to loop just 2 or 3 times max (or even better to have an option in the settings)?
playbackMode: Playlist.Sequential
-
by default whenever a video asset is being set in the "metadata.txt" file but doesn't exist, this will crash Pegasus. In fact it doesn't crash yet it get stuck as it endlessly tries to read the non-existing file. Any way to prevent this?
=> UPDATE: changing the playbackMode to the one above #1 solved this. I suggest to default to that playbackMode at least for Pi users to prevent any crash and overheat in Pegasus. -
A "Restart" option in the Quit menu would be awesome. To reboot PI for any single change is a bit tiresome :)
-
Metadata. I did spend quite lot of time to ensure all metadata for every single game were correct. That's why I felt a bit off not to have the genre, players # as well as release date on the right panel. I did some search and found those lines. I did the following change to add player # below the dev/publisher element.
However for the release date I've failed to understand the logic. First in the code something is wrong as it saysgame.year
instead ofgame.release
as expected from the doc. All my game entries do have a property like thisrelease: <date in YYYY-MM-DD format>
. I have to say I've converted my ES2 gamelists using the online converter (which is great!). Now if I go ahead and change withgame.release
I got a super long date including seconds, minutes etc.
=> I'd love to simply add the release date in the current format (YYYY-MM-DD) or even better in the format I'd like (dd mmm yyyy). How to achieve that please (if possible)?
if (game.genre) { if (text_tmp) text_tmp += "\u000A"; text_tmp += game.genre; } if (game.players) { if (text_tmp) text_tmp += "\u000A"; if (game.players > 1) text_tmp += game.players + " players"; else text_tmp += game.players + " player"; } return text_tmp;
- Aspect ratio. By default video doesn't fill the whole "rectangle" they have been assigned to. I have black borders left/right. All videos rely on the 640x480 resolution. I was glad to see at this location an option to move to
fillMode: VideoOutput.Stretch
instead. That's cool! However I'd like to take it to the next level as this doesn't work well for vertical shmups for instance. In that case the video is... well... stretched :)
=> My idea was to seek for a way to detect the height and width of a video. Then if height > width we keep thefillMode: VideoOutput.PreserveAspectFit
otherwise we go with Stretch. I suspect this is either too simple or too complicated :) Anyway I'm quite new to Qml/Qt and I have little time so I didn't investigate further.
That's all for today :)) Thank you again for this amazing frontend. Love it!
cheers, - to echo @5schatten I agree that there's an issue with loop playback of video on the Pi. If you leave PE as is your Pi will crash after a while due to load/temperature. I'm going to test with another package I've found here. I have not tested yet. As a workaround I did change this line to prevent the playback loop. Video will play once and then stop. Just move to another video and get back to it will trigger playback once more. Not the most elegant but it works!
-
@fluffypillow Thanks, that did it. Now I wonder how much more I can edit. I fell in love with the switch nes theme so I'm fooling around with it now. I still have to figure out how to move the game name next to that little area underneath the systems.
It is a bit smoother with ~18 (+3 barely shown) games shown compared to the ~30 before. I'm wondering, what part of the game art is causing the slowdown? The resolution size? Filesize? Logo/screenshot art?
Hopefully later you can finally squash that bug where art overlaps each other and have to scroll back and forth to fix it. Here's the bug in action:
-
Hello @Darksavior!
I did somehow fix that issue from happening by resizing all my pics to the same size. I'm using online tool like Bulk to achieve that in almost no time. If a single image has not the same dimension as others you could have the overlap or weird displays issue.
Also another way - in addition to resizing your photos - I did separate collections. For instance images for SNES (US) and SFC (Japan) are not using the same size at all. I did then a SNES collection with all images/boxarts using a single size and did the same for SFC collection.
No more issue after that! Hope this helps.
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.