Need some information on NDS file compression

Discussion in 'NDS - ROM Hacking and Translations' started by KazoWAR, Jun 21, 2010.

  1. KazoWAR
    OP

    KazoWAR GBAtemp Advanced Maniac

    Member
    1,801
    685
    Aug 12, 2008
    United States
    Winter Haven
    I have no idea what to do. I need to extract the contents of a file that is found in a NDS game. I looked at the file under a hex editor and was able to find bits resembling the original file, but it looks like its encrypted or something.

    Here is an example.

    http://dl.dropbox.com/u/3706406/Sonic2.png
     
  2. DarthNemesis

    DarthNemesis GBAtemp Maniac

    Member
    1,211
    41
    Feb 19, 2008
    United States
    It's standard LZ77 type 11 compression with every pair of bytes reversed on the output. The file begins at 0x385C00 and ends by 0x390400.
     
  3. KazoWAR
    OP

    KazoWAR GBAtemp Advanced Maniac

    Member
    1,801
    685
    Aug 12, 2008
    United States
    Winter Haven
    Ok thanks. If it is standard then there should be a program for it right? I tried googleing but no luck.
     
  4. Zarcon

    Zarcon .:~Enigmatic Wanderer~:.

    Former Staff
    2,907
    271
    Nov 6, 2002
    Canada
    Toronto, Ontario
    You're going to be embarrassed when you look at Darth's signature.
    [​IMG]
     
  5. KazoWAR
    OP

    KazoWAR GBAtemp Advanced Maniac

    Member
    1,801
    685
    Aug 12, 2008
    United States
    Winter Haven
    Oh wow thanks.

    EDIT: This stuff is hard. [​IMG]

    I am trying to extract the ROMs in the file so that I can do what I did in reverse to put different ones back in. I was in the process of piecing together Sonic 2 but ran in to a road block. The next junk of data in the ROM I seem to be missing from what I got out of Game.pak