Announcing Pegasus Frontend
-
@PlayingKarrde well that's an interesting topic; personally I'd prefer the "one program does one thing" kind of approach, but I do see that'd be uncomfortable in a frontend's case (similarly to the lack of built-in scraper). So in the long term, yes, it'd be a feature nice to have, but at the moment I still see several areas in our current state which could be improved before then.
Creating a small management tool sounds like a fun project though, so I'll likely start with that first. Then, if it turns out well, it could be also merged into Pegasus itself eventually.
@AndersHP yeah I was trying to group a bunch of breaking changes together this time between Alpha 10 and the next, Alpha 11 to get them done (with Android TV being a small extra). With this many changes I certainly plan to write a summary page before the stable release as well.
Most of the last update changes only a few points of the existing format's text style. The major difference however is that Pegasus' metadata format now support multiple files per game. If you have lots of multi-disc games for example, you can make them appear only once, as a single game, then select the actual disc on launch. It could be used for other creative things, like listing arcade clones under one main game too.
There are still a few missing bits though, so no need to hurry. You also don't need to write files manually from scratch, you can use the format converter tool linked above to help converting between the formats. Pegasus' format is kind of like ES' systems config and gamelist in one file, but local to a particular directory.
runcommand
I'm afraid I can't test it this weekend, but I can take a look next week.
-
@fluffypillow said in Announcing Pegasus Frontend:
Creating a small management tool sounds like a fun project though, so I'll likely start with that first.
I think that would be ideal. I sort of agree with your philosophy of one program does one thing well, but I'm mainly thinking about the people who run this from Pis or Android devices where having another tool isn't really possible. An external tool would be fantastic for me personally though.
-
No updates this week because I've got cold :/
-
@AndersHP sorry for the late reply,
runcommand
seems to work fine for me, using Pi3 + Logitech F310. The button layout was slightly off though, but that's probably fixable. -
No updates this week either, but likely there'll be in the next one! I've also started experimenting with the new Qt release, the builds are complete but I'll want to test them on real hardware before pushing an update.
On a related note, I also plan to make some maintenance-related changes:
- Raspberry: Debian Wheezy reached its end-of-life last year, and thus it's no longer supported (did that even work?). By "not supported" I mean the official builds will likely not run out of the box there, but you can still build it manually if you wish. Jessie may continued to be supported on ARM.
- Desktop Linux: Ubuntu 14.04 reaches its end-of-life soon, and it's no longer supported (16.04 still is). For other desktop distros: the Linux release now requires C++14 support (GCC 5.1+ or Clang 3.4+). Shouldn't be a problem in 2019, but do tell me if it's an issue.
- Maintainers: In the future, Qt 5.12 will become the minimal required Qt version for Pegasus. (If you aren't building Pegasus from source, this doesn't affect you)
-
@fluffypillow Have you had any luck with implementing the other video wrapper you were looking into? Performance is still an issue with me on all my machines running Windows and I can't help but feel it's due to k-lite.
-
@PlayingKarrde not yet, that'll be quite a big topic to work on. It's surprising that the Windows performance is so slow though, I'll see if I can improve it somehow. You could also try selectively installing parts of K-Lite, perhaps there are some components that slow down the rest?
-
@fluffypillow said in Announcing Pegasus Frontend:
You could also try selectively installing parts of K-Lite, perhaps there are some components that slow down the rest?
To be honest I wouldn't know where to start. K-lite has so many options when installing I generally just go for defaults.
-
Wow, really cool! You have far too much time on your hands, ha ha. Ah, I see the Cuphead game in your screenshots -- coolest looking game.
-
Can someone please give me a complete idiots guide to getting Pegasus up and running on a windows machine. I mean as complete and as detailed as possible, Ive been scrolling through this forum for days and don't seem to be making
much progress, no ANY progress. I would like the program to be portable (it will be on an external drive). I use Skraper,net BTW.
I would prefer the media to be saved with the roms for future update to Kodi when available but this is not essential. meaning- game console\
- collections.txt
- game 1\
- game1.rom
- game1screenshot.png
- game1screenshottitle.png
- game1box front.png
etc
or if that's not possible this:
- game console\
- collections.txt
- game 1\
- game1.rom
- media\ %art-type%\ ..etc
but again i can use the standard structure.
i need the most detailed, user friendly way possible to get this front end running properly. telling it how to find the roms, how to tell it what emulator to run the games in along with special commands, how to have multiple games listed as the same ((for example) game1 contains game1 North America, game1 Europe, game1 Asia), what folders should i be putting in the Pegasus root folder (.config, etc) Literally everything
A launch box xml convertor would be pretty great. i wish i possessed your guys coding knowledge
UNRELATED
On another note being as Kodi is about to implement game management (its sorta out now), I think it would be a great opportunity for you to take advantage of, by making Pegasus an add-on. i know id use it!! Though i have no idea how hard that would be, i know they like their python and if i cant get this running, there's no way I know what I'm talking about. just my thoughts. Thanks again - game console\
-
@TempTest Did you look at the documentation available at http://pegasus-frontend.org ?
-
@mitu absolutely. i did 3 scrapes and attempts in the process of typing the previous message. Ive tried multiple versions of the alpha, went through all the docs, gone through this thread ALOT. Ive run through scrapers with suggested settings, converted gamelist.xml's on the site, batch renaming of files to conform to the standards stated here. i have over 30,000 roms. i will not do them manually. just no. so unless the docs has been completely changed in the last hour Ive got that info. Also the website docs are outdated as only one txt file is now required, and the draft one posted before helped none. both of which i actually have open now and have all day. thanks though.
-
@TempTest I'm sorry to hear your troubles; yes, the initial setup is far from user friendly at the moment, but improving that is one of the goals for the near future. The multi-file support is also not 100% complete yet, but I'm working on it (the metadata file format already supports them, there's just a game selector missing).
Now as for the topics you've mentioned,
- Portable mode
This is supported, Pegasus has a
--portable
flag. To launch it like that, you can create alaunch_portable.bat
with the following contents:pegasus-fe.exe --portable
, place the file next to
pegasus-fe.exe
and use that to launch Pegasus. The config directory will get created on first start. Unfortunately there's also a Windows-specific bug where relative paths to emulators and working directories may not work, but this will get fixed.- Kodi-like directory structure
This is not supported at the moment but I'd really like to add it sometime! The current directory structure is to have the ROMs in one directory, and the media files in another, per game. See these examples. Subdirectories are supported, it's just that the media files are placed separately.
- LaunchBox converter
Yes, it was requested before, just haven't had the time yet to implement it. If you can send me a fully scraped LaunchBox XML that would help! (@PlayingKarrde I think you too used LB?)
- Kodi addon
I'm afraid I'm not familiar with Kodi to that extent... Besides, if we then view Kodi as a game frontend, I'm not sure what should a frontend-in-a-frontend plugin do?
- User friendly guide
Yeah, as mentioned earlier the user friendliness part is still lacking, but it will get better eventually. Meanwhile here's a short guide:
-
- In Skraper, select "Generic" as the output frontend format, and scrape your roms. Skraper will produce a
media
directory next to the ROMs (or, in your case, game directories) and a DAT file (egFamily Computer.dat
) in the parent directory. (If you wish, you can rename themedia
dir toskraper
too -- see here) - Open the DAT file in some editor (it's a regular XML file)
- Open the metadata converter site, and select "Logiqx XML" on the left top. Paste the contents of the DAT file in. The results should appear on the right.
- Create a new text file, paste the converted text from the webpage in and save it as
metadata.pegasus.txt
(or justmetadata.txt
) in your ROM directory. - Now, the metadata file doesn't yet know how to launch the games. Add a new line like this to the Collection definition in the metadata file:
launch: C:/emulators/something.exe "{file.path}"
. See the example here. - Get the very latest alpha release of Pegasus (
alpha10+128
as of today). Set up a portable launching script if you wish, then launch it. - Under Settings -> Set game directories, find and add the newly created metadata file
- Under Settings -> Enable/disable data sources, enable Skraper Assets
- Restart Pegasus. Games should now appear.
- In Skraper, select "Generic" as the output frontend format, and scrape your roms. Skraper will produce a
If something's not clear or doesn't work, feel free to ask! If the format conversion doesn't work, please send me the file (support was just added today so there might be cases I've not implemented).
-
@fluffypillow said in Announcing Pegasus Frontend:
I'm not sure what should a frontend-in-a-frontend plugin do?
For people who use their Pi as a media player, it just consolidates everything under one roof and makes it easier to switch between frontends. Like having ES launch from Kodi, or on PC having a Steam shortcut.
-
@fluffypillow said in Announcing Pegasus Frontend:
If you can send me a fully scraped LaunchBox XML that would help! (@PlayingKarrde I think you too used LB?)
-
@lilbud ah I see; do other frontends have such plugins? I guess this would also need some way to detect where Pegasus is installed, and a settings panel too for proper configuration.
@PlayingKarrde thanks!
Also a weekly update!
- Updated the Qt libs on all platforms for performance improvements. Please report if anything seems to be wrong.
- In addition, the JavaScript engine used by the themes now supports ECMAScript 7.
- New Raspberry Pi 3 optimized releases. In theory these should also perform slightly better than the Pi 2 builds, but I haven't compared the two in-depth yet. I'd be interested if you experiences.
- When adding game directories,
metadata.txt
files are also selectable - Memory optimizations
- Extended the documentation of Linux dependencies
- Website updates
- Added Logiqx support to the metadata format converter
EDIT: forgot to mention the converter site
-
@fluffypillow said in Announcing Pegasus Frontend:
@lilbud ah I see; do other frontends have such plugins?
I guess, I don't really have much knowledge on the topic. I would think so.
It would work similar to apps on a PS4. There is a base frontend and everything launches from that.
For a while, I had OSMC set up on my pi to watch anime, and I would have a shortcut that would load up emulation station. Just made it simpler to use. Instead of having to break out a keyboard and run ES from the CMD.
That would be a great feature to have with Pegasus.
Here is a github I found real quick which adds ES as an app, maybe that'll help you figure this out.
https://github.com/BrosMakingSoftware/Kodi-Launches-EmulationStation-Addon -
@fluffypillow This is my entire data file from launch box, all of the collection.xml's were made using skraper you'll notice two Nintendo entertainment system xml's the one with (launchbox edits) was originally scanned and i then edited game info in launchbox (consolidated games and alike) the other is the original scan before edits HERE
Ive tested your suggestions ill run through things a bit more before i completely reply to that either in edit to this or new comment, thanks so much for your quick reply, better "customer" service than most paid companies. you F***ing ROCK!
As for the Kodi thing, as it sits right now they currently are beginning to use libre cores to run games from withing kodi, as far as i know they plan to implement a similar structure for games as they have for movies, meaning how they are displayed. which is nice, but it is not at the same level as a big box frontend. i use current kodi and estuary mod. i can see myself going through the categories on the left (movies tv shows and games) i go to movies and tv shows, move to the right and view the collection as always, i backspace out, go to games and move to the right to view, but instead of the same view as videos (as they plan) its right into Pegasus, backspace enough to a close warning and then right back to kodi main menu. if done right i could honestly see that being the biggest thing since kodi itself, the user friendliness\mass appeal of kodi (sorta)mixed with your clearly amazing program, will cause the same trend in these games as nes originally did.
EDIT
OK I've spent some time on it now. im not sure what my original problems were. i say this because i updated to the new alpha, and kept my same collection.txt, it found the games and images. i checked the log from the previous version (when i originally did it, not now) and there were never any errors to post here so IDK. (regardless of portable or not)Ive re scraped with the new format, and converted, everything shows up it looks great, i now have 3 issues
-
First: in default theme the screenshot in main view shows and disappears immediately, re appears on moving to another game and back to it. no screenshot at all in info panel/view (im gonna switch themes eventually anyway)
LOG: [w] DirectShowPlayerService::doRender: Unresolved error code 0x80040266 ()
-
Second i can only imagine is my own incompetence I cant get it to launch the emulator log says path doesn't exist (it does) ive use the following as suggested, and a few variations not shown and a personalized version of the real life examples
launch: retroarch ""{file.path}"" launch: retroarch "Q:\Media\- Games\Programs\Retroarch\retroarch.exe" launch: Q:\Media\- Games\Programs\Retroarch\retroarch.exe "{file.path}"
-
are dualshock 4's not supported, i cant get mine working, xbox one is fine though
lastly i forgot to say, dont be sorry. if anything im sorry for taking your time thanks for you help, and your awesome work.
-
-
Kodi
Hmm so something like this?
Unfortunately that'd require merging Pegasus and Kodi on the source code level, I think doing that in a plugin is not technically possible :(
First: in default theme the screenshot in main view shows and disappears immediately, re appears on moving to another game and back to it. no screenshot at all in info panel/view (im gonna switch themes eventually anyway)
This DirectShow error usually means "the video file needs a codec that is not currently installed" (yeah, Microsoft likes cryptic error messages). The common solution is to use a codec pack like K-Lite that plays them all, or one specific to the particular video format (eg. Steam needs Xiph codecs).
Second i can only imagine is my own incompetence I cant get it to launch the emulator log says path doesn't exist (it does) ive use the following as suggested, and a few variations not shown and a personalized version of the real life examples
Have you tried
launch: "Q:\Media\- Games\Programs\Retroarch\retroarch.exe" "{file.path}"
? Spaces and relative paths tend to be problematic, but should work with quotes. If not, please post the log and the metadata file, I'll try to reproduce the error then. I guess launching may also fail if
Q:
is not a regular drive, eg. it's a network share or some online service.are dualshock 4's not supported, i cant get mine working, xbox one is fine though
Should work, but I can't test it at the moment. Anyone else have this issue?
-
@fluffypillow If you were to create a way to have both Kodi and Pegasus. Kodi would launch pegasus, not run over top of it. You'd select the shortcut and pegasus would open as a completely seperate program.
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.