Help decompressing/compresing "game.bin.z" from VC game

Discussion in 'Wii - Hacking' started by sr_corsario, Apr 20, 2012.

  1. sr_corsario
    OP

    Member sr_corsario GBAtemp Fan

    Joined:
    Jun 11, 2008
    Messages:
    423
    Country:
    Spain
    Hello!!!
    This project its about to decompress and then compress again a file from a Virtual Console game (wii)
    The file come from the last Virtual Console NEOGEO game realised last tuestday (Metal Slug 3)
    The purpouse is repack the file with another unrealised game (is called "injection") as i did timeee ago.


    I did a very similar request with the same file name. On this thread -->(http://forum.xentax.com/viewtopic.php?t=4906)

    (last time it was used "Simplyzip" with option "External progs"-->Zlib (pack/unpack) or Xpert 2.0 tool decompres/compress it) An "extrange" type of zlib compression


    Now It has just appear a new compression type (for me) and im not able to decompress it.

    Information:

    -File name game.bin.z
    -Size 35.732.788bytes
    -Start with "header" 43 52 .. .. ..
    [​IMG]


    -End with:
    [​IMG]


    -Suppose:

    *-Supposed extracted size 93.192.256 bytes (the sum of header+game file+bios)

    *-The result of file extraction allways was a single file, for instance i suppose it will be the sema.
    If not, it could have:
    Header: 64bytes (used to be)
    M file:524.288 bytes (original neogeo game file)
    S file:262.144 bytes (original neogeo game file)
    V file(s):16.777.216 byte (original neogeo game file)
    C file(s):67.108.864 bytes (modified original neogeo game file )
    P file(s):8.388.608 bytes (modified original neogeo game file)
    Bios: 131.072 bytes (a special bios for this purpose) "similar" to a regular neogeo bios

    *-The old extructure of the extracted file used to be: (the file we want to obtain)
    *Header (64bytes) with a list of file sizes or offset where they start (depends on versions)
    *Game files (all joined one after another, thats the reason of the header)
    *Bios (131.072 bytes), on lastest version not necesary at the end of the file

    -links removed-


    Thanks in advance
     


  2. Coto

    Member Coto GBAtemp Addict

    Joined:
    Jun 4, 2010
    Messages:
    2,278
    Country:
    Chile
    Uhm.. isn't this copyrighted code you show/debug/upload?
     
  3. sr_corsario
    OP

    Member sr_corsario GBAtemp Fan

    Joined:
    Jun 11, 2008
    Messages:
    423
    Country:
    Spain
    How could I request it then?¿
     
  4. G0dLiKe

    Member G0dLiKe who needs a title ;)

    Joined:
    Aug 2, 2009
    Messages:
    1,674
    Country:
    United States
    its only about the compression, how it works, get uncompressed and compress it back to the same size as the original.

    sr_corsario is doing a great job on VC Injects so knowing how this works would help him to inject bigger sized games like MotW, KoF 98, 99, 2000 and the likes into existing VC games.
     
  5. Coto

    Member Coto GBAtemp Addict

    Joined:
    Jun 4, 2010
    Messages:
    2,278
    Country:
    Chile
    Yeah I'm not usually a screaming bitch when it comes down to this.. but I just wanted to warn about it. Good luck on this project.
     
  6. sr_corsario
    OP

    Member sr_corsario GBAtemp Fan

    Joined:
    Jun 11, 2008
    Messages:
    423
    Country:
    Spain
    Mmmm first of all i would like to apologice if some information or files are not allowed by the forum rules.

    And thanks again to G0dLiKe for his bigs efforts helping me on many things.
     
  7. G0dLiKe

    Member G0dLiKe who needs a title ;)

    Joined:
    Aug 2, 2009
    Messages:
    1,674
    Country:
    United States
    yeah np mate, anyone got an idea on how this can be solved?
     
  8. sr_corsario
    OP

    Member sr_corsario GBAtemp Fan

    Joined:
    Jun 11, 2008
    Messages:
    423
    Country:
    Spain
    Acording with file header, "43 52 30 30" it could be variant of CRUSH compression. "cr00"

    CRUSH compression as description : "Powerful LZ featuring extremely fast decompression" (LZ77)

    Moreover, nintendo used many times diferents LZ compresion types.

    Font:


    Anyone could help on this project???

    Thanks in advance
     
  9. G0dLiKe

    Member G0dLiKe who needs a title ;)

    Joined:
    Aug 2, 2009
    Messages:
    1,674
    Country:
    United States
    this would probably needed to be coded into the compressor
     
  10. G0dLiKe

    Member G0dLiKe who needs a title ;)

    Joined:
    Aug 2, 2009
    Messages:
    1,674
    Country:
    United States
    well i am a bit confused, 36Mb is good, right.

    Did you compress it back to 36mb or not?
     
  11. sr_corsario
    OP

    Member sr_corsario GBAtemp Fan

    Joined:
    Jun 11, 2008
    Messages:
    423
    Country:
    Spain
    Heyy!

    On the last post i did a reflection about compression types and compression ratios. Moreover the fact nintendo usually used LZ compression. Sorry if i dont explain properlly.

    I have good news... The original "rom" from mslug 3 is encrypted, for this reason compressor programs cant get a good ratio... AFTER decrypt them (S file and C files) the compression rate (with a LZ compressor or winrar) is very similar to our game.bin.z Thats a good new :D

    Will see..
     
    1 person likes this.
  12. G0dLiKe

    Member G0dLiKe who needs a title ;)

    Joined:
    Aug 2, 2009
    Messages:
    1,674
    Country:
    United States
    nice :)

    make sure to keep us updated.
     
  13. sr_corsario
    OP

    Member sr_corsario GBAtemp Fan

    Joined:
    Jun 11, 2008
    Messages:
    423
    Country:
    Spain
    Not many progress at the moment... im asking on diferents forums but ... there are few interest :cry:

    Testing "quickbms" to check diferents sorts of compression

    http://aluigi.org/quickbms.htm

    Edit:

    I didnt get good reasolts ...

    HEEELPPPPP!!!
     
  14. sr_corsario
    OP

    Member sr_corsario GBAtemp Fan

    Joined:
    Jun 11, 2008
    Messages:
    423
    Country:
    Spain
    :cry: :angry: :sad: DISASTER !!!

    Having a look into 1.app I found this, where we can read "REX-PPC 2.4.2 55.0 (RevoEX-2.4)" and NETLockCrypto etc etc


    [​IMG]

    And this... where i think its making reference to game.bin.z file because "CR00" is the file header :cry: and then ... "NETAESDecryp" :cry:


    [​IMG]



    DISASTER if game.bin.z is compressed with password/key


    Obviouslly i looked for this values in a "old" 1.app and didnt appear!! :cry:

    Heelpppp!!! :cry:
     
  15. G0dLiKe

    Member G0dLiKe who needs a title ;)

    Joined:
    Aug 2, 2009
    Messages:
    1,674
    Country:
    United States
    well maybe a newer SDK can help with this but honestly I dunno.

    Anyone can give some insight? giantpune to the rescue ;)
     
  16. sr_corsario
    OP

    Member sr_corsario GBAtemp Fan

    Joined:
    Jun 11, 2008
    Messages:
    423
    Country:
    Spain
    Any one¿?¿?
     
  17. G0dLiKe

    Member G0dLiKe who needs a title ;)

    Joined:
    Aug 2, 2009
    Messages:
    1,674
    Country:
    United States
    yeah would be a blast if we can get this to uncompress and compress as it should.

    were are all the file gurus when you need em :)
     
  18. G0dLiKe

    Member G0dLiKe who needs a title ;)

    Joined:
    Aug 2, 2009
    Messages:
    1,674
    Country:
    United States
  19. sr_corsario
    OP

    Member sr_corsario GBAtemp Fan

    Joined:
    Jun 11, 2008
    Messages:
    423
    Country:
    Spain
    I found something on a memory dump with dolphin... but not sure if it will work for something... (looking for the decompressed file... not sure...)
     
  20. OriginalHamster

    Member OriginalHamster UStealthy

    Joined:
    Nov 2, 2008
    Messages:
    3,292
    Country:
    Chile
    Is Metal Slug 3 the biggest sized Neo-Geo game?
    I remember original Ironclad is bigger.
    Or are you trying to find if the game uses a new compression method?
     

Share This Page