Author Topic: Gamelist XML To Hyperlist XML  (Read 16917 times)

dustind900

  • Full Member
  • ***
  • Posts: 104
  • Karma: +9/-3
    • View Profile
Gamelist XML To Hyperlist XML
« on: May 13, 2020, 07:05:47 PM »
Gamelist XML To Hyperlist XML
  • Converts an EmulationStation Gamelist.xml into a RetroFE usable Hyperlist.
  • Optional Media Audit - BoxArt, Logos, Videos, and Minted (png and mp4 only) will update if needed
  • Optional Genre Cleaning - Genres from ScreenScraper are messy (IMO)
  • Optional Story File Creation - pulls game description (story) from gamelist and saves to text file

Story
I made this because lately I have been using SkraperUI. This thing is amazing. It scrapes all of its data from ScreenScraper. Unfortunately it doesn't yet have support for Hyperlist XML files, but it does create Gamelist XML files which this app converts into Hyperlist XMLs.

How To:
  • GamelistToHyperlist.ini - for your convenience. Set these to the base directory of your - Media, Roms, and Gamelists add "\" to the end of the path
  • genrereplacelist.txt - this contains (most) genres from the ScreenScraper site. Left of the "|" is the source text. Right of the "|" is the replace text. This can be edited to your liking (only edit the replace text) and you can also add to the list if you find some genres that aren't getting cleaned. Usage can be enabled/disabled in the GUI.
  • Rom Folder - Location of the roms in the Gamelist - required
  • GamelistXML - Location of your gamelist.xml - required
  • Output XML - location to save Hyperlist XML - required
  • Audit Folder - location to save media audit lists. If blank no audit is preformed
  • BoxArt/Logos/Videos - Media folders used for audit purposes. If Audit Folder is blank no need to fill these in.
  • Story Folder - Location to save story files. If blank no stories will be saved
  • RomExt - this is your rom extension without the period.
  • Use Gamelist Names - turn this on for systems like - Sega Model 2/3, Sammy Atomiswave, MAME
  • Clean Genres - Turn this on to clean genres from screenscraper.fr

Well I think thats it. Any problems or questions let me know.
« Last Edit: May 30, 2020, 11:55:15 PM by dustind900 »

hiorik

  • Newbie
  • *
  • Posts: 19
  • Karma: +0/-3
    • View Profile
Re: Gamelist XML To Hyperlist XML
« Reply #1 on: May 23, 2020, 12:09:33 AM »
I've been testing the software and found that it doesn't show any drives other than C:\, if I copy the path I can get access to other drives.

Greetings and thanks for sharing.

dustind900

  • Full Member
  • ***
  • Posts: 104
  • Karma: +9/-3
    • View Profile
Re: Gamelist XML To Hyperlist XML
« Reply #2 on: May 28, 2020, 04:03:38 AM »
Things to try
  • Run the app as Administrator
  • Change the default paths in "GamelistToHyperlist.ini". Be sure to add "\" at the end.
  • Delete the default paths in "GamelistToHyperlist.ini". Just leave them blank.

Let me know how it goes.
« Last Edit: May 30, 2020, 11:53:29 PM by dustind900 »

hiorik

  • Newbie
  • *
  • Posts: 19
  • Karma: +0/-3
    • View Profile
Re: Gamelist XML To Hyperlist XML
« Reply #3 on: May 30, 2020, 04:01:22 AM »
dustind900, why when I create a gamelist only the name fields are kept?, ignores the other fields. Do you have an example of a Gamelist.xml file?, maybe it's the xml that I downloaded.

dustind900

  • Full Member
  • ***
  • Posts: 104
  • Karma: +9/-3
    • View Profile
Re: Gamelist XML To Hyperlist XML
« Reply #4 on: May 30, 2020, 11:49:49 PM »
dustind900, why when I create a gamelist only the name fields are kept?, ignores the other fields. Do you have an example of a Gamelist.xml file?, maybe it's the xml that I downloaded.

EmulationStation XML (Gamelist):
Code: [Select]
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<gameList>
<provider>
<System>NEC PC Engine</System>
<software>Skraper</software>
<database>ScreenScraper.fr</database>
<web>http://www.screenscraper.fr</web>
</provider>
<game id="78593" source="ScreenScraper.fr">
<path>./1943 Kai (Japan).zip</path>
<name>1943 Kai (Japan)</name>
<desc>This is an enhanced version of 1943: The Battle of Midway, with most of the graphics and sounds reworked. There are also changes in the weapons and the inclusion of anachronical items such as laser-firing WWII planes and ships that run on ground. The player controls a biplane Boeing Stearman E75 N68828 instead of the P-38.    The PC Engine adaptation adds some original levels to those from the arcade version, as well as animated intermissions.</desc>
<rating>0.6</rating>
<releasedate>19910322T000000</releasedate>
<developer>Capcom</developer>
<publisher>Naxat Soft</publisher>
<genre>Shoot'em Up-Action</genre>
<players>1-2</players>
</game>
<game id="78594" source="ScreenScraper.fr">
<path>./21 Emon - Mezase Hotel Ou!! (Japan).zip</path>
<name>21 Emon : Mezase Hotel Ou!! (Japan)</name>
<desc>Naturally a manga/TV anime tie-in, 21 Emon is one of those Japanese style board games that have never really made a big impact in the west. Four players (any combination of human and computer) take it in turns to roll dice and move around the isometric board, landing on various event squares. The ultimate aim is to build as many hotels as you can and make more loot than your opponents.    (From The PC Engine Software Bible website)</desc>
<rating>0.85</rating>
<releasedate>19941216T000000</releasedate>
<developer>NEC</developer>
<publisher>NEC</publisher>
<genre>Board game</genre>
<players>1-4</players>
<favorite>true</favorite>
</game>
<gameList>

HyperList (RetroFE) XML:
Code: [Select]
<?xml version="1.0"?>
<menu>
<game name="1943 Kai (Japan)">
<description>1943 Kai (Japan)</description>
<year>1991</year>
<developer>Capcom</developer>
<publisher>Naxat Soft</publisher>
<genre>Shooter</genre>
<players>1-2</players>
</game>
<game name="21 Emon - Mezase Hotel Ou!! (Japan)">
<description>21 Emon - Mezase Hotel Ou!! (Japan)</description>
<year>1994</year>
<developer>NEC</developer>
<publisher>NEC</publisher>
<genre>Board Game</genre>
<players>1-4</players>
</game>
</menu>

If you are downloading the gamelists (which doesnt make sense, because how do you know it matches your roms) the path element probably doesn't start with "./". If you get the gamelist from scraping your roms with SkraperUI then it will work. In SkraperUI you can turn off all media downloads and just generate a gameslist.xml.

Please upload a copy of the gameslist you are trying to convert.
« Last Edit: May 30, 2020, 11:53:18 PM by dustind900 »

dustind900

  • Full Member
  • ***
  • Posts: 104
  • Karma: +9/-3
    • View Profile
Re: Gamelist XML To Hyperlist XML
« Reply #5 on: May 30, 2020, 11:52:50 PM »
Added an updated "genrereplacelist.txt". Check the downloads in the first post.

hiorik

  • Newbie
  • *
  • Posts: 19
  • Karma: +0/-3
    • View Profile
Re: Gamelist XML To Hyperlist XML
« Reply #6 on: June 03, 2020, 04:14:52 AM »
If you are downloading the gamelists (which doesnt make sense, because how do you know it matches your roms) the path element probably doesn't start with "./". If you get the gamelist from scraping your roms with SkraperUI then it will work. In SkraperUI you can turn off all media downloads and just generate a gameslist.xml.

Please upload a copy of the gameslist you are trying to convert.

Now I understand how to make it work, great!

dustind900

  • Full Member
  • ***
  • Posts: 104
  • Karma: +9/-3
    • View Profile
Re: Gamelist XML To Hyperlist XML
« Reply #7 on: June 03, 2020, 03:39:37 PM »
Glad you figured it out. 👍

Cley85

  • Newbie
  • *
  • Posts: 3
  • Karma: +1/-10
    • View Profile
Re: Gamelist XML To Hyperlist XML
« Reply #8 on: November 17, 2020, 10:25:50 AM »
hi, doesn't work for me .

I make a scrap from skrapper, i run your program in admin mod, use the gamelist done by skrapper, and i have only the name of rom in the xml from your program.

Thanks for the help

STAiNLESS

  • Newbie
  • *
  • Posts: 48
  • Karma: +49/-13
  • CORE
    • View Profile
Re: Gamelist XML To Hyperlist XML
« Reply #9 on: November 17, 2020, 11:29:47 PM »
hi, doesn't work for me .

I make a scrap from skrapper, i run your program in admin mod, use the gamelist done by skrapper, and i have only the name of rom in the xml from your program.

Thanks for the help

It's all there, its just all on one line...

stick it in here if you want to format it correctly.
https://codebeautify.org/xmlviewer

Cley85

  • Newbie
  • *
  • Posts: 3
  • Karma: +1/-10
    • View Profile
Re: Gamelist XML To Hyperlist XML
« Reply #10 on: November 18, 2020, 06:36:53 AM »
hi, doesn't work for me .

I make a scrap from skrapper, i run your program in admin mod, use the gamelist done by skrapper, and i have only the name of rom in the xml from your program.

Thanks for the help

It's all there, its just all on one line...

stick it in here if you want to format it correctly.
https://codebeautify.org/xmlviewer

Check my second screen, the XML is empty of metadata...
« Last Edit: November 18, 2020, 11:37:17 AM by Cley85 »

dustind900

  • Full Member
  • ***
  • Posts: 104
  • Karma: +9/-3
    • View Profile
Re: Gamelist XML To Hyperlist XML
« Reply #11 on: December 14, 2020, 01:25:14 AM »
Sorry about the delay. It is because the rom path in your Skraper gamelist begins with "./roms/". For the program to work it needs to start with "./".

Just take the original gamelist in Notepad++ or any text app and Replace(All) "./roms/" with "./" save and try the app again.

Cley85

  • Newbie
  • *
  • Posts: 3
  • Karma: +1/-10
    • View Profile
Re: Gamelist XML To Hyperlist XML
« Reply #12 on: March 18, 2021, 06:40:57 AM »
Fuck, many thanks, it's work perfectly now. This tool is realy realy useful . thanks man  :-*

Noob_oon

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Gamelist XML To Hyperlist XML
« Reply #13 on: November 15, 2022, 11:57:21 PM »
 It's work perfectly!  ;D ;D ;D Can I make a request? Add score <rating>0.9</rating> to <score>0.9</score>

Darklightgray

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Gamelist XML To Hyperlist XML
« Reply #14 on: March 02, 2023, 03:02:40 PM »
Hi!

I hope that the original creator doesn't mind it, but i modified the code, so it now also can pull "manufacturer" and "score" from the source.