Hacking Convert .cia files to .3ds?

Tony8690

Well-Known Member
OP
Member
Joined
Jan 28, 2015
Messages
179
Trophies
0
Location
Northumberland
XP
358
Country
United Kingdom
Hi Guys,

Sorry if this has been answered before.

is there any possible way to convert a .CIA file back to a .3ds file so I can play it on my Sky3ds?

Thanks :)

T
 

siFippo

Member
Newcomer
Joined
Oct 31, 2012
Messages
22
Trophies
1
Age
44
XP
199
Country
Swaziland
Since i don't own a Sky3ds I haven't tried it myself but wouldn't it be possible to run eshop only games through sky if you use those tools? Would you need to somehow generate your own template file?
 
  • Like
Reactions: 4ur0r

Celebrimbor360

Well-Known Member
Newcomer
Joined
Nov 15, 2014
Messages
69
Trophies
0
Age
37
XP
183
Country
United States
it's probably easier to just download 3ds files than converting, if no 3ds files ever is released, chances are it's not in sky's template.
 

Tony8690

Well-Known Member
OP
Member
Joined
Jan 28, 2015
Messages
179
Trophies
0
Location
Northumberland
XP
358
Country
United Kingdom
I wanted to convert a EUR version of Pokémon OR CIA as I have the US version.3ds. just don't feel like using the region free trick all the time and theres going to be sometimes where I cant use it (such as being on planes)
 

cearp

瓜老外
Developer
Joined
May 26, 2008
Messages
8,724
Trophies
2
XP
8,499
Country
Tuvalu
is there any possible way to convert a .CIA file back to a .3ds file so I can play it on my Sky3ds?

it is not 'convert back' to 3ds.
eshop games can be packed into a .cia
and retail cart games can be dumped as a file and named as .3ds

with a bit of hacking we can convert one to the other.
if you took something that was a cia, whether it was actually form eshop content, or whether it was converted from a .3ds file, it would not work on sky3ds because sky3ds needs the 3ds rom in it's original state, untouched form the retail game cart.
 
  • Like
Reactions: siFippo

Tony8690

Well-Known Member
OP
Member
Joined
Jan 28, 2015
Messages
179
Trophies
0
Location
Northumberland
XP
358
Country
United Kingdom
it is not 'convert back' to 3ds.
eshop games can be packed into a .cia
and retail cart games can be dumped as a file and named as .3ds

with a bit of hacking we can convert one to the other.
if you took something that was a cia, whether it was actually form eshop content, or whether it was converted from a .3ds file, it would not work on sky3ds because sky3ds needs the 3ds rom in it's original state, untouched form the retail game cart.

Ah ok, thanks for the explanation =]

T
 

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
45
Location
Engine room, learning
XP
15,648
Country
France
Is there a guide to convert .cia to .3ds? Like BigBlueBox did when they released eshop dumps to .3ds format to play from gateway.
I the link above is for 3ds to cia, not the contrary.

3DS Lazy seems to not be able to rebuild .3ds format (unless the first post is not updated)
 

coolfuze

Well-Known Member
Member
Joined
Jun 25, 2013
Messages
371
Trophies
0
Age
38
XP
457
Country
Is there a guide to convert .cia to .3ds? Like BigBlueBox did when they released eshop dumps to .3ds format to play from gateway.
I the link above is for 3ds to cia, not the contrary.

3DS Lazy seems to not be able to rebuild .3ds format (unless the first post is not updated)

Google Noob Friendly 3DS To CIA Converter and open the first link, the software contains a cia to 3ds converter, it doesn't come with a guide afaik but it should be self explanatory.
 

hackotedelaplaqu

Well-Known Member
Member
Joined
Jan 10, 2009
Messages
606
Trophies
1
Website
wiibrew.org
XP
1,196
Country
France
Is there a guide to convert .cia to .3ds? Like BigBlueBox did when they released eshop dumps to .3ds format to play from gateway.
I the link above is for 3ds to cia, not the contrary.

3DS Lazy seems to not be able to rebuild .3ds format (unless the first post is not updated)

It fails with Ace Atorney Dual Destinies, the only game I tested, but the same applies with other tools.
I claimed this function is broken but since the command line 3DS Lazy uses seems Ok, you should try.
I never tried other games and thinking about it AA is an eshop game, so this may be the reason.
 

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
45
Location
Engine room, learning
XP
15,648
Country
France
I see, thanks.
I don't convert games or play them, I'm just curious about knowledge in general to be able to help users better

Edit:
you should edit your first post to 3DS Lazy, currently it looks like it can't repack correctly at all.
 

