Patch/DLC Converter (SD Decryptor) Guide originally by tjexp

Discussion in '3DS - Tutorials' started by drobb, Nov 12, 2014.

  1. drobb
    OP

    drobb Hunter

    Member
    253
    39
    Dec 29, 2007
    United States
    First of all, this will not work if you have formatted your sysNand.
    I am not responsible if you do something wrong and damage your 3DS

    Updated with v2 - DLC guide / File name fix

    Black = General guide (follow this mostly)
    Red = Update conversion
    Blue = DLC conversion

    I'll guide you through how to convert eShop updates so you can share them with others. The same method can be used for DLC/Themes

    Grab python 2.7: https://www.python.org/download/releases/2.7/

    IMPORTANT: If you want your Update/DLC to look official and only give update notifications when there is a later update
    then: Download Update/DLC from eShop and load DevMenu and find your games ID in the list of programs > Write down
    the version number for example 2.4.0

    1) Open 3DS_SD_Decryptor folder
    2) Point CMD to the 3DS_SD_Decryptor folder (example: cd C:\Users\lostpants\Desktop\Patch Converter v2\SD_Decrypter)
    3) Decrypt SD card by using cmd with: SDinfo_gen.py "G:/Nintendo 3DS/firstIDhere/secondIDhere/" (replace the G with your drive letter)
    (The ID's are long numbers/letters)
    A SDinfo.bin will be made

    4) Place Launcher.dat and SDinfo.bin on SD card and create xorpads by launching DS profile mode with GW exploit installed (This will create a lot of xorpads, need big SD)

    5) Find decrypted xorpads of the updates you want, they are sorted by Unique ID's (Pokemon X update was: title.0004000e.00055d00.content.00000002.app.xorpa d)
    5) DLC will normally start with title.0004008c then your Unique game ID
    6) Find the original file on your SD card in the Nintendo 3DS folder, They will both have same file size and would be inside
    a folder with the games unique ID (if it's a patch It will end in .app - example 00000002.app)
    Patches are normally found within the Title/0004000e folder / DLC is found within the Title/0004008c folder
    7) Move both files (the xorpad and original file) to the make_cia for updates or makerom for DLC directory

    [​IMG]


    8) Open CMD and point it to the above folder (example: cd C:\Users\lostpants\Desktop\Patch Converter v2\make_cia)(cd C:\Users\lostpants\Desktop\Patch Converter v2\makerom for DLC)9) Enter the following and replace the boxes:
    padxorer [originalfilename].app [xorpadname].app.xorpad
    Code:
    Example: padxorer 00000002.app title.0004000e.00055e00.content.00000002.app.xorpad
    You will need to do this multiple times for DLC as most have multiple files
    [​IMG]


    You should get a .out file

    10) Use CMD again and enter the following and replace the needed parts
    Remember the patch version? This is where it's needed. You seperate the 3 numbers into major/minor/micro and for the id_0 you need to find the original ID (its the
    file name so lets say 00000002.app You need to convert that 2 from Hex to Decimal and enter it there: 2 hex in decimal is still 2 so we would put id_0=00000002)
    Website for converting Hex to Decimal: http://www.binaryhexconverter.com/he...imal-converter

    make_cia -o anyname.cia --major=(1st number) --minor=(2nd number) --micro=(3rd number) --content0=********.app.out --id_0=********

    Code:
    For example: make_cia - o anyname.cia --major=3 --minor=5 --micro=0 --content0=00000002.app.out --id_0=00000002

    10 DLC) Remember the version? This is where it's needed. You seperate the 3 numbers into major/minor/micro
    The FileNumber depends on how many files you have, so for example we have 2 - first file number is 0 then we need to repeat the command for the next .outfile but with
    1 as the FileNumber
    FileID is the number of your file (ours is 00000001) so we have to convert that number from Hex to Decimal and enter it there

    _makerom -f cia -target t -content ********.app.out:FileNumber:FileID -content ********.app.out:Filenumber:FileID -dlc -major (1st) -minor (2nd) -micro (3rd) -o anynamedlc.cia


    Code:
    Example:
    _makerom -f cia -target t -content 00000000.app.out:0:0 -content 00000001.app.out:1:1 -dlc -major 0 -minor 0 -micro 0 -o fantasylifedlc.cia
    (Thanks to Rurounik99 for this)


    [​IMG]

    If done correctly you should have a Update or DLC cia which can be installed via DevMenu



    Code:
     
    Special thanks to Rurounik99 & cearp/liomajor of GBATemp
    Download links:

    Code:
    http://www18.zippyshare.com/v/31118730/file.html
    http://7j84rpx06o.1fichier.com/
    https://mega.co.nz/#!q1Vj0AJQ!O0GVizZxePssIxQx_yBKncEUe_fSP4DniE5WzavbE9o
    http://filecloud.io/s0bqhj7w
    http://dl.free.fr/f4myeS4k1
    The reason I made a pack and tutorial is that we need more people dumping different region items (especially Japanese updates)
    [​IMG]
     


  2. cearp

    cearp the ticket master

    Member
    7,480
    4,711
    May 26, 2008
    Tuvalu
    if anyone needs mac tools to do this just let me know :) (like 3dstmd, padxorer, makerom, extdata_tool)
    (funny how i helped rurounik999 with this, and friendsxix helped me with this, i have to give him lots of credit since i didn't find out anything by myself!) it's just one big credit circle
     
    Margen67 and Liberty like this.
  3. tjexp

    tjexp Happy New Year!

    Member
    735
    233
    May 20, 2012
    England
    Hopefully get some more dumping soon then :D

    (and yes this is a crappy guide)
     
  4. drobb
    OP

    drobb Hunter

    Member
    253
    39
    Dec 29, 2007
    United States
    when i asked for permission to copy this i was reading cearp's thread about his updates and happen to see the guide on that other site and thought id ask for permission. i didnt even think that you, cearp, had helped with the guide or that tjexp/lostpants were one and the same and even on this site. should have figured. just wanted to help. oh well. :lol:
     
  5. cearp

    cearp the ticket master

    Member
    7,480
    4,711
    May 26, 2008
    Tuvalu
    helped with the guide? i'm not sure which guide, or other site - i only do stuff on gbatemp, i'm just saying i shouldn't get credit, well, only for my time that i will spend dumping the updates :D
    let's hope someone makes a nice gui wrapper for people :) i might make a mac version but when i start projects i always give them too much time
     
  6. tjexp

    tjexp Happy New Year!

    Member
    735
    233
    May 20, 2012
    England
    Well still I had to give credit since you helped me out :D
     
    cearp likes this.
  7. cearp

    cearp the ticket master

    Member
    7,480
    4,711
    May 26, 2008
    Tuvalu
    yeah well it basically comes down to the fact that makerom > make_cia ;)
     
    tjexp likes this.
  8. liomajor

    liomajor GBAtemp Maniac

    Member
    1,463
    1,065
    Jun 10, 2008
    United States
    Hehe, with "_"makerom i did start a fire and its burning hot :)

    Since the basics are from gbatemp, it just came home.
     
  9. cearp

    cearp the ticket master

    Member
    7,480
    4,711
    May 26, 2008
    Tuvalu
    i don't get it, what is the _ for?
     
  10. Sheimi

    Sheimi A cute Vixen!

    Member
    1,974
    880
    Oct 22, 2009
    United States
    Give me a bit and I'll dump FlipNote Studio 3D Update.
     
  11. liomajor

    liomajor GBAtemp Maniac

    Member
    1,463
    1,065
    Jun 10, 2008
    United States
    When i started to make my own batch for 3ds_to_cia i had different makerom's (x86 & x64),
    so i decided to give x64 "_" and scripted my batch around it because i'm on 64bit ;)
     
    cearp and tjexp like this.
  12. cearp

    cearp the ticket master

    Member
    7,480
    4,711
    May 26, 2008
    Tuvalu
    i've dumped it already, read my post at the thread i made a bit ago, but it doesn't work (at least with the bbb rom) i think the update isn't a normal update, since it's an app and not a game, if you repack it right though nice, since i'm going to sleep now :)


    -pack it as a game and not a patch i think, for the people who reaaaallly understand this stuff i guess they could take apart my cia file i uploaded and repack it to make it work for others
     
  13. tjexp

    tjexp Happy New Year!

    Member
    735
    233
    May 20, 2012
    England
  14. MelonGx

    MelonGx GBAtemp Advanced Maniac

    Member
    1,634
    439
    Jan 8, 2009
    China
    Why "CXI decryption failed (Check CXI Key)" is ignored?

    (Edit: This CXI decryption failure doesn't affect the CIA Patches' working. But it's confusing newcomers.)
     
  15. Rulesless

    Rulesless Member

    Newcomer
    36
    6
    Nov 13, 2014
    Italy
    Problem:

    a.jpg

    ???
    Same problem making it in root
    Why?
    Pyton installed and correct firstID & secondID.
     
  16. MelonGx

    MelonGx GBAtemp Advanced Maniac

    Member
    1,634
    439
    Jan 8, 2009
    China
    Bug report (about DLC packaging)

    Code:
    _makerom -f cia -target t -content ********.app.out:FileNumber:FileID -content ********.app.out:Filenumber:FileID -dlc -major (1st) -minor (2nd) -micro (3rd) -o anynamedlc.cia
    This doesn't work for some Japanese DLCs packaged with makerom_x86.

    Tested failed:
    Fire Emblem Awakening (JPN) - all DLCs except SpotPass
    Taiko no Tatsujin Don-chan no Jikuu Daibouken - all DLCs

    Both CIAs are generated & installed successfully.
    But all the contents are unable to be recognized in the game.

    I'm doubting if it's a x86 makerom problem.
    But I haven't had any x64 OS.
     
  17. dplaktos

    dplaktos ^ tri force heroes REALLY needs this emote

    Member
    558
    453
    Jul 8, 2014
    uh'straya
    I've tried to pack the Phoenix Wright AA: DD Special Episode DLC.

    It generates and installs fine, but the game can't recognise it.
    Do I need to include the .tmd and the .cmd as well? Or could it be some other issue?

    I have 3 .app.out files and used those as per the guide. This was the command I used:

    Code:
    _makerom -f cia -target t -content 00000000.app.out:0:0 -content  00000005.app.out:1:5 -content 0000000d.app.out:2:13 -dlc -major 0 -minor 2 -micro 0 -o pwaadd_dlc.cia
    DevMenu reported the version of the 'true' DLC as 0.2.0, and the same with the .cia I generated.

    Any idea what I'm doing wrong? Are my FileNumber and FileID values incorrect? Thanks
     
  18. cearp

    cearp the ticket master

    Member
    7,480
    4,711
    May 26, 2008
    Tuvalu
    after you install them, do they appear in devmenu as dlc, and removeable - or are they hidden? are they in the correct folder in your sd card after installing?
     
  19. MelonGx

    MelonGx GBAtemp Advanced Maniac

    Member
    1,634
    439
    Jan 8, 2009
    China
    BigBlueMenu - Recognized as DLC
    Removable - Yes
    Hidden - No
    CorrectFolder - Yes. Completely (All the filenames are matched)

    System Setting (GW3D 9.2.0-20J) - Data Management - DLC Management - No. It is recognized as a null content, with no name & 0 block
     
  20. cearp

    cearp the ticket master

    Member
    7,480
    4,711
    May 26, 2008
    Tuvalu
    i'm sorry... maybe some dlc just cannot be repacked properly yet by the tools, or, there is some underlying ap that GW need to patch out... not sure. all i know is i managed to get fantasy life dlc working for someone.. but that's the only one i tried...