[RELEASE] 3DS TO CIA by Katsu

Discussion in '3DS - ROM Hacking, Translations and Utilities' started by liomajor, Mar 20, 2015.

  1. liomajor
    OP

    liomajor GBAtemp Maniac

    Member
    1,463
    1,065
    Jun 10, 2008
    United States
    3DS TO CIA 2.07 by Katsu

    What is 3DS to CIA?

    Its a tool designed to convert ROM dumps into installable CIA Files
    with Features for Modifiers who want to Translate or edit Content.

    [​IMG]

    Required:

    A 3DS capeable to generate XORPADS for legit 3DS to CIA
    Python 2.7
    (Add Path to Windows Enviroments!)
    Example: c:\windows\system32;c:\python27

    How to use:

    .3ds to cia:

    1. Create your xorpads and put all files into 3ds to cia dir next to 'Make' batch
    2. *Drag n drop .3ds / .3dz on 'Make' batch
    3. Choose your Options and start

    Decrypt selfmade cia: - no legit cia -

    1. Drag and drop your cia on 'Make' batch

    Extract decrypted .3ds: - no legit/rebuilded/regenerated 3ds -

    1. Rename your .3ds to <filename_modified.3ds>
    2. Drag and drop your .3ds on 'Make' batch

    Quick rebuild from files inside folder:


    [​IMG]

    All files need to be inside the same Folder
    (romfs.bin/banner.bin/code.bin/exheader.bin/icon.bin/logo.bin/.rsf***)

    1. Edit your .rsf to work as .3ds NOT .cia!
    2. Drag and drop your Folder on 'Make' batch

    ***As for rebuilding .3ds, a working file depends on your Skill to modify your .rsf

    Mostly there is not much to change, make sure to change at least:

    Title / CompanyCode / ProductCode / UniqueId / MediaSize
    MediaType / CardDevice / ExtSaveDataId / SaveDataSize
    and if needed: JumpId

    You can take my "sample-rsf-reb.txt" and fill in the needed Details,
    from exheader.txt / info.txt and "rom_tool -i <gamename.3ds>".

    Features:

    7.x Support
    Region Free fix
    Offers injecting original EXHEADER
    Offers spoofing Firmware to 4.x
    Offers using your own .rsf (no exinjector)
    Download Play Support
    Includes Manual when detected
    Auto RSF - big thx @ Vappy
    Decrypts manual created cia
    Rebuild .3DS (Target -G)
    Allows to de/re crypt romfs for editing purpose
    Quick rebuild .3DS per Folder drag n drop
    Quick rebuild .cia per Folder drag n drop (requires .3ds/.cci)
    Supports decrypted .3ds from rxTools

    GREEN - ALL OK / RED - SOMETHING WENT WRONG

    Included in Package:

    RomFS Builder - Thx @ SciresM
    ExInjector - Thx @ piratesephiroth
    3DSExplorer
    Notepad++
    ctrKeyGen
    Launcher.dat
    slot0x25KeyX (you need to insert the key - google it!)

    What is new in 2.04?

    Added Decrypt9 Bootstap Version for Ninjhax (new3DS .3dsx)
    Added Option 8 "check .rsf for auto generation" (manual check before building cia if rsf fails)
    Speedup when DLP and or Manual is included
    Minor changes and Bugfixes

    What is new in 2.05?

    Fixed Bug for .rsf generation
    Added libeay32.dll

    What is new in 2.06?

    Rebuilding from _modified.3ds / .cia got completly rewritten
    Changed main Menu to allow more options
    Rebuild .3ds will now includes original Exheader to keep compatibility to updates/dlc
    Excract ROMFS is now aviable for all main functions
    Added option to keep decrypted files
    Original file is now in "original" folder after using 3ds_to_cia
    Some cleanup from old code / minor bugfixes

    What is new in 2.07?

    Fixed a small bug to keep original
    Speeded up cia repack

    Download:

    2.02 SO / ZS
    2.05 SO / ZS
    2.06 SO / ZS
    2.07 SO / ZS

    If you want to improofe my batch / add features or repost it,
    feel free to do so, as long you share it to everyone ;)
     
  2. Apache Thunder

    Apache Thunder I have cameras in your head!

    Member
    4,123
    4,075
    Oct 7, 2007
    United States
    Levelland, Texas
    Will this work with roms decrypted using rxTools? Unlike the xorpad method, the roms get decrypted directly with no xorpads, so the file I would feed this thing has no encryption and wouldn't need xorpads. The only issue is if the batch scripts in this can account for that.
     
    Margen67 likes this.
  3. liomajor
    OP

    liomajor GBAtemp Maniac

    Member
    1,463
    1,065
    Jun 10, 2008
    United States
    I've updated my Batch to Support rxTools decrypted .3ds directly to rebuild either, .3ds or .cia.
     
    Margen67 likes this.
  4. -LuCas-

    -LuCas- Member

    Newcomer
    34
    12
    Dec 6, 2014
    Italy
    ctrtool.exe has stopped working.
    I compiled ctrtool from the source.
    And now it's working

    link: ctrtool
     
    Margen67 likes this.
  5. MrJason005

    MrJason005 √2

    Member
    2,281
    1,250
    Nov 26, 2014
    Greece
    Κάπου
    Misread it as CIA to 3DS... ah...
    Still, this is nice
     
  6. Apache Thunder

    Apache Thunder I have cameras in your head!

    Member
    4,123
    4,075
    Oct 7, 2007
    United States
    Levelland, Texas
    Doesn't make rom have a command to convert CIA to 3DS? Just use that. ("makerom -ciatocci nameofrom.cia" to be specific) Just use that if you want to convert CIAs to 3DS. May not work if the CIA is encrypted with production keys. Zero key stuff like CIAs converted from 3DS or repacked ones should allow you to convert to 3DS.

    Just tried to use a decrypted 3DS game. Your batch file still stops at the missing xorpads error.

    EDIT: Seems you might not have uploaded the new version for this yet....
     
    Margen67 likes this.
  7. liomajor
    OP

    liomajor GBAtemp Maniac

    Member
    1,463
    1,065
    Jun 10, 2008
    United States
    I did, have you renamed the file as mentioned in 1st post?
     
  8. Apache Thunder

    Apache Thunder I have cameras in your head!

    Member
    4,123
    4,075
    Oct 7, 2007
    United States
    Levelland, Texas
    Ahh now it works. Mine has "_decrypted" in the file name. But didn't know filename mattered. I changed it to _modified in the filename and it seems to be working now. :P
     
  9. Jao Chu

    Jao Chu GBAtemp Advanced Maniac

    Member
    1,921
    1,211
    Aug 20, 2013
    straya m8
    Is this the same Katsu from wololo.net? (Vita scene dev)
     
    Margen67 likes this.
  10. MAXLEMPIRA

    MAXLEMPIRA Legends are Made from True Stories...

    Member
    867
    167
    Jun 24, 2012
    Mexico
    Kanto <- Hyrule -> Unova
    Hello, thanks for this usefull tool, I tried to convert MK7 and Sm4sh to cia, from my own dumps, I've dumped many times these roms, thinking the problem could be my dumps, but without any succes, I've converted PKMN XYORAS already and them have converted, installed and played perfect. When install MK7 and start, it stay in a 3DS Logo loop... and with Sm4sh the screen shut off and on, like normal, but then it stays there, in black screen, I have to do a hard-reset to shut down my 2DS, I left every option normal :/ any idea? Thanks!
     
  11. breaktemp

    breaktemp D-Sun who was called D-Moon

    Member
    840
    390
    Mar 17, 2008
    United States
    TSU...no.1 in tha hood
    hmm...can someone explain what is meant by "A 3DS capeable to generate XORPADS" ?

    * thanks in advance *

    also, just to get my facts straight, CIA stands for CTR Importable Archive ?
     
  12. MAXLEMPIRA

    MAXLEMPIRA Legends are Made from True Stories...

    Member
    867
    167
    Jun 24, 2012
    Mexico
    Kanto <- Hyrule -> Unova
    To generate those XORPads you need a 3DS with the launcher.dat(to generate XORPaads not the Gateway), slot0x25keyx.bin, and ncchinfo.bin(of the game) on the big SD card, this means you need a 3DS capable to run launcher.dat, just search which one work for you depending on you Firmware.
    I think there is a way to create CIA without XORPads with rxTools-something, I haven't tried this.

    someone have a guide to create RSF? I can't find :/
     
    breaktemp likes this.
  13. liomajor
    OP

    liomajor GBAtemp Maniac

    Member
    1,463
    1,065
    Jun 10, 2008
    United States
    This is for 3DS to CIA conversion with dumped .3ds for decryption. You can't do this without a 3DS between 4.1 - 9.2 with the given Tools.

    Simply take a look inside my sig. For rxTools decrypted .3ds, you can take my "sample-rsf-reb.txt"
    and fill in the needed Details from created exheader.txt/info.txt and "rom_tool -i <gamename.3ds>".
     
    MAXLEMPIRA likes this.
  14. breaktemp

    breaktemp D-Sun who was called D-Moon

    Member
    840
    390
    Mar 17, 2008
    United States
    TSU...no.1 in tha hood
    MAXLEMPIRA

    Thanks for the explanation, and it appears my 3DS is currently on "Ver. 9.2.0-20U"

    * not sure if that is in the firmware range of using this *

    Hmm, so I would also need a "Gateway" to install the CIA file ?
     
  15. Asia81

    Asia81 In my Ecchi World <3

    Member
    5,150
    2,567
    Nov 15, 2014
    France
    Albi
    Yeah, Gateway.
    Or downgrade to 4.5 and use a Custom firmware
     
    breaktemp likes this.
  16. breaktemp

    breaktemp D-Sun who was called D-Moon

    Member
    840
    390
    Mar 17, 2008
    United States
    TSU...no.1 in tha hood
    Asia81

    Okay, and good looking out ^_^ !!

    * now to look into getting a Gateway, or finding someone close by with one *

    So once a CIA is installed on the system, using Gateway, would one need the Gateway to run the CIA ?
     
  17. Asia81

    Asia81 In my Ecchi World <3

    Member
    5,150
    2,567
    Nov 15, 2014
    France
    Albi
    Yes, if you install a CIA using gateway, you will always need gateway.
    Gateway is needed to enter in Emunand, and Emunand run CIA installed
     
    Margen67 and breaktemp like this.
  18. blindseer

    blindseer Past Generation Gamer

    Member
    355
    183
    Jan 17, 2015
    United States
    Earth
    Just saw this update today, I've been using your 2.00 converter for quite awhile now, and its the best one I've come across!
     
    liomajor likes this.
  19. weatMod

    weatMod GBAtemp Advanced Maniac

    Member
    1,973
    623
    Aug 24, 2013
    United States
    "A 3DS capeable to generate XORPADS for legit 3DS to CIA"

    any way there will ever be a tool created that incorporates some citra source to make a 100% automated 100% pc based solution?
    can xorpads be even be generated with citra?
     
    Margen67 likes this.
  20. Subtle Demise

    Subtle Demise h

    Member
    1,460
    1,645
    Sep 17, 2009
    United States
    Citra doesnt emulate the aes engine and probably never will.
     
  21. powersaver

    powersaver GBAtemp Regular

    Member
    297
    31
    Mar 15, 2015
    United States
    Can anyone confirm v2.02 woks with rxTools after adding '_modified' to the filename?

     
  22. powersaver

    powersaver GBAtemp Regular

    Member
    297
    31
    Mar 15, 2015
    United States
    Anyone know how to convert 'Donkey Kong Country Returns 3D' (CTR-AYTE)?