EMULAB Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

The new forum is online, hope you enjoy it!

Pages: [1]   Go Down

Author Topic: Filter (rebuild) a No-Intro set with a xml file  (Read 12596 times)

jfromeo

  • Karma: 0
  • Offline Offline
  • Posts: 17
  • Operating System:
  • Windows 7 Windows 7
  • Browser:
  • Firefox 3.5.5 Firefox 3.5.5
    • View Profile
Filter (rebuild) a No-Intro set with a xml file
« 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

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

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.
« Last Edit: 24 November 2009, 08:46 by jfromeo »
Logged


Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Windows XP Windows XP
  • Browser:
  • Firefox 3.5.5 Firefox 3.5.5
    • View Profile
Re: Filter (rebuild) a No-Intro set with a xml file
« Reply #1 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....
Logged

jfromeo

  • Karma: 0
  • Offline Offline
  • Posts: 17
  • Operating System:
  • Windows 7 Windows 7
  • Browser:
  • Firefox 3.5.5 Firefox 3.5.5
    • View Profile
Re: Filter (rebuild) a No-Intro set with a xml file
« Reply #2 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.
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Windows XP Windows XP
  • Browser:
  • Firefox 3.5.5 Firefox 3.5.5
    • View Profile
Re: Filter (rebuild) a No-Intro set with a xml file
« Reply #3 on: 24 November 2009, 13:13 »

simply send me some of their dats and I can check it
Logged

jfromeo

  • Karma: 0
  • Offline Offline
  • Posts: 17
  • Operating System:
  • Windows 7 Windows 7
  • Browser:
  • Firefox 3.5.5 Firefox 3.5.5
    • View Profile
Re: Filter (rebuild) a No-Intro set with a xml file
« Reply #4 on: 24 November 2009, 14:10 »

Ok, here they go.

HyperSpin xml

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.
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Windows XP Windows XP
  • Browser:
  • Firefox 3.5.5 Firefox 3.5.5
    • View Profile
Re: Filter (rebuild) a No-Intro set with a xml file
« Reply #5 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...
Logged

jfromeo

  • Karma: 0
  • Offline Offline
  • Posts: 17
  • Operating System:
  • Windows 7 Windows 7
  • Browser:
  • Firefox 3.5.5 Firefox 3.5.5
    • View Profile
Re: Filter (rebuild) a No-Intro set with a xml file
« Reply #6 on: 24 November 2009, 16:49 »

<3

(Sorry for making you come here to see just that)
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Windows XP Windows XP
  • Browser:
  • Firefox 3.5.5 Firefox 3.5.5
    • View Profile
Re: Filter (rebuild) a No-Intro set with a xml file
« Reply #7 on: 27 November 2009, 14:07 »

Basic hyperspin dat parser implemented for next version.
Logged

jfromeo

  • Karma: 0
  • Offline Offline
  • Posts: 17
  • Operating System:
  • Windows 7 Windows 7
  • Browser:
  • Firefox 3.5.5 Firefox 3.5.5
    • View Profile
Re: Filter (rebuild) a No-Intro set with a xml file
« Reply #8 on: 29 November 2009, 22:34 »

Thank you so much Roman. All the HS comunity is in debt with you.
Logged
Pages: [1]   Go Up
 

Page created in 0.281 seconds with 19 queries.