DSHack

Archive Generated December 23rd, 2018
How to extract files from a .cia ?
Author Posted on 2016/08/18
#2090
Louiskovski I have a CIA and really want to extract the things from the file. I searched a lot of time though the internet and found out, that ctrtool can extract the things. But unfortunately, i don't understand which command i have to enter. Either it just displays information or it creates a ".0000000" file or something.
Can someone help me?
Thanks in advantage :-)
Author Posted on 2016/08/18
#2091
MKGirlism In CMD :
ctrtool --contents=whatever whatever.cia > nul
ren whatever.0000.0000000 whatever.cxi
mkdir ncch
move whatever.cxi ncch > nul
mkdir exe
ctrtool --exefsdir=exe --exheader=exe\\exhdr.bin --romfs=romfs.bin ncch\\whatever.cxi > nul
ctrtool --romfsdir=romfs romfs.bin > nul
Author Posted on 2016/08/18
#2092
Louiskovski Ok. I get the first command working and it created a file with numbers. But i don't understand the next commands!
Author Posted on 2016/08/18
#2093
MKGirlism What numbers do you exactly get?
Author Posted on 2016/08/18
#2094
Louiskovski rom.0000.2b192104
Author Posted on 2016/08/18
#2095
MKGirlism Then the second command should be:
ren rom.0000.2b192104 rom.cxi

All the other commands remain the same, just note that instead of "whatever.cxi", you should use "rom.cxi".
Author Posted on 2016/08/18
#2096
Louiskovski YES!! I got it working! Thank you really much :D
Author Posted on 2016/08/19
#2108
Louiskovski Is it also possible, to convert a romfs file to a cxi or a cia ?
Author Posted on 2016/08/19
#2110
MKGirlism It's possible, but it won't work if the CIA and/or CXI only has a ROMFS.
Author Posted on 2016/08/19
#2113
PabloMK7
Is it also possible, to convert a romfs file to a cxi or a cia ?

You technically can, but a cxi doesn't only have romfs, it also has exefs (code) and exheader (game info). Same with cia, it has several cxi. (Main, with game data; download play and update data). In order to make the game work entirely, you must pack them all.
Author Posted on 2016/08/20
#2114
MKGirlism Actually, Download Play is an CFA (as is the EManual), and can be skipped, but you should know that Multiplayer won't work then.
Author Posted on 2016/08/23
#2130
Louiskovski Alright! I need the romfs and also the exefs files. But how can i convert these files to cia now?
Author Posted on 2016/08/26
#2151
Super
Alright! I need the romfs and also the exefs files. But how can i convert these files to cia now?


You can't make a CIA file out of just a RomFS and an ExeFS. I'm not sure if you can do it with those two plus something else, but you can compile the RomFS to use it with HANS. Perhaps that tickles your fancy.

How can you convert something to CIA if you're missing 2 important parts of it?
Author Posted on 2016/08/28
#2159
Louiskovski I really don't know. All what i really want, is to test CTs and also other hacks on citra, because the emulator just supports cia and cxi files. It is so costly, to test just little things on 3DS with HANS.
Author Posted on 2016/08/28
#2160
Super
I really don't know. All what i really want, is to test CTs and also other hacks on citra, because the emulator just supports cia and cxi files. It is so costly, to test just little things on 3DS with HANS.


Well, all you're gonna need for that is a rip of the RomFS and the ExeFS of Mario Kart 7, only then you can compile it for playing in Citra.
Author Posted on 2016/08/28
#2161
Louiskovski Really? Because i already have these files. But citra just says "file not supported." It only worked, when i opened a cxi file. But i don't know, how i can convert romfs and exefs to cxi or cia...
Author Posted on 2017/05/26
#3189
MythicalSeal Hi MKGirlism,

I have a question. Although i'm a little late here, braindump gave me a .cxi file, and when i try the first command of your post i get this: ''ctrtool is not recognized as a program.''

Help? I've been trying for so long to get a RomFS from my MK7. I just want a Rosalina texture T_T
Author Posted on 2017/05/26
#3191
MKGirlism You'll need the command line tool called "CTRTool".
For Windows: https://github.com/profi200/Project_CTR/releases
For Debian-based or Ubuntu-based Linux distros: http://deb.dshack.org/debian/
For other Linux distros (Debian-based included): https://www.dshack.org/store.php?page=download&fid=330

Otherwise, if you're using Arch or an Arch-based distro, it's also available in the AUR (Arch User Repository):
Author Posted on 2017/05/27
#3192
MythicalSeal Thanks! I did it but heard that HANS is not working for 11.4 ;-;
Trying OnionFS atm. :D
Author Posted on 2017/05/27
#3203
MKGirlism I'm hearing different things regarding HANS every single time.
Some people confirmed me it doesn't work on 11.3 and 11.4, while some other people confirmed me otherwise...
Author Posted on 2017/06/02
#3216
PabloMK7 HANS doesn't work on 11.4 because the homebrew launcher itself doesn't work on O3DS 11.4 (N3DS works fine)
Author Posted on 2017/06/02
#3218
MKGirlism Oh, maybe that's why then.
In that case, I can safely update my New 3DS and New 3DS LL, but I'll keep the older version on my regular 3DS, since I need it to record CTs.
Author Posted on 2017/06/02
#3219
MythicalSeal Weird, HANS does work on 11.4 with my 2ds.
Author Posted on 2018/03/15
#3777
Bri It says that the command ren cannot be found
Author Posted on 2018/04/05
#3799
Bri The second command I used didn't work. It would say that the command 'ren' was not found.
https://imgur.com/8zIUVzs