ACF files

Discussion in 'NDS - ROM Hacking and Translations' started by Poryhack, Mar 5, 2010.

Mar 5, 2010

ACF files by Poryhack at 9:34 PM (1,562 Views / 0 Likes) 4 replies

  1. Poryhack
    OP

    Member Poryhack GBAtemp Fan

    Joined:
    Oct 18, 2009
    Messages:
    330
    Country:
    United States
    There's a file that I suspect is in the new Pokemon Ranger 3 game that I would like to get at, however the ROM consists mostly of a few large container files with the extension ACF. I wondering if anyone has seen this before and specifically if it has already been "cracked".

    Any and all information is appreciated.

    Here's the first bit of one of the files:
    Code:
    Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
    
    00000000ÂÂ61 63 66 00 20 00 00 00 F0 CD 01 00 7C 26 00 00ÂÂacf. ...ðÍ..|&..
    00000010ÂÂ01 00 00 00 32 00 00 00 00 00 00 00 00 00 00 00ÂÂ....2...........
    00000020ÂÂFF FF FF FF 00 00 00 00 00 00 00 00 00 00 00 00ÂÂÿÿÿÿ............
    00000030ÂÂ8C 00 00 00 70 00 00 00 70 00 00 00 2C 00 00 00ÂÂŒ...p...p...,...
    00000040ÂÂ1C 00 00 00 8C 00 00 00 2C 00 00 00 1C 00 00 00ÂÂ....Œ...,.......
    00000050ÂÂA8 00 00 00 2C 00 00 00 1C 00 00 00 C4 00 00 00¨...,.......Ä...
    00000060ÂÂ30 00 00 00 1C 00 00 00 E0 00 00 00 30 00 00 00ÂÂ0.......à...0...
    00000070ÂÂ1C 00 00 00 FC 00 00 00 04 02 00 00 38 01 00 00ÂÂ....ü.......8...
    00000080ÂÂ34 02 00 00 A8 03 00 00 14 02 00 00 48 04 00 00ÂÂ4...¨.......H...
    00000090ÂÂ98 06 00 00 2C 02 00 00 74 06 00 00 38 00 00 00˜...,...t...8...
    000000A0ÂÂ28 00 00 00 9C 06 00 00 08 1D 00 00 BC 06 00 00ÂÂ(...œ.......¼...
    000000B0ÂÂ58 0D 00 00 9C 38 00 00 FC 0C 00 00 54 1A 00 00ÂÂX...œ8..ü...T...
    000000C0ÂÂ78 29 00 00 18 0A 00 00 6C 24 00 00 04 20 00 00ÂÂx)......l$... ..
    000000D0ÂÂA0 07 00 00 0C 2C 00 00 90 5F 00 00 D8 15 00 00 ....,..._..Ø...
    000000E0ÂÂE4 41 00 00 CC 31 00 00 68 0B 00 00 4C 4D 00 00ÂÂäA..Ì1..h...LM..
    000000F0ÂÂCC 3F 00 00 C4 0D 00 00 10 5B 00 00 40 84 00 00ÂÂÌ?..Ä....[..@„..
     
  2. Barubary

    Newcomer Barubary Member

    Joined:
    Feb 27, 2009
    Messages:
    28
    Country:
    United States
    ACF approximate file format (which is enough to unpack the files):

    Code:
    {
    ÂÂ char[4] magicHeader; // 'acf'
    ÂÂ u32 headerSize; // should be 0x20
    ÂÂ u32 dataStart; // start of file data
    ÂÂ u32 numFiles; // amount of files inside
    ÂÂ u32 unknown1; // I've only seen 1 here
    ÂÂ u32 unknown2; // I've only seen 0x32 here
    ÂÂ u32[2] padding; // at least, I think it is
    ÂÂ FATENTRY[numFiles]; // first entry is dummy
    } ACFHEADER
    
    {
    ÂÂ u32 relativeOffset; // offset relative to dataStart (if 0xFFFFFFFF, ignore it)
    ÂÂ u32 outputSize; // Size of (decompressed) file. Might be a bit more then decompressed size in compression header; pad it with 0s
    ÂÂ u32 inputSize; // if file is LZSS-compressed, size of compressed data. 0 if not compressed.
    } FATENTRY
    You can extract the contents of a .acf file with this java program. Run it with CODEjava -jar acfdump.jar *

    example:

    java -jar acfdump.jar data_game.acf
    It will try to extract any given file, and any file in a given folder with the .acf extension. (it will automatically decompress the files if necessary)
     
  3. Poryhack
    OP

    Member Poryhack GBAtemp Fan

    Joined:
    Oct 18, 2009
    Messages:
    330
    Country:
    United States
    Wow man, I wasn't actually expecting anything, and you've just handed it to me. Is it just my googling that fails or is this something you made yourself?

    Either way, thanks!
     
  4. TM2-Megatron

    Member TM2-Megatron Predacon Commander

    Joined:
    Feb 10, 2009
    Messages:
    1,187
    Location:
    Toronto, Ontario, Canada
    Country:
    Canada
    Are you looking for the Deoxys, Shaymin, Heatran and Manaphy egg Wonder Card data?
     
  5. Poryhack
    OP

    Member Poryhack GBAtemp Fan

    Joined:
    Oct 18, 2009
    Messages:
    330
    Country:
    United States
    That I am.
     

Share This Page