hackotedelaplaqu

Well-Known Member
Member
Joined
Jan 10, 2009
Messages
606
Trophies
1
Website
wiibrew.org
XP
1,196
Country
France
3ds
I see, thanks.
I don't convert games or play them, I'm just curious about knowledge in general to be able to help users better

Edit:
you should edit your first post to 3DS Lazy, currently it looks like it can't repack correctly at all.

3ds repack you mean? Because cia repack works fine for many users.:yaysp:
 

liomajor

Well-Known Member
Member
Joined
Jun 10, 2008
Messages
1,468
Trophies
0
XP
1,373
Country
United States
Reverse-CIA.bat
Code:
@ Echo off
 
set GameName=%~n1
md "%GameName%"
 
tools\_makerom -ciatocci %1
tools\ctrtool -p --exheader="exheader.bin" --romfs="romfs.bin" --exefs="exefs.bin" --logo="logo.bin" "%GameName%.cci"
tools\ctrtool -t exefs --exefsdir="%GameName%" "exefs.bin" --decompresscode
tools\ctrtool -t exheader "exheader.bin" > "exheader.txt"
tools\ctrtool -i "%GameName%.cci" >info.txt
 
move %1 "%GameName%"
move *.bin "%GameName%"
move *.cci "%GameName%"
move *.txt "%GameName%"

Now you have all files except your needed .rsf to rebuild unencrypted .3ds without manual.

Take a sample rsf, look @ info.txt/exheader.txt and fill the sample with all you need.

>>> makerom -f cci -target g -minor 9 -rsf "<your-rsf>" -desc app:7 -romfs "romfs.bin" -exheader "exheader.bin" -logo "logo.bin" -exefslogo -code "code.bin" -icon "icon.bin" -banner "banner.bin" -alignwr -o <your-rebuilded-3ds>
 

Garou

Well-Known Member
Member
Joined
Jan 13, 2015
Messages
1,213
Trophies
0
XP
1,667
Country
Reverse-CIA.bat
Code:
@ Echo off
 
set GameName=%~n1
md "%GameName%"
 
tools\_makerom -ciatocci %1
tools\ctrtool -p --exheader="exheader.bin" --romfs="romfs.bin" --exefs="exefs.bin" --logo="logo.bin" "%GameName%.cci"
tools\ctrtool -t exefs --exefsdir="%GameName%" "exefs.bin" --decompresscode
tools\ctrtool -t exheader "exheader.bin" > "exheader.txt"
tools\ctrtool -i "%GameName%.cci" >info.txt
 
move %1 "%GameName%"
move *.bin "%GameName%"
move *.cci "%GameName%"
move *.txt "%GameName%"

Now you have all files except your needed .rsf to rebuild unencrypted .3ds without manual.

Take a sample rsf, look @ info.txt/exheader.txt and fill the sample with all you need.

>>> makerom -f cci -target g -minor 9 -rsf "<your-rsf>" -desc app:7 -romfs "romfs.bin" -exheader "exheader.bin" -logo "logo.bin" -exefslogo -code "code.bin" -icon "icon.bin" -banner "banner.bin" -alignwr -o <your-rebuilded-3ds>
Hi, sorry to bump the thread

so how do I decrypt cia files?
because when I tried to convert cia to cci, makerom returns this error

_makerom -ciatocci game.cia
[CCI ERROR] Failed to decrypt CIA content: 0x00000000
[RESULT] Failed to build CCI
 

mid-kid

GBAtemp spamBOT
Member
Joined
Aug 2, 2012
Messages
879
Trophies
0
Age
25
XP
1,163
Country
Hi, sorry to bump the thread

so how do I decrypt cia files?
because when I tried to convert cia to cci, makerom returns this error

_makerom -ciatocci game.cia
[CCI ERROR] Failed to decrypt CIA content: 0x00000000
[RESULT] Failed to build CCI

The -ciatocci option only works when the .cia is already decrypted, and that script won't do it for you.
To convert an eShop CIA to 3DS, you have to install it on a new SD card, use any SD decryptor on it (rxTools works fine), decrypt the .app files with padxorer, find out with ctrtool which of the files is the main application, which the manual and so forth (If it's got DLP, that too), then "makerom -f cia -o game.cia -content main.app:0:0 -content manual.app:1:1 -content dlp.app:2:2", then you can -ciatocci it, and voila. You can further decrypt that main.app if you want to edit it (regionfree, firmware spoof), just treat it like a .3ds file.
 
  • Like
Reactions: Garou

Site & Scene News

Popular threads in this forum

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