Need help with Game-Decrypting and Rebuilding

Discussion in '3DS - ROM Hacking, Translations and Utilities' started by DJPlayer, Jun 3, 2015.

  1. DJPlayer
    OP

    DJPlayer Banned

    Banned
    542
    186
    May 21, 2015
    Netherlands
    Hey Guys,

    I've some problems with decrypting and rebuilding a 3DS Game.
    I want to translate the Game "The Legend of Legacy". Will write some more infos to it later. But first, here's my problem.

    At first, I used a New3DS with Firmware 9.0 and Decrypt9 (via Ninjhax) to create the XORPADs.
    The XORPADs was generated out of the ncchinfo.bin, created with this Script: https://github.com/archshift/Decrypt9/blob/master/scripts/ncchinfo_gen.py
    The XORPAD's were generated successfully
    Warning: Spoilers inside!

    After that, I moved the XORPADs from SD-Card to my AutoCIA-Folder
    Warning: Spoilers inside!

    I decrypted the Rom with AutoCIA
    Warning: Spoilers inside!
    After decrypting, the Output looked like this (I guess the code.bin was decrypted wrong?!)
    Warning: Spoilers inside!

    and when i tried to build it as cia, I got this Error:
    Warning: Spoilers inside!


    What did I have done wrong?
    I tried it with many other tools already (Asia81's Packhack, 3DSLazy, 3DS To CIA Converter v4.1) but I'm not able to build a cia or even decrypt the RomFS correctly...

    This is the Game I wanted to decrypt:
    Name: "The Legend of Legacy"
    Rom-Info:
    Code:
    [+] CCI Image Details
     Media Type:            CARD1
     Media Size:            1 GB (8 Gbit)
     CCI Data Size:         843 MB (0x34b90000 bytes)
     CCI File:
      > Size                843 MB
      > Status              Trimmed
     Additional Device:     EEPROM
     Partition Count:       3
     Min 3DS Firm:          8.1.0-XJ
     Save Crypto:           6.0.0-11 KeyY Method
    [+] CXI Partition
     Product Code:          CTR-P-BLLJ
     Company Code:          00
     Unique ID:             0131c
     Build Type:            Release
     SDK Version:           9.12.0 Release
     Req. Kernel Version:   2.45-2
    [+] CFA Partitions
     E-Manual:              Yes
     DLP Child:             No
     Update Data:           Yes
    Someone who can help me with this?
    Did I generated the XORPADs wrong?
    Can someone send me working XORPADs if I made it wrong?
    I really want to get this Game to work AND translate it..
    I was able to get the romfs from some guys but after rebuild it, I'm still not able to rebuild the game as 3ds or cia...
     
    Sliter likes this.
  2. DJPlayer
    OP

    DJPlayer Banned

    Banned
    542
    186
    May 21, 2015
    Netherlands
    Anyone who can help me with this?
     
  3. rotebrotobias

    rotebrotobias GBAtemp Maniac

    Member
    1,039
    256
    Jan 31, 2015
    Did you edit the files before trying to build it as a .cia or did you only try to build it as a .cia while decrypting it first? If you've edited the files and want to rebuild it then use RomFS Builder and 3DS Builder. If you only want to build it as a .cia then i can do that and send the file to you.
     
  4. DJPlayer
    OP

    DJPlayer Banned

    Banned
    542
    186
    May 21, 2015
    Netherlands
    I've tried to just decrypt it and rebuild it as cia. Sure, I want to edit the files for translations but if I'm not able to rebuild it, I don't need to edit it.
    I guess it's about wrong XORPADs or something (I'm using N3DS 9.0 + Ninjhax Version of Decrypt9).
    For Assassination Classroom I had the same problem but someone send me his XORPADs for it and it worked.
    it would help if you can send me the "DecryptedExheader.bin", "DecryptedExeFS" and "DecryptedRomFS" or the XORPADs you've generated and which worked to decrypt and rebuild it.

    Would you send me your XORPADs for it or the named Files above?
    Otherwise if you use AutoCIA, could you send me your tmp-folder after decrypting the game?
    working XORPADS would be epic
     
  5. rotebrotobias

    rotebrotobias GBAtemp Maniac

    Member
    1,039
    256
    Jan 31, 2015
    Ok sure i'll decrypt it. No problem. I'll send the files as soon as i'm done.
     
  6. DJPlayer
    OP

    DJPlayer Banned

    Banned
    542
    186
    May 21, 2015
    Netherlands
    Thank you mate :)

    btw. have the same problem with the 1.1 Update of Assassination Classroom.
    posted it in the thread and have the same problem with the romFS (IVFC segment error, RomFS error).
    Would be cool if you could help us with this, too :)
     
  7. rotebrotobias

    rotebrotobias GBAtemp Maniac

    Member
    1,039
    256
    Jan 31, 2015
    Sorry i'm late with this. I'm decrypting the files now.
     
    DJPlayer likes this.
  8. DJPlayer
    OP

    DJPlayer Banned

    Banned
    542
    186
    May 21, 2015
    Netherlands
    Thank you :) Can't wait for it °^°
     
  9. rotebrotobias

    rotebrotobias GBAtemp Maniac

    Member
    1,039
    256
    Jan 31, 2015
    Also, i'm not very familliar with OpenCia, so i'll try to rebuild it with RomFS Builder and 3DS Builder.
     
  10. DJPlayer
    OP

    DJPlayer Banned

    Banned
    542
    186
    May 21, 2015
    Netherlands
    Just try to decrypt and extract the stuff from the RomFS :D
    I always get the error that there's a error with it.
    "could not read romfile" on AutoCIA
    and
    "IVFC segment error, RomFS error" with ctrtool
     
  11. rotebrotobias

    rotebrotobias GBAtemp Maniac

    Member
    1,039
    256
    Jan 31, 2015
    I don't know it's anything wrong with AutoCIA or Decrypt9. I've already decrypted the rom and have the files in a .zip file, but i'm gonna try now to see if i can rebuild it.
     
    DJPlayer likes this.
  12. DJPlayer
    OP

    DJPlayer Banned

    Banned
    542
    186
    May 21, 2015
    Netherlands
    very well. If you got it to work, could you send me the following things?
    - ncchinfo_gen.py you used
    - the Xorpads
    - decrypted files

    would be epic :)
     
  13. rotebrotobias

    rotebrotobias GBAtemp Maniac

    Member
    1,039
    256
    Jan 31, 2015
    I didn't use any xorpads or ncchinfo_gen.py. I decrypted the rom directly with rxTools, then decompressed it.

    Do you know if the rom is SDK6 or lower, or SDK7 or higher?
     
    Last edited by rotebrotobias, Jun 4, 2015
  14. DJPlayer
    OP

    DJPlayer Banned

    Banned
    542
    186
    May 21, 2015
    Netherlands
    ahh okay, can't use rxtools on my n3DS :/ won't load...
    [+] CXI Partition
    Product Code: CTR-P-BLLJ
    Company Code: 00
    Unique ID: 0131c
    Build Type: Release
    SDK Version: 9.12.0 Release
    Req. Kernel Version: 2.45-2


    SDK7 or higher
     
  15. rotebrotobias

    rotebrotobias GBAtemp Maniac

    Member
    1,039
    256
    Jan 31, 2015
    Thank you.
     
  16. rotebrotobias

    rotebrotobias GBAtemp Maniac

    Member
    1,039
    256
    Jan 31, 2015
    Sorry it's taking a little bit of time. Give me 15 minutes.
     
  17. DJPlayer
    OP

    DJPlayer Banned

    Banned
    542
    186
    May 21, 2015
    Netherlands
    don't worry, have enough time :D
     
  18. rotebrotobias

    rotebrotobias GBAtemp Maniac

    Member
    1,039
    256
    Jan 31, 2015
    Warning: Spoilers inside!
    It worked with rebuilding the rom, so here's the .zip with all the decompressed files. Download
    To rebuild it when done, use first RomFS Builder and then 3DS Builder in this zip file. Download

    By the way, good luck with the translating and all that! I can't wait to try The Legend of Legacy on my 3DS!

    If there's anything you want help with then you can just ask me.
     
    Last edited by rotebrotobias, Jun 4, 2015
    DJPlayer likes this.
  19. DJPlayer
    OP

    DJPlayer Banned

    Banned
    542
    186
    May 21, 2015
    Netherlands
    Thanks mate! I hope I'll get it to work here :)
    But you should remove the links from your post because sharin original nintendo files is not allowed in threads like this.
     
  20. rotebrotobias

    rotebrotobias GBAtemp Maniac

    Member
    1,039
    256
    Jan 31, 2015
    See what i did with the download?