Page 1 of 1

Create custom dats?

Posted: Wed Apr 28, 2010 5:41 am
by MrX_Cuci
Would it be possible to create custom dats? I just need an XML with the filenames. It's a pain to edit them manually for use with Hyperspin frontend: http://www.youtube.com/watch?v=2LbtvmdR … re=related

Re: Create custom dats?

Posted: Wed Apr 28, 2010 5:50 am
by Jackal
The code doesn't allow it afaik.

Re: Create custom dats?

Posted: Wed Apr 28, 2010 7:59 am
by velocity37
If you give me an example of a complete redumb db entry from the dat, and how you want that resulting entry to be formatted, I will look into throwing something together that can do it for you.

For example, here's Tekken 2 (USA) for the PlayStation:

Code: Select all

    <game name="Tekken 2 (USA)">
        <description>Tekken 2 (USA)</description>
        <rom name="Tekken 2 (USA).cue" size="306" crc="7b45c1a8" md5="b28b88a353507118f1586d71eef1b7c0" sha1="73b58d9c70c59f0f2a6b19ad9d04e9a61f820256"/>
        <rom name="Tekken 2 (USA) (Track 1).bin" size="717922128" crc="7ab1c17b" md5="b2ce9448df23b0378f7bf5cce901eecc" sha1="2b6a371fc70c2e625f238ef98104ad1d2a07a5bc"/>
        <rom name="Tekken 2 (USA) (Track 2).bin" size="26554080" crc="9a0d6a04" md5="9f64359d59fa921a68dea3300bd54ac2" sha1="5faad8d827cc9390dc097e75822e23c2f4953364"/>
        <rom name="Tekken 2 (USA) (Track 3).bin" size="6350400" crc="d387cac5" md5="131bb82eb1ba56b4991091f1717770a2" sha1="47eb5ef6093e80099f710b7e221b461ca3ab3c26"/>
    </game>
What do you want the result to look like?

Re: Create custom dats?

Posted: Tue May 04, 2010 7:11 am
by MrX_Cuci
Awesome if possible!

This is how the formatting looks like:

Code: Select all

<game name="Tekken 2 (USA)" index="true" image="t">
    <description>Tekken 2 (USA)</description>
    <cloneof></cloneof>
    <crc></crc>
    <manufacturer></manufacturer>
    <year></year>
    <genre></genre>
</game>
Index is first game of that letter / number. Image is the first letter / number of the game name. . The rest needs to be filled in manually I guess. CRC is not used at the moment. Here some example DATS: http://hyperlist.hyperspin-fe.com/

Re: Create custom dats?

Posted: Tue May 04, 2010 11:56 am
by velocity37
Well, I looked at the sample Playstation XML dat, and it didn't even use the index and image fields, so neither did I. There was also spaces between some blank fields, so I recreated those too.

Anyways, I threw together this crappy program in VB (I'm more of a scripting guy, myself). You'll probably need the .NET framework if you don't have it.

Just rename the redump.org dat to "RD.dat", and throw it in the same folder as the program. Run it, and it'll create "NEW.DAT".

Re: Create custom dats?

Posted: Tue May 04, 2010 1:46 pm
by ghost
dude you will save me if you can tell me what to use to split the pc dat into cd and dvd. splitting the iso and bin entries into two dats

Re: Create custom dats?

Posted: Tue May 04, 2010 3:57 pm
by MrX_Cuci
The best crappy programm I ever used....at least looks like it. It converts the dats nicely. Testing it with Hyperspin in a few moments. Be prepared for some crap lovin if it works as it should  Image Mucho thanks in advance!

Re: Create custom dats?

Posted: Tue May 04, 2010 8:14 pm
by velocity37
ghost wrote:dude you will save me if you can tell me what to use to split the pc dat into cd and dvd. splitting the iso and bin entries into two dats
Here you go. Just rename the PC Dat to "RDPC.dat" and stick it in the same folder as this program. It will output "RDPC_BIN.DAT" and "RDPC_ISO.DAT".

Re: Create custom dats?

Posted: Wed May 05, 2010 1:30 am
by ghost
amazing thanks a lot  Image