Playnite Forums
  • Playnite Web
  • Rules
  • Members
  • Team
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Playnite Forums Extension Database Generic Extensions Import Games from Emulators | RPCS3, Cemu, Vita3K, RetroArch

Import Games from Emulators | RPCS3, Cemu, Vita3K, RetroArch
OneAngryGamer Away

#1
10-20-2021, 03:23 AM (This post was last modified: 08-31-2023, 03:50 AM by OneAngryGamer.)
This extension imports games into Playnite from emulators. The idea for this extension came from the ScummVM game importer by Crow (link here) I could not have made this without standing on the shoulders of giants.

Features:
  • No duplicates - This is designed to detect games already imported and will automatically skip those when importing.
  • No deleted/moved games - Extension verifies paths for every game it imports. It will not import broken paths from games that were moved/deleted.
  • Auto detect location of emulators - No need to type paths or folder drill.
  • No more game names like EBOOT.BIN - Extension will read the rom meta files to return the official title for each game. If it is unable to detect the name, it will look up a list (RPCS3 only) or, as a last resort, attempt to extract the game name from the game install path.
  • Auto set Region - Attempts to read the game region codes from the rom meta files (PS3 and Wii U) and uses these to set the region field in Playnite. RetroArch has beta region detection based on the No-Intro/Redump file names.

Expected Questions:
  • Why use this extension to import Vita3K instead of using Playnite to import? Because using Playnite will create issues every time you try to play the rom.
  • Why use this extension to import RPCS3 and/or Cemu instead of using Playnite to import? This extension reads the game locations from the emulator config files (no folder drilling to the rom folder),  selects the correct game file (no more de-selecting multiple .BIN files for RPCS3), sets game name and region.
  • Why use this extension to import roms from RetroArch instead of using Playnite to import? This extension reads the game locations from the emulator playlist files (no folder drilling to the rom folder).


Known Issues/User Errors:
  • Emulator location not found - import the emulator into Playnite before importing games.
  • No games were found in the emulator - The extension was intended for switching from using the emulator frontend to Playnite. You need to have set up your emulator first before you can import games from it.
  • (RetroArch only) Playlist refuses to import because no default emulator set - It only imports if a default emulator has been set for that Platform.


Future Plans:
  • Add support for Dolphin emulator - I have found the game list file but I am unable to parse it. Please reply to this thread if you can help.


DONATIONS? I'm not taking donations. If you want to donate, please consider donating to one of these projects instead:
  • RPCS3 https://www.patreon.com/Nekotekina
  • Cemu https://www.patreon.com/cemu
  • Vita3K https://ko-fi.com/vita3k
  • RetroArch https://www.retroarch.com/index.php?page=donate


Compatibility Warning: Due to the Great 8 Break, this extension is not compatible with any version of Playnite after v8.15.
I will release this for Playnite 9 if somebody can explain all the changes needed to convert P8 scripts to P9.

If you found this extension useful, you can find more of my extensions here

After these forums close I will upload add-ons to https://mega.nz/folder/M2lQjAwK#njde1JEQbJjquOAojrXF_A



.pext   Import_Games_from_Emulators_1_5_0.pext (Size: 102.43 KB / Downloads: 188)
.pext   Import_Games_from_Emulators_1_5_1.pext (Size: 119.13 KB / Downloads: 64)
.pext   Import_Games_from_Emulators_1_6_0.pext (Size: 356.05 KB / Downloads: 70)
sheepbeep
Offline

#2
10-24-2021, 12:38 PM
You should work on PlayNite 9 support, as 8 is dead.
OneAngryGamer Away

#3
10-26-2021, 09:26 AM (This post was last modified: 11-01-2021, 10:42 PM by OneAngryGamer.)
"I want to import games from Cemu/RPCS3 but I don't use Discord"

You don't need to use Discord. All you need is to open your emulator and enable the Discord option. (Doing this enables the extension to find where your emulator is located)
You can always disable the Discord option in your emulator after you have imported the games into Playnite.
UPDATE: This is no longer required from v1.2.0


"I like the idea of importing the official background art into Playnite but my PS3 games are already in Playnite."

I have uploaded an extension that lets you import the backgrounds for any of your PS3 games in Playnite. See https://playnite.link/forum/thread-889.html


"I like the idea of importing the official background art & icons into Playnite but my Wii U games are already in Playnite."

I have uploaded an extension that lets you import the backgrounds for any of your Wii U games in Playnite. See https://playnite.link/forum/thread-891.html
OneAngryGamer Away

