ROM Hack How do I get the romfs and exefs from a CIA file?

Lukahn

New Member
Newbie
Joined
Oct 26, 2015
Messages
4
Trophies
0
Age
33
XP
58
Country
France
Truth be told, I'm interested as well.
For context, been interested on using rom hacks with hax 2.5.

What i'd like to do is this : dump a .3ds or .cia file and run it with hax2.5 (with hans iirc).

So well, to begin with I guessed i had to come here to learn how to dump a file first.

If someone can help me with this, then show me where i can learn how to run it, it would be cool.

Thanks.
 
Last edited by Lukahn,
D

Deleted User

Guest
I tried opening a CIA through 3DSExplorer and it said that there's an error opening ticket. What do I need to do to open a CIA and get the romfs and exefs from it?
I'll answer the question, since no one else did... :glare:

You need to use the 3DS to CIA converter 4.1 tool, which is hosted on Maxconsole.
You need to convert your CIA to a 3DS file, but it depends on what CIA it is that you want to convert.

the 3DS to CIA converter tool will only allow you to convert repacked and decrypted CIAs, so you're quite limited on what you can convert back to 3DS.

If, however, you are successful, then use the unpack/repack feature to get the RomFS files.

I hope that helps! :P

Link to the program:
http://www.maxconsole.com/maxcon_forums/threads/285574-3DS-To-CIA-Converter-v4-1
 
  • Like
Reactions: Vladimir15

VegaRoXas

Well-Known Member
Member
Joined
Mar 29, 2015
Messages
290
Trophies
0
XP
378
Country
Gambia, The
ctrtool --contents=contents whatever.cia
ctrtool -p --exefs=exefs.bin contents.0000.00000000
ctrtool -t exefs --exefsdir=exefs --decompresscode exefs.bin
ctrtool -p --romfs=romfs.bin contents.0000.00000000
The second command just says "Unknown file".
 

cearp

瓜老外
Developer
Joined
May 26, 2008
Messages
8,724
Trophies
2
XP
8,499
Country
Tuvalu
you will only be able to get good stuff out of the cia if it is decrypted, if it is dumped from eshop tickets with something like FunkyCIA then you will need to generate xorpads, get the title key decrypted... etc etc

gbatemp is an international website
ok by same thing i meant the 17 minutes wait. (not the entire same thing, you got me)
 

MrNetch

Active Member
Newcomer
Joined
Jan 22, 2016
Messages
37
Trophies
0
Age
34
XP
98
Country
Gambia, The
I'll answer the question, since no one else did... :glare:

You need to use the 3DS to CIA converter 4.1 tool, which is hosted on Maxconsole.
You need to convert your CIA to a 3DS file, but it depends on what CIA it is that you want to convert.

the 3DS to CIA converter tool will only allow you to convert repacked and decrypted CIAs, so you're quite limited on what you can convert back to 3DS.

If, however, you are successful, then use the unpack/repack feature to get the RomFS files.

I hope that helps! :P

Link to the program:
http://www.maxconsole.com/maxcon_forums/threads/285574-3DS-To-CIA-Converter-v4-1

How do you unpack the .3ds file then?
 
D

Deleted User

Guest
How do you unpack the .3ds file then?
The .3ds file has to be decrypted through rxtools (or another .3ds decrypting app), then on your PC, run the 3DS to CIA converter batch file -> View Extras Menu -> Start 3DS ROM pack/unpack for editing.
 
  • Like
Reactions: MrNetch
D

Deleted-431675

Guest
ctrtool --contents=contents whatever.cia
ctrtool -p --exefs=exefs.bin contents.0000.00000000
ctrtool -t exefs --exefsdir=exefs --decompresscode exefs.bin
ctrtool -p --romfs=romfs.bin contents.0000.00000000
when I do that, i can't find the bunch of zeros on Hxd and i didn't know what to highlight. (from the extracted romfs.bin file)
 

Zidapi

Well-Known Member
Member
Joined
Dec 1, 2002
Messages
3,112
Trophies
3
Age
42
Website
Visit site
XP
2,681
Country
when I do that, i can't find the bunch of zeros on Hxd and i didn't know what to highlight. (from the extracted romfs.bin file)
Congratulations.

It's one thing to necrobump bump a thread that hasn't been active for more than 18 months, but it takes a truly special kind of moron to do so when the post directly preceding yours was removed for doing just that.

But I didn't come here just to insult you, I'm also here to give assistance! As you might expect from a thread that hasn't been active for 18 months, the methods and applications are very out of date.

There is now a much easier way of extracting files from games using godmode9. This guide by @ih8ih8sn0w will walk you through the process.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: https://youtu.be/IihvJBjUpNE?si=CsvoEbwzNKFf0GAm cool