PDA

View Full Version : Xml Generator Released



sydaroa
11-28-2008, 11:36 AM
This is a xml database generator from our rom folders.

First type the rom extension without a dot

Second select origin folder to read

Third select the name of database xml file and location

Fourth Enjoy it!!!!

Thanks to Fuents from marcianitos.org to make it possible


Download link (http://www.megaupload.com/?d=7CPRVAR5)

If you want a comman line version made by Peterpunk make a txt file and name it xml.bat.
Then edit it and copy the next instructions


@echo off
echo ^<menu^> > lista.xml
if %1. EQU . (goto act_carp)
for %%i in (%1/*) do (call:comun "%%i" >> lista.xml)
:final
echo ^</menu^> >> lista.xml
exit

:act_carp
for %%i in (./*) do (
if /i not %%i==listar.bat (
if /i not %%i==lista.xml (call:comun "%%i" >> lista.xml)))
goto final

:comun
echo ^<game name="%~n1"^>
echo ^<description^>%~n1^</description^>
echo ^<crc^>^</crc^>
echo ^<manufacturer^>^</manufacturer^>
echo ^<year^>^</year^>
echo ^<genre^>^</genre^>
echo ^</game^>

put it in the rom folder and run, it will generate a xml file "lista.xml" rename it and place in the database folder.
Look tht it will generate a xml with all the archives in folder.

Redgards

Necrosaro420
11-28-2008, 01:33 PM
Sounds good thanks. Will this also populate the list just like in HS? With the name of the game (not just the file name) The year the game was released, etc?

Dazz
11-28-2008, 02:28 PM
Sounds good thanks. Will this also populate the list just like in HS? With the name of the game (not just the file name) The year the game was released, etc?No, it does not appear that it does input the information about the game. This looks like it is another dir2xml program. What we really need is an app that that you can take an existing .dat file, compare to your rom directory, and output to a completed HyperSpin database xml with the information input.

sydaroa
11-29-2008, 04:53 AM
That's right Dazz but there isn't any official xml or dat file that contain this information.

For example you want to obtain a list of your nintendo vrtual boy roms, you can download the dat file in no-intro format from the web and obtain the following


clrmamepro (
name "Nintendo - Virtual Boy"
description "Nintendo - Virtual Boy"
version 20081108
comment "no-intro | www.no-intro.org"
)

game (
name "3-D Tetris (USA)"
description "3-D Tetris (USA)"
rom ( name "3-D Tetris (USA).vb" size 1048576 crc BB71B522 md5 ECF1218706E9B547EAB9E4BE58D54E21 sha1 5177015A91442E56BD76AF39447BCA365E06C272 )
)

game (
name "Galactic Pinball (Japan, USA)"
description "Galactic Pinball (Japan, USA)"
rom ( name "Galactic Pinball (Japan, USA).vb" size 1048576 crc C9710A36 md5 85260599FDADA2E137053A8647AA0D06 sha1 93A25ABF4F86E71A49C1C3A470140BB40CB693D6 )
)


if you download the xml file you obtain this


<?xml version="1.0"?>
<!DOCTYPE datafile PUBLIC "-//Logiqx//DTD ROM Management Datafile//EN" "http://www.logiqx.com/Dats/datafile.dtd">
<datafile>
<header>
<name>Nintendo - Virtual Boy Parent-Clone</name>
<description>Nintendo - Virtual Boy Parent-Clone</description>
<version>20081129</version>
<date>20081129</date>
<author>kazumi213</author>
<url>www.no-intro.org</url>
</header>
<game name="3-D Tetris (USA)">
<description>3-D Tetris (USA)</description>
<rom name="3-D Tetris (USA).vb" size="1048576" crc="BB71B522" md5="ECF1218706E9B547EAB9E4BE58D54E21" sha1="5177015A91442E56BD76AF39447BCA365E06C272"/>
</game>
<game name="Galactic Pinball (Japan, USA)">
<description>Galactic Pinball (Japan, USA)</description>
<rom name="Galactic Pinball (Japan, USA).vb" size="1048576" crc="C9710A36" md5="85260599FDADA2E137053A8647AA0D06" sha1="93A25ABF4F86E71A49C1C3A470140BB40CB693D6"/>


As you can see there is no information about year the game was released or company made the game info, only mame xml has this, as far I konw the no-intro project members are getting this information to use later.

At now you need to implement this information manually in your xml or dat archive.

By other way if you want to make your rom list in the no-intro format, the correct form would't be "Galactic Pinball (Japan, USA)", the correct form will be "C9710A36".

In fact all files (videos, artworks,roms... ) should be renamed to the crc description and we have to do is an app to do waht exactly you say, extract the name of the game and all the information we can need to show by the frontend.

i'll work on it to make it possible.

Regards and sorry for my english

Mario.NET
11-29-2008, 01:04 PM
What we really need is an app that that you can take an existing .dat file, compare to your rom directory, and output to a completed HyperSpin database xml with the information input.

I've done a tool like that, but it loads data from xml files (like mame's -listxml output) and ini files (like catver.ini).
You can find it at http://www.mansoft.it/mario/download/MAMEFilter.zip


Bye
Mario

nsw25
05-23-2011, 05:30 AM
when i use this and try and save over the original MAME.xml it deletes the file but doesnt replace it with an updated one :( can not get this to work and desperatly need to make a list of my actual roms and not these pre set lists.... why cant hyperspin scan a rom folder and generate list ? that would make it perfect

Dazz
05-23-2011, 12:30 PM
when i use this and try and save over the original MAME.xml it deletes the file but doesnt replace it with an updated one :( can not get this to work and desperatly need to make a list of my actual roms and not these pre set lists.... why cant hyperspin scan a rom folder and generate list ? that would make it perfectUmm, this thread is over 2 years old and this app hasn't been updated in just about as long. There are other apps around that would help you better than this one.

We have several reasons as to why HyperSpin doesn't simply scan a ROM folder. For one HyperSpin pulls additional information, such as manufacture and year the game was released. Roms have to be named exactly like they are in our databases (no-intro based) to keep all of the artwork and themes named correctly.

justintime
10-12-2011, 12:59 PM
I think MAMEFILTER is the best tool around... It will scan against a Mame.XML FILE, and most importantly it will audit against your roms flder to include ONLY the roms you own.

I think it should be made a sticky!!! GREAT TOOL.

scubadiver88
01-21-2012, 03:23 PM
mega upload been shut down might need a new host....

xagesz
01-21-2012, 03:25 PM
I just finished writing a XML writer that will be part of my program to release soon.