#4
11-01-2021, 10:38 PM (This post was last modified: 11-19-2021, 09:27 AM by OneAngryGamer.)
Update Announcement - v1.2.0 - RetroArch (beta), Name Change, Fixes

  • The name has changed from 'Import Emulated Games' to 'Import Games from Emulators'
  • Dropped all of the 'Enable Discord' requirements. Instead of detecting the location of the emulator on your PC, I decided to read the emulator location from Playnite. (I'm shelving all of my 'emulator detection' code. I may revive this for a future extension which finds emulators on your PC and imports them into Playnite)
  • Numerous bug fixes. Do not use v1.1.0 - it contains a few minor bugs. Including - incorrect safety check for icons (it was checking if the background image was not a TGA instead of the icon), a potential unhandled error if ImageMagick is not detected and needs its executable selected by the user (I overlooked including this function in v1.1.0. I didn't notice this before release because the program was already being detected by one of the earlier detection methods so it never reached the 3rd method)
  • You can now import games from RetroArch (Beta) - Select which playlist to import to import games + cover art. Also has very basic detection of regions and versions. I consider this beta because it can not handle separate emulators for each game. It needs to have a default emulator set for each playlist imported (I will change this in a future release)
Lurker000
Offline

#5
12-24-2021, 08:34 AM (This post was last modified: 12-24-2021, 08:35 AM by Lurker000.)
"(RPCS3) Proper read of PS3 SFO file format (instead of the hacks I'm using) - Please reply to this thread if you know how this can be done."

If you haven't done this yet:

https://github.com/xXxTheDarkprogramerxX...RAM_SFO.cs

Copy that class to your project.
Usage:
var sfo = new PARAM_SFO("path to sfo");
var title = sfo.Title;
etc etc.
OneAngryGamer Away

#6
12-27-2021, 01:45 AM (This post was last modified: 08-02-2023, 01:58 AM by OneAngryGamer.)
(12-24-2021, 08:34 AM)Lurker000 Wrote: "(RPCS3) Proper read of PS3 SFO file format (instead of the hacks I'm using) - Please reply to this thread if you know how this can be done."

If you haven't done this yet:

https://github.com/xXxTheDarkprogramerxX...RAM_SFO.cs

Thank you Lurker000. I plan to make large changes to this extension so it may be a while before I can get onto implementing this.

(The SFO read is not a high priority since my hacks can read the desired data for almost all PS3 SFOs.)

Done
OneAngryGamer Away

#7
08-05-2022, 11:54 AM
A few more changes:

ScummVM now records platforms (using data from scummvm ini)
ScummVM now records version/edition info in version field
OPTIONAL ScummVM can include the edition after the game title
OPTIONAL / BETA RetroArch can try to remove regions from game names
IMPROVED remove game code from game name (RPCS3)
IMPROVED Installation directory now records the root directory of the rom (instead of path containing the rom executable)
OneAngryGamer Away

#8
09-28-2022, 12:22 AM
More changes:
  • Dropped feature - Import Icons from Wii U roms
  • Dropped feature - Import Backgrounds from Wii U roms
  • Dropped feature - Import Backgrounds from PlayStation 3 roms
I'm dropping the image importing from this extension for those who want to use this extension to import roms but don't want the official artwork.

The ability to import images from rom contents will still be available by using other extensions:
Sony PlayStation 3
Nintendo Wii U


I intend to switch to Playnite 9 after the available plugins reach feature parity with Playnite 8. Before I convert this extension, I will drop the ScummVM import after moving it to a separate v8 extension.
OneAngryGamer Away

#9
12-27-2022, 12:54 AM (This post was last modified: 12-27-2022, 01:33 AM by OneAngryGamer.)
Update Announcement - v1.3.0
  • extensive code changes
  • NEW RetroArch can try to remove regions from the game names when importing (OPTIONAL / BETA)
  • IMPROVED remove game codes from game names (RPCS3)
  • IMPROVED Installation directory now records the root directory of the rom (instead of the path that contains the rom executable) (Improves roms imported from CEMU)

The following features have been dropped:
  • Import games from ScummVM - This was dropped because when/if I upgrade this extension for Playnite 9/10, this feature wont be needed any more.
  • Importing images - This was dropped for those who want to use this extension to import games but don't want the official artwork.
The dropped features are available in other extensions:
  • Import backgrounds and/or icons from Wii U roms https://playnite.link/forum/thread-891.html
  • Import backgrounds from Sony PlayStation 3 roms https://playnite.link/forum/thread-889.html
  • Import cover art from RetroArch emulator https://playnite.link/forum/thread-890.html
  • Import games from ScummVM https://playnite.link/forum/thread-1400.html

Compatibility Warning
Due to the breaking changes introduced in Playnite 9, this extension is not compatible with any version of Playnite after v8.15.

If you found this extension useful, you can find more of my extensions here

If these forums are closed, I will not be moving to Discord or reddit.
OneAngryGamer Away

#10
12-29-2022, 10:51 PM (This post was last modified: 12-29-2022, 10:53 PM by OneAngryGamer.)
Update Announcement - v1.3.1

This update focused on RPCS3 importing. Extensive testing and improvements were made to naming.
  • NEW - cleaning of game names. No more unreadable characters appear for some imported games. (RPCS3)
  • NEW - detect and remove GameCode from game name if name set from rom directory. (RPCS3)
  • NEW - detect and remove version from game name if name set from codelist. (RPCS3)
  • IMPROVED - altered priority of name reading methods. Before: codelist > SFO > directory name. Now: SFO > codelist > directory name. This can improve names for roms that have been patched with translations, undubs or other rom hacks. (RPCS3)
  • BUG FIX - names were not being read from the RPCS3codes file in v1.3.0 (RPCS3)
  • other code changes
Compatibility Warning: Due to the breaking changes introduced in Playnite 9, this extension is not compatible with any version of Playnite after v8.15.

If you found this extension useful, you can find more of my extensions here. If these forums are closed, I will not be moving to Discord or reddit.
OneAngryGamer Away

#11
01-03-2023, 03:57 AM
Working on importing PSN games from RPCS3 virtual HDD. This will be included in v1.4.0 releasing soon.
OneAngryGamer Away

#12
01-03-2023, 10:48 PM (This post was last modified: 01-03-2023, 11:08 PM by OneAngryGamer.)
Update Announcement - v1.5.0

Two major changes in this release which had been on the Future Plans list.

The biggest change is reading game names from PS3 SFO files. Previous releases may have appeared to read SFOs but I was using hacks which had two disadvantages:
  1. Only certain SFOs could be "read".
  2. Those that were read relied on the title appearing at set locations. While this was tested on every SFO I had, there was always the risk that incorrect values could be returned.

  • NEW - import digital PS3 games installed to RPCS3s HDD. (RPCS3)
  • IMPROVED - read game names from PS3 SFO files using their index table to locate the title. No more position hacks. (RPCS3)
  • IMPROVED - region detection expanded to support all valid PS3 regions. (RPCS3)
  • IMPROVED - names of imported games output to log. Will also display on the results message depending on number of games imported. (All emulators)
  • more code improvements

To import the digital PS3 games, select the RPCS3 - HDD games from the menu. The previous RPCS3 import option is now listed as RPCS3 - Disc games.


Compatibility Warning: Due to the breaking changes introduced in Playnite 9, this extension is not compatible with any version of Playnite after v8.15.

If you found this extension useful, you can find more of my extensions here
koriebonx98
Offline

#13
01-17-2023, 01:09 PM
You could potentially do the xinia emu, it uses a folder in the emulator to sore games and dlc. But when in a certain format that’s not iso e.g xbla it has weird coding “a7tfufu67hu7” or whatever but when playing on xinia it could stand for bejewelled 3 for example
OneAngryGamer Away

#14
02-14-2023, 12:01 AM (This post was last modified: 02-14-2023, 12:10 AM by OneAngryGamer.)
(01-17-2023, 01:09 PM)koriebonx98 Wrote: You could potentially do the xinia emu, it uses a folder in the emulator to sore games and dlc. But when in a certain format that’s not iso e.g xbla it has weird coding “a7tfufu67hu7” or whatever but when playing on xinia it could stand for bejewelled 3 for example

This works by reading the files created by emulators. This is something that Playnite (as at version 8) can not do.

It does not import games from folders because that feature is already available in Playnite.

If an emulator stores the rom paths & title information in a file that can be read then that emulator can be added. Most do not so they can not be added.

I can add Xenia if you can provide the location of this file (if it has one) along with information on reading the file format if it is not in SQL or a plain text format.

I have checked many popular emulators and these meet the requirements:

Emulator:
  • RPCS3 = ADDED
  • Cemu = ADDED
  • ScummVM = ADDED (moved to a separate extension)
  • Dolphin = File exists but I am unable to read the format.
Frontend:
  • RetroArch = ADDED BETA
  • 2x more frontends that I have been testing and will release if these forums are not shutdown first.
OneAngryGamer Away

#15
03-02-2023, 03:41 AM (This post was last modified: 08-02-2023, 01:52 AM by OneAngryGamer.)
I tested Vita3K emulator again. While the extension can be modified to read the SFO files in Vita roms, I could not find an emulator file that lists the roms so Vita can not be added to this extension.

Roms that have been installed to the virtual drive can not be added either. Unlike RPCS3, it does not appear possible to command line boot installed roms in Vita3K so it would be pointless importing these roms.

If anybody knows otherwise or if the emulator ever supports this in future, reply to this thread and I will update this extension to import Vita.
OneAngryGamer Away

#16
03-16-2023, 05:11 AM (This post was last modified: 08-09-2023, 04:17 AM by OneAngryGamer.)
I recently tried Playnite 10 for the first time and compared the built-in support for importing games in P10 with this extension.

Sony PlayStation 3
  • Titles (clean games) = Playnite 10 is better. I am aware of one case where my code loses one character from its title because that character wont convert. Playnite converted all correctly.
  • Titles (modded games) = I prefer my extension. P10 does not return the desired title for rom translations and undubs.
  • Dates = P10 is better. It can import the Published Date.
Other platforms
  • Nintendo Wii U = P10 does not support reading rom data for Wii U roms. Using my extension to import Wii U will give you 'Mario Kart 8'. Importing the same game into P10 will give you 'Turbo'.
  • Sony PlayStation Vita = P10 does not support reading rom data for PS Vita roms. My extension does not either UPDATE: Vita3K now supported in latest version.
darklinkpower
Offline

Super Moderator
#17
03-16-2023, 11:39 AM
The RPCS3 import script is available here if you want to contribute improvements: https://github.com/JosefNemec/Playnite/b...tGames.ps1

Neither the Wii U nor the Vita emulators have custom import scripts, hence why they have issues during import. I don't see myself these scripts being worked on by Crow in the future, ideally someone interested in these should work on them and contribute them to Playnite.
OneAngryGamer Away

#18
04-04-2023, 02:08 AM (This post was last modified: 08-09-2023, 04:16 AM by OneAngryGamer.)
(03-16-2023, 11:39 AM)darklinkpower Wrote: The RPCS3 import script is available here if you want to contribute improvements: https://github.com/JosefNemec/Playnite/b...tGames.ps1

I am unable to use GitHub and I am still using Playnite 8 until after I finish converting my extensions and the One Ring project to Playnite 10.

If nobody has improved this script by the time I fully switch over to Playnite 10, I could look at adding the improvements and uploading the edited script to this forum if it has not been closed by then.

(03-16-2023, 11:39 AM)darklinkpower Wrote: Neither the Wii U nor the Vita emulators have custom import scripts, hence why they have issues during import. I don't see myself these scripts being worked on by Crow in the future, ideally someone interested in these should work on them and contribute them to Playnite.

Neither of these would be difficult to create custom import scripts for.

If nobody else does, I could look at creating these after I finish changing over to P10 provided that these forums have not been closed by then.

In the event that these forums close before I can get onto creating the import scripts, I will leave some notes below for anybody to use. These notes are written from memory so I am unable to provide the exact path and filenames to the metadata files.

Wii U
  • The script can only read metadata for decrypted extracted roms. This means a game folder with subfolders for Code, Content and Meta.
  • Any other rom formats such as WUX or WUD would be imported normally without trying to read their metadata.
  • The metadata you want to extract is stored in an XML file in the Meta folder. You can read the Title and the Region from this file. I would not recommend importing the Publisher or Age Rating metadata.

UPDATE: Vita3K support added to latest version
OneAngryGamer Away

#19
05-16-2023, 03:37 AM
Update Announcement - v1.5.1


Unreleased
  • (PlayStation Vita) Added code for importing games from Vita3K. There is no menu option in this release because there is currently no way to read the rom paths from Vita3K files.
Changed
  • (PlayStation 3) Altered code for reading SFO files. Titles are improved again and I have stopped ASCII filtering the titles. If you also use my Fix Game Library - Emu Library extension note that this release can cause undetected duplicates for PS3 titles containing the trademark character.
OneAngryGamer Away

#20
07-26-2023, 03:43 AM (This post was last modified: 08-09-2023, 04:19 AM by OneAngryGamer. Edit Reason: gave credit )
With a little help I have recently solved the problem with the Vita3K emulator profile in Playnite.

Special Thanks to RetroBoi777

I am working on two new projects but after they are released I will update this extension for Vita3K.

UPDATE: Within the next 14 days I will update this extension so that Vita roms can work correctly in Playnite. Vita3K VERSION NOW RELEASED
« Next Oldest | Next Newest »
Pages (2): 1 2 Next »



  • View a Printable Version
  • Subscribe to this thread

© Designed by D&D - Powered by MyBB

Linear Mode
Threaded Mode