Create custom dats?

Post Reply
MrX_Cuci
Posts: 745
Joined: Mon Jun 08, 2026 1:26 am

Create custom dats?

Post 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
Jackal
Posts: 2598
Joined: Mon Jun 08, 2026 1:26 am

Re: Create custom dats?

Post by Jackal »

The code doesn't allow it afaik.
velocity37
Posts: 184
Joined: Mon Jun 08, 2026 1:27 am

Re: Create custom dats?

Post 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?
MrX_Cuci
Posts: 745
Joined: Mon Jun 08, 2026 1:26 am

Re: Create custom dats?

Post 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/
Last edited by MrX_Cuci on Tue May 04, 2010 7:16 am, edited 1 time in total.
velocity37
Posts: 184
Joined: Mon Jun 08, 2026 1:27 am

Re: Create custom dats?

Post 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".
Attachments
CrappyProgram.zip
Imported Redump attachment 112
(4.54 KiB) Downloaded 1 time
Last edited by velocity37 on Tue May 04, 2010 12:13 pm, edited 1 time in total.
User avatar
ghost
Posts: 165
Joined: Mon Jun 08, 2026 1:26 am

Re: Create custom dats?

Post 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
MrX_Cuci
Posts: 745
Joined: Mon Jun 08, 2026 1:26 am

Re: Create custom dats?

Post 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!
velocity37
Posts: 184
Joined: Mon Jun 08, 2026 1:27 am

Re: Create custom dats?

Post 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".
Attachments
PC_Datsplit.zip
Imported Redump attachment 114
(4.72 KiB) Downloaded 1 time
Last edited by velocity37 on Tue May 04, 2010 8:24 pm, edited 1 time in total.
User avatar
ghost
Posts: 165
Joined: Mon Jun 08, 2026 1:26 am

Re: Create custom dats?

Post by ghost »

amazing thanks a lot  Image
Post Reply