EMULAB Forum

clrmamepro [English] => clrmame Discussion => Topic started by: jfromeo on 24 November 2009, 08:43

Title: Filter (rebuild) a No-Intro set with a xml file
Post by: jfromeo on 24 November 2009, 08:43
Here I go again (sorry roman for all the questions).

I have a No-Intro set, say, Atari 5200, 100% verified, and in Full/zip format. And I'd like to filter the roms in it with a Hyperspin xml which doesn't follow the No-Intro dat structure (but they both match name, description, crc...) and therefore, I can't directly load it in clrmamepro to start the rebuilding as I'd do with a dat.

The No-Intro dat: Atari 5200 dat (http://www.septa.jazztel.es/Atari5200.dat)

Code: [Select]
game (
name "Activision Decathlon, The (USA)"
description "Activision Decathlon, The (USA)"
rom ( name "Activision Decathlon, The (USA).a52" size 16384 crc F43E7CD0 md5 45F8841269313736489180C8EC3E9588 sha1 DB203973DF13B071DA46D52FDB078A76F4DB428D )
)

The HyperSpin xml: Atari 5200 xml (http://www.septa.jazztel.es/Atari5200.xml)

Code: [Select]
<game name="Activision Decathlon, The (USA)">
<description>Activision Decathlon, The</description>
<crc>f43e7cd0</crc>
<manufacturer>Activision</manufacturer>
<year>1983</year>
<genre/>
</game>

Is there any way I could "load" the xml so I could filter and rebuild the romset from No-intro? Do I need to convert the xml to dat with some other program beforehand?

Thanks a bunch.
Title: Re: Filter (rebuild) a No-Intro set with a xml file
Post by: Roman on 24 November 2009, 10:17
Well...the official datformat is xml (even if nointro is still in old format).....and XSLT can be easily used to transform your Hyperspin XML into the official XML....

Either you learn and use XSLT....or you let me know where I can find out more regarding the "Hyperspin XML" format....
Title: Re: Filter (rebuild) a No-Intro set with a xml file
Post by: jfromeo on 24 November 2009, 12:10
Thanks Roman, I'll try that XSLT, it looks very promising.

I'll ask the stuff from HyperSpin to check out which standard they follow to create the xmls and let you know. It would be great if any support for it coudl be added to CMP.
Title: Re: Filter (rebuild) a No-Intro set with a xml file
Post by: Roman on 24 November 2009, 13:13
simply send me some of their dats and I can check it
Title: Re: Filter (rebuild) a No-Intro set with a xml file
Post by: jfromeo on 24 November 2009, 14:10
Ok, here they go.

HyperSpin xml (http://www.septa.jazztel.es/HyperSpin_XML.zip)

It's a zipped pack with all the official HS xml to date (generated from HyperSpin 0.8.0.1 installation).

Thanks so much for your support.
Title: Re: Filter (rebuild) a No-Intro set with a xml file
Post by: Roman on 24 November 2009, 15:10
Looks to be a very easy xml format....no size entries, no filename extensions listed...just name, description, crc32, manufacturer and year...

I guess I can quickly add a parser for that for the next version.

....however I still like the idea of somehow supporting xslt transformations somehow so that only the transformation needs to be defined...anyway..no time for that at the moment....or maybe in the rewrite (>2012)....

for now I will add an easy parser for that format...
Title: Re: Filter (rebuild) a No-Intro set with a xml file
Post by: jfromeo on 24 November 2009, 16:49
<3

(Sorry for making you come here to see just that)
Title: Re: Filter (rebuild) a No-Intro set with a xml file
Post by: Roman on 27 November 2009, 14:07
Basic hyperspin dat parser implemented for next version.
Title: Re: Filter (rebuild) a No-Intro set with a xml file
Post by: jfromeo on 29 November 2009, 22:34
Thank you so much Roman. All the HS comunity is in debt with you.