RetroFE forums

General Category => Third party applications/tools => Topic started by: dustind900 on May 13, 2020, 07:05:47 PM

Title: Gamelist XML To Hyperlist XML
Post by: dustind900 on May 13, 2020, 07:05:47 PM
Gamelist XML To Hyperlist XML

Story
I made this because lately I have been using SkraperUI (http://www.skraper.net). This thing is amazing. It scrapes all of its data from ScreenScraper (http://www.screenscraper.fr). 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:

Well I think thats it. Any problems or questions let me know.
Title: Re: Gamelist XML To Hyperlist XML
Post by: hiorik 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.
Title: Re: Gamelist XML To Hyperlist XML
Post by: dustind900 on May 28, 2020, 04:03:38 AM
Things to try

Let me know how it goes.
Title: Re: Gamelist XML To Hyperlist XML
Post by: hiorik 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.
Title: Re: Gamelist XML To Hyperlist XML
Post by: dustind900 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.
Title: Re: Gamelist XML To Hyperlist XML
Post by: dustind900 on May 30, 2020, 11:52:50 PM
Added an updated "genrereplacelist.txt". Check the downloads in the first post.
Title: Re: Gamelist XML To Hyperlist XML
Post by: hiorik 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!
Title: Re: Gamelist XML To Hyperlist XML
Post by: dustind900 on June 03, 2020, 03:39:37 PM
Glad you figured it out. 👍
Title: Re: Gamelist XML To Hyperlist XML
Post by: Cley85 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
Title: Re: Gamelist XML To Hyperlist XML
Post by: STAiNLESS 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
Title: Re: Gamelist XML To Hyperlist XML
Post by: Cley85 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...
Title: Re: Gamelist XML To Hyperlist XML
Post by: dustind900 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.
Title: Re: Gamelist XML To Hyperlist XML
Post by: Cley85 on March 18, 2021, 06:40:57 AM
Fuck, many thanks, it's work perfectly now. This tool is realy realy useful . thanks man  :-*
Title: Re: Gamelist XML To Hyperlist XML
Post by: Noob_oon 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>
Title: Re: Gamelist XML To Hyperlist XML
Post by: Darklightgray 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.
Title: Re: Gamelist XML To Hyperlist XML
Post by: celtium on October 30, 2023, 06:18:15 PM
Merci beaucoup pour cette utilitaire :)