sselph / scraper

A scraper for EmulationStation written in Go using hashing
MIT License
449 stars 88 forks source link

Support another open source FE output format #110

Open nostalgicamigo opened 8 years ago

nostalgicamigo commented 8 years ago

sselph, is it possible to output to the hyperspin style xml format that RetroFE uses?

I know the best would be a standard format between FEs, but right now they're using different ones.

It would be nice to support another F/OSS project that would greatly benefit with a scraper good as yours!

sselph commented 8 years ago

Do you have a link to some documentation for this format?

JamesInDigital commented 8 years ago

It's mostly the same, just different names for elements and their structure doesn't include file extension or link to image. It assumes those files have the same name as the rom/title. I actually decided to start learning python to do this conversion. So far I have a script that can extract the from your format, and save it as a text file with the game title. These text files can display the "story" in RetroFe depending on the theme. I'll link to a couple relevant threads on the RetroFe forums shortly. Then you can tell me how awful my code is for a first-timer ;)

Update: This is the thread I started over at RetroFE. This is super simple stuff real programmers, I'm using it as an excuse to learn stuff.

[(http://www.retrofe.com/forum/index.php?topic=464.0)]

Note that developer and publisher will both pass through, but retrofe pulls in themes currently. In my hand-by-hand test conversion, duplicating publisher to manufacturer covers this for now.

Also as mentioned in my other "Request" here. Retrofe pulls as the esrb in the format "ESRB - E (Everyone)" and it uses to provide a star rating, From 1-5 with half stars at .5.

I'm not sure the crc field is actually used for anything.

Your xml starts like this

<?xml version="1.0"?>
<gameList sortid="0">
    <game>

Theirs like this (not sure if any of the list information is actually even needed, I think a blank header would work. Listname may be required to link to their folder structure. Otherwise it's just xml, menu, header then launching into <game name="

<?xml version="1.0" encoding="UTF-8"?>
<menu>
    <header>
        <listname>Super Nintendo Entertainment System</listname>
        <lastlistupdate>10/4/16</lastlistupdate>
        <listversion>.5</listversion>
        <exporterversion>Hand-conversion from emulationstation format by James Schumacher</exporterversion>
    </header>
      <game name="2020 Super Baseball (Japan)" index="true" image="">
JamesInDigital commented 7 years ago

I've got the converter working for RetroFE mostly. Still some testing to do, but I will post it soon if anyone is interested. It's somewhat hacky as someone very knew to python/programming, but works thus far. Currently I have a separate version for MAME as it doesn't require the renaming of the game field in the same way.