Need some information on NDS file compression

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

Jun 21, 2010
  1. KazoWAR
    OP

    Member KazoWAR GBAtemp Advanced Maniac

    Joined:
    Aug 12, 2008
    Messages:
    1,749
    Location:
    Winter Haven
    Country:
    United States
    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

    Member DarthNemesis GBAtemp Maniac

    Joined:
    Feb 19, 2008
    Messages:
    1,208
    Country:
    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

    Member KazoWAR GBAtemp Advanced Maniac

    Joined:
    Aug 12, 2008
    Messages:
    1,749
    Location:
    Winter Haven
    Country:
    United States
    Ok thanks. If it is standard then there should be a program for it right? I tried googleing but no luck.
     
  4. Zarcon

    Former Staff Zarcon .:~Enigmatic Wanderer~:.

    Joined:
    Nov 6, 2002
    Messages:
    2,907
    Location:
    Toronto, Ontario
    Country:
    Canada
    You're going to be embarrassed when you look at Darth's signature.
    [​IMG]
     
  5. KazoWAR
    OP

    Member KazoWAR GBAtemp Advanced Maniac

    Joined:
    Aug 12, 2008
    Messages:
    1,749
    Location:
    Winter Haven
    Country:
    United States
    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
     

Share This Page