Extracting sprites from .dat files?

Discussion in 'NDS - ROM Hacking and Translations' started by Teraman, Nov 29, 2010.

Nov 29, 2010
  1. Teraman
    OP

    Newcomer Teraman Newbie

    Joined:
    Jun 26, 2007
    Messages:
    8
    Country:
    United States
    I unpacked a ROM and the /data/chr directory (where I presume all the character animations are) is filled with .dat files. I've searched several guides (including a few on this site), and I've seen other formats (such as .bin and .aar) mentioned but nothing about .dat. I tried the various tile viewers anyway but all I get is a jumbled mess no matter what program settings I use. Is there a certain method used to extract from .dat files, or do the formats have to be reverse-engineered on a game-by-game basis?

    Alternatively, there's a program called CrystalTile2 that seems to be popular but the topic here about the latest version links to a site that seems to be dead. The mirror posted in that topic is also dead. Could anyone provide a download to the latest version of CrystalTile2?

    The game in question, if it matters, is Nine Hours, Nine Persons, Nine Doors.
     
  2. Knyaz Vladimir

    Member Knyaz Vladimir 3DS Hacker

    Joined:
    Apr 18, 2009
    Messages:
    555
    Location:
    Unconfirmed
    Country:
    Canada
    If it's a jumbled mess, either tweak the settings or try to figure out what kind of encryption it has. That's the closest I can get.
     
  3. Noitora

    Member Noitora ::

    Joined:
    Aug 9, 2007
    Messages:
    3,768
    Location:
    Athens
    Country:
    Greece
    Upload a sample file and I'll take a look at it. It's probably compressed.
     
  4. Teraman
    OP

    Newcomer Teraman Newbie

    Joined:
    Jun 26, 2007
    Messages:
    8
    Country:
    United States
    http://www.mediafire.com/?pbhh8ay8pm4uap8

    Also I found CrystalTile2 but my initial testing yields no better results.
     
  5. Noitora

    Member Noitora ::

    Joined:
    Aug 9, 2007
    Messages:
    3,768
    Location:
    Athens
    Country:
    Greece
    OK, just had a look at it from a hex editor. The file seems to have a header. Bytes [0x00-0x10]. Manually remove the header, try to line up the contents of the file with a tile editor ( My personal choice is Tile Molester ) and see what you can get.
     
  6. Teraman
    OP

    Newcomer Teraman Newbie

    Joined:
    Jun 26, 2007
    Messages:
    8
    Country:
    United States
    OK, I'll try that. Thanks for the help.
     
  7. jjjewel

    Member jjjewel GBAtemp Maniac

    Joined:
    Dec 17, 2009
    Messages:
    1,004
    Country:
    United States
    Bytes at Hex 0020 to Hex 021F are your color palette.

    I used CrystalTile2 and got this;

    [​IMG]

    You might need to change the Tile's width and height or adjust some values to make it a proper picture.
    (That's beyond my knowledge. T_T)

    I tried changing some values and got this;

    [​IMG]
     
  8. Teraman
    OP

    Newcomer Teraman Newbie

    Joined:
    Jun 26, 2007
    Messages:
    8
    Country:
    United States
    I see. I've managed to get to this point as well.

    Now, I'm pretty ignorant when it comes to sprite ripping, so could someone with more experience tell me if this is as far as I can hope to get and should piece the rest of the sprite together myself, or is there still more that I could do?
     

Share This Page