Homebrew Given a decrypted TMD and APP file, is it possible to generate a 3DS or CIA file?

HighMans

Well-Known Member
OP
Member
Joined
Aug 9, 2012
Messages
140
Trophies
0
XP
228
Country
United States
I have a GBA VC game that I have lost the CIA to on a backup of my sysnand. I want to move this app over to my current sysnand, but I don't exactly know how to. I can access the files using godmode9, but from there I am lost. Any guidance would be appreciated.
 

d0k3

3DS Homebrew Legend
Member
Joined
Dec 3, 2004
Messages
2,786
Trophies
1
XP
3,896
Country
Germany
I have a GBA VC game that I have lost the CIA to on a backup of my sysnand. I want to move this app over to my current sysnand, but I don't exactly know how to. I can access the files using godmode9, but from there I am lost. Any guidance would be appreciated.
That app file is the CXI (look that up if you want to), which is in essence all you want. Makerom should be able to make a CIA from it, but for the actual commands you are on your own.
 

HighMans

Well-Known Member
OP
Member
Joined
Aug 9, 2012
Messages
140
Trophies
0
XP
228
Country
United States
That app file is the CXI (look that up if you want to), which is in essence all you want. Makerom should be able to make a CIA from it, but for the actual commands you are on your own.

Thank you for leading me in the right direction!

I managed to extract it (blank romFS, and a large ExeFS code.bin file...) but when I repacked it using 3dsbuilder, I got a cia of ~128mb from a 16mb CXI file...

Using makerom, I need an RSF file... (Currently looking that up)
 
Last edited by HighMans,

TheDuckMan64

Chicken nugget.
Member
Joined
Oct 9, 2015
Messages
355
Trophies
0
XP
200
Country
Thank you for leading me in the right direction!

I managed to extract it (blank romFS, and a large ExeFS code.bin file...) but when I repacked it using 3dsbuilder, I got a cia of ~128mb from a 16mb CXI file...
The smallest size a 3ds .cia file comes in is 128mb, hence 3dsbuilder :P probably added files to increase the size to 128mb. My guess is that it won't work, but your welcome to install it and try.
 

HighMans

Well-Known Member
OP
Member
Joined
Aug 9, 2012
Messages
140
Trophies
0
XP
228
Country
United States
The smallest size a 3ds .cia file comes in is 128mb, hence 3dsbuilder :P probably added files to increase the size to 128mb. My guess is that it won't work, but your welcome to install it and try.

Oh, that would make sense hahaha
Devmenu flagged it as an invalid CIA and wouldn't install it.
 
  • Like
Reactions: TheDuckMan64

cearp

瓜老外
Developer
Joined
May 26, 2008
Messages
8,724
Trophies
2
XP
8,499
Country
Tuvalu
yes, on cdn the tmd is decrypted anyway.
you can re encrypt the contents, after removing your unique console encryption, using aescbc if you know the right key to make it neat, then use makecdncia like normal and you could build a legit cia
 

HighMans

Well-Known Member
OP
Member
Joined
Aug 9, 2012
Messages
140
Trophies
0
XP
228
Country
United States
yes, on cdn the tmd is decrypted anyway.
you can re encrypt the contents, after removing your unique console encryption, using aescbc if you know the right key to make it neat, then use makecdncia like normal and you could build a legit cia

I can't download from the CDN because this VC game isn't from the eshop.
 

cearp

瓜老外
Developer
Joined
May 26, 2008
Messages
8,724
Trophies
2
XP
8,499
Country
Tuvalu
I can't download from the CDN because this VC game isn't from the eshop.
oh ok, but you wouldn't need to use from cdn because i was answering the question like how you asked, from the sd contents :)
i would personally just recreate or find the cia online, faster than converting to cia.
but yes, it's possible :)
 
  • Like
Reactions: HighMans

HighMans

Well-Known Member
OP
Member
Joined
Aug 9, 2012
Messages
140
Trophies
0
XP
228
Country
United States
yes, on cdn the tmd is decrypted anyway.
you can re encrypt the contents, after removing your unique console encryption, using aescbc if you know the right key to make it neat, then use makecdncia like normal and you could build a legit cia

I'm sorry, but what files do I need to run make_cdn_cia? The only files I have are *.tmd, *.app, and *.cmd.
 

cearp

瓜老外
Developer
Joined
May 26, 2008
Messages
8,724
Trophies
2
XP
8,499
Country
Tuvalu
I'm sorry, but what files do I need to run make_cdn_cia? The only files I have are *.tmd, *.app, and *.cmd.
You will have to make a ticket, and decrypt the stuff on your SD card to remove your unique encryption. Then maybe encrypt but I think not necessary. It is possible but really, not worth it for something like this
 

Ryccardo

Penguin accelerator
Member
Joined
Feb 13, 2015
Messages
7,689
Trophies
1
Age
28
Location
Imola
XP
6,903
Country
Italy
If you have a CXI, you just need to know the content index (if the file isn't renamed and still a number, you're set!)

So if you only have 00000004:
makerom -f cia -o TheGame.cia -content 00000004:0:0x04 -minor 1
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    SylverReZ @ SylverReZ: https://www.youtube.com/watch?v=pnRVIC7kS4s