Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metadata convertor #446

Open
fiqabumm opened this issue Apr 11, 2019 · 12 comments

Comments

Projects
None yet
3 participants
@fiqabumm
Copy link

commented Apr 11, 2019

Ok so I found the metadata convertor for Pegasus that convert emulation station gamelist.xml to metadata. After I put in the file on the start screen Pegasus find games but then it goes on the homescreen and it says no games. Do I need any other file.

@RexBorova

This comment has been minimized.

Copy link

commented Apr 11, 2019

Go into Pegasus settings and set the directory for metadata and/or collection txt files. Even if the homescreen says "No Games Available", you can still access the settings tab on the right hand side. Hope this helps.

@mmatyas

This comment has been minimized.

Copy link
Owner

commented Apr 11, 2019

EmulationStation uses two kind of files, a global es_systems.cfg which is used to find the games (<system >entries), and a gamelists.xml in each ROM directory which is used to add metadata and assets to the games (<game> entries). Pegasus's metadata format can contain both types of entries in one file, but when converting from ES this in turn means some manual work. Here's how you can do it:

  • Convert your es_systems.cfg using the online tool and save it somewhere. Open it with some text editor. You'll see a file full of collection blocks.
  • Find the gamelist.xml that belongs to the first collection in this file (ie. in the directory that you see as directory: in the file). (Hint: the blocks are separated with blank lines)
  • Convert this gamellist.xml file using the online converter and save it to where the gamelist.xml was. This file will be full of game blocks. Open it with some text editor.
  • Here's the main point: From the very first file, copy the collection block and paste it to the top of the new file (ie. there's now a single collection block in this file and multiple game blocks). Save the file.
  • Open Pegasus and add the directory of the newly created metadata file under Settings -> Set game directories.
  • Restart Pegasus. The games belonging to the collection should now appear.
  • Repeat these steps for the other collections (or the ones you want to add).

Hope this helps, I've tried to be detailed but feel free to ask if something is not clear. In case games are still not found, please post your cfg and XML files and your log file (if you're on Android, it should be <internal storage>/pegasus-frontend/lastrun.log).

@fiqabumm

This comment has been minimized.

Copy link
Author

commented Apr 11, 2019

Awesome thank you so much for all your help I'll try this tonight and hopefully get it to work thanks again

3 similar comments
@fiqabumm

This comment has been minimized.

Copy link
Author

commented Apr 11, 2019

Awesome thank you so much for all your help I'll try this tonight and hopefully get it to work thanks again

@fiqabumm

This comment has been minimized.

Copy link
Author

commented Apr 11, 2019

Awesome thank you so much for all your help I'll try this tonight and hopefully get it to work thanks again

@fiqabumm

This comment has been minimized.

Copy link
Author

commented Apr 11, 2019

Awesome thank you so much for all your help I'll try this tonight and hopefully get it to work thanks again

@fiqabumm

This comment has been minimized.

Copy link
Author

commented Apr 12, 2019

Ok I tried the above and it all worked perfect. Now I need to setup retroarch when I launch a game it either go straight to retroarch homescreen or I get black screen. Is there any default command for retroarch that I can copy and paste. Thanks

@mmatyas

This comment has been minimized.

Copy link
Owner

commented Apr 14, 2019

On Android RetroArch is a bit troublesome, it has a quite long launch command that is specific to your system and the emulator core you want to run. You can find more details here: https://pegasus-frontend.org/docs/user-guide/platform-android/#retroarch. In case you run into troubles, please post the log file (<storage>/pegasus-frontend/lastrun.log) so we can help.

(I'm assuming you're on Android based on the other issue, but correct me if I'm wrong)

@fiqabumm

This comment has been minimized.

Copy link
Author

commented Apr 14, 2019

lastrun.log
hi i uploaded the file. thankyou so much for all the help.

@mmatyas

This comment has been minimized.

Copy link
Owner

commented Apr 14, 2019

Ah I mean, launch Pegasus, start a game that doesn't work correctly, close Pegasus, then upload the log file -- the log will then contain the launch command Pegasus tried to run and we can find out which part of it causes problems.

By the way I see lots of games missing in the log, is that okay?

@fiqabumm

This comment has been minimized.

Copy link
Author

commented Apr 14, 2019

lastrun.log
sorry about that i uploaded it again. ya i can see that plenty of games are missing the log. i dont understand i have the right directory i can see cover art and everything just retroarch is either showing black screen or the main screen if run from pegasus. FYI still love the frontend.

@mmatyas

This comment has been minimized.

Copy link
Owner

commented Apr 14, 2019

Ok, according to the logs RetroArch is trying to launch /storage/9EA6EF9BA6EF71E7/Roms/Roms/neogeo as the ROM, but that is actually a directory I think, so that probably produces the black screen. Make sure your collection's launch command has the following line correctly:

-e ROM "{file.path}"

, this changes what RetroArch tries to open, so setting it to file.path should open the actual file.

In case you do have it set in the launch command, yet still fails, now that'd be a more interesting issue. All these missing game warnings also bother me. Might be not related to this issue, but I wonder if you could upload the metafile.txt files, perhaps I could use them to improve the logging code or the XML conversion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.