Error allocating memory in CODE.BIN decompression

Discussion in '3DS - ROM Hacking, Translations and Utilities' started by MDashK, Aug 25, 2015.

  1. MDashK
    OP

    MDashK GBAtemp Regular

    Member
    219
    58
    Jul 22, 2011
    Internetus Exploratis
    Has title says, I'm getting this error:

    [​IMG]

    Anyone has any idea why?

    EXEFS.BIN is decrypted, I'm running the CMD:

    ctrtool.exe -t exefs --exefsdir=./exe exefs.bin --decompresscode

    Should work, it has with other games...

    BR,
     
  2. RainThunder

    RainThunder GBAtemp Regular

    Member
    212
    133
    Jun 22, 2012
    Hanoi
    If it's a 7.x game, you have to use MEX.py to merge exefs_norm and exefs_7x xorpad.
     
    MDashK likes this.
  3. MDashK
    OP

    MDashK GBAtemp Regular

    Member
    219
    58
    Jul 22, 2011
    Internetus Exploratis
    exefs_7x xorpad was not created when doing the XORpads.
    Also, everything else was decrypted OK, and I can get the code.bin file from EXEFS.bin if I don't decompress it.
    But I want to decompress it...

    BTW: I'm trying to decompress a CODE.BIN from a CIA/eShop game, and I followed this tutorial:
    https://gbatemp.net/threads/tutorial-how-to-decrypt-extract-and-rebuild-a-cia.388677/

    After further search, you are right.
    Didn't noticed the 7x XORpad the first time. This is what I get for doing stuff like this sleepy like sh*t...

    Problem solved. Thanks!

    Thread closed.
     
    Last edited by MDashK, Aug 25, 2015