FunkyCIA Guide - how to make CIAs from your eshop stuff :)

Requirements -
  • A 3DS on 4.X, with the DS profile exploit. You do not need Gateway I believe.
  • Internet on your computer
  • Able to run python
Step 1 - Download http://gbatemp.net/attachments/launcher_ticketdb-dat-zip.13329/
**** The code is unstable, you might have to run it a bunch of times before it works.
When it works you will know, it is fast, so if your screen does nothing for like 5 seconds just turn off and try again. I once had to try 7 times - usually I am lucky though ***


Step 2 - Extract it and rename it to Launcher.dat - rename the actual GW Launcher.dat to something else for now.
Step 3 - Put it on your 3DS's sd card. Load up the exploit (settings, profile, etc...)
Step 4 - It should run, when it is done, turn off your 3DS. Hold the power button until it is off.
Step 5 - Take out the sd card from the 3DS, put it in your computer. You should see ticket.db and ticket.db_gwemu. The first file is from the sysnand, the second is from emunand. Copy them somewhere, maybe to your desktop.
Step 6 - Download http://gbatemp.net/attachments/funkycia2-zip.15361/ - and extract it.


Now, you run the python file. (On mac it's very easy, I'm not sure about windows)
type: python FunkyCIA.py ticket.db_gwemu -type dlc
This would download all the dlc you have installed, and make them into CIAs :)
You can specify what type of content you want to download, like: -type dlc would download dlc, -type demo gameapp would download the demos and gameapps that you have in your ticket.db.
You can use -type with gameapp, update, dlc, demo, dsiware, system, or ALL
You can download everything you have if you specify -type ALL. This includes system titles, so maybe you don't want to do that, just list all the types you want apart from 'system'. Find the title ids of the stuff you want using 3ds.essh.co, maybe devtool, maybe some other method.

Or, if there is some specific title ids (specific games/updates/etc) that you want to download, use:
-title XXXXXXXXXXXXXXXX YYYYYYYYYYYYYYYY and you will download and make a CIA for those 2 titles only.
You cannot choose to download a content type (dlc, update, etc), and specific title(s) at the same time.

You can turn off downloading with -nodownload (if you want to only show the title ids you have in your ticket.db)
You can turn off CIA generation with -nobuild (so the stuff will only be downloaded)
You can turn off sorting by -nosort (by default, the contents are sorted into folders, so all the demos would go in a demo folder, all the system stuff would go in a system folder, etc)
 

misterb98

Moral Gateway User. Wat.
Member
Joined
Aug 24, 2010
Messages
449
Trophies
0
XP
290
Country
United States
I'm as confused as you are. How did an anti-piracy media Kool-Aid drinker end up with a Gateway in the first place? Oh well, since he's here, might as well try to set the record straight.



I can tell you why the first example failed. The numbers after the colons are wrong. Also IIRC it requires conversion to decimal. So, 1:0 3:1 4:2 5:3 6:4 7:5 8:6 9:7 10:8 11:9 12:10 15:11

Also, if you're not one of us, you should not be using the p word. It's bad nettiquette. If you take oxymorons like "intellectual property" seriously, and believe free markets need to be castrated by regulations, especially those evil copyright and patent laws that stifle innovation, then you should use the politically correct term "fair use" instead of that inaccurate demonization "piracy" or we might take offense (much like a black man takes offense when a white man uses the n word). In other words, you only get to say "pirate" if you are arrrrrrrre a pirate ;)

Seriously though, don't be deceived by the media. There is no such thing as a lost sale. On one side, you have collectors like me that will buy a good game, if you can get me to notice it in a saturated market. Easy, deliberately leak it a week early. Being able to show my coworkers a game that won't be out for another week is a trip after all (and assuming they like what they see, some of them are going to run out and buy it on release day). On the other side you have the so-called "freeloaders" which, by their very nature, are not potential customers. There's no sale to be made if the most someone's looking to spend is $0. However, if they show a game to just one game-buying individual, and that person goes out and buys it, that's an extra sale. Since most of these "undocumented volunteer advertisers" know more than one game purchaser, it's statistically advantageous for developers to just let them have it, while simultaneously complaining about it out the other side of their mouth to get guilt-trip/sympathy sales. Some developers may not have caught on yet, but if you think all of those lower firmware patches for PS3 games that happened when we were still stuck on 3.55 were an accident, I have a bridge that might interest you.

As a collector, I believe as much as anyone in buying if you like what you try. If you like it, you should want to own the real thing. And of course, you should award a company that brings out something good. I bought the PS3 version of Diablo III and the PS4 version of Reaper Of Souls because those versions finally gave me the game I'd been hoping for. However, Blizzard had better port any future title they want me to purchase to a Sony console, because they didn't just burn their PC bridge, they coated it with napalm and hit it with flamethrowers from both sides. Indeed, no one works for free. Most people aren't gamblers either though. Myself included. The only movies I've bought a ticket to without watching some form of illegitimate release first to make sure they're worth it either had "Star Wars" or "Lord Of The Rings" in the title. The MPAA can whine about them all they want, but they'd be fools to actually stop them.

However, data by itself has no value. Economically speaking, infinite supply means zero demand. Can you resell PDFs purchased from RPG-Drivethru or MP3s bought from Amazon on e-bay? No? There you have it. If a purchase cannot be resold, then no genuine value can be assigned to it. The only way to give the data value is to make limited pressings on physical media. You can sell a real AD&D "Deities & Demigods" first printing for a lot of money. The PDF will never be worth a penny. Besides, I've already learned my lesson about virtual items the hard way. I bought two mounts for World Of Warcraft. When Cataclysm ruined the game for me, I was left with nothing to show for my money. I'll never buy into that scam again. And I'll never buy another MMO until someone includes the server and a content editor. If no one else has enough intestinal fortitude to do that, then I may create my own. There's a lot of underground custom content being made for WoW, so I already know there's a market. If I code it, it will sell (provided it's even halfway good).

Everything on the eShop, PSN, XBL, and Steam is completely worthless to collectors like me. If someone brought out a script that downloaded and decrypted the entire contents of all 4 services, I wouldn't think twice about running it (though I'd certainly need to pick up some more MyBooks). Though I'd obviously want to setup a good VPN and Linux-based firewall (after all, DD-WRT can only do so much). None of this stuff has a production cost for one thing. Most DLC doesn't even have a development cost either. Because most of it was part of the original game design, and they just stripped it out to milk you for more money. While it's all an attempt to sell you worthless files, DLC tends to be a downright scam (especially when the game was made by Capcom, hopefully they've learned their lesson and won't try anything like SFXT again). The last thing you should feel guilty about is taking back parts of a game that were already supposed to be there until someone got greedy.

BTW, if you think my opinions baseless, unsubstantiated, and without precedent, have a link.

Anyway, you have your answer. If you still choose to side with the people that said home audio recording would be the death of music, and that the VCR would be the death of the silver screen, even after reading the above rant, you will be able to gimp your DLC as you wish.

Woah. Text.

I'm not against other people pirating, I just like getting paid for my work, and believe if content is not free I should pay for it. Just my weird moral code, I know.

Now if something is unobtainable (like Devmenu), ill take it, simply because I cannot get it any other way.
 

Kazuma77

Well-Known Member
Member
Joined
May 11, 2008
Messages
1,035
Trophies
1
XP
905
Country
United States
Woah. Text.

I'm not against other people pirating, I just like getting paid for my work, and believe if content is not free I should pay for it. Just my weird moral code, I know.

Now if something is unobtainable (like Devmenu), ill take it, simply because I cannot get it any other way.

I'm all for supporting developers. But they have to provide me with something of value. As a collector, physical media has a value to me. Files never will. You need a physical production run to have a legitimate supply and demand market. If it's not good enough that they felt they could make a profit selling it on physical media, that tells me all I need to know. But that's just my take on it I guess.
 
  • Like
Reactions: cearp

Trice

Well-Known Member
Member
Joined
Jan 20, 2009
Messages
153
Trophies
1
XP
1,260
Country
Switzerland
Hey cearp, have you ever encountered a HTTP Error 403: Forbidden while trying to download the content files?

Code:
Traceback (most recent call last):
  File "D:\FunkyCIA\FunkyCIA.py", line 218, in <module>
    response = urllib2.urlopen(baseurl + '/' + cID)
  File "C:\Python27\lib\urllib2.py", line 127, in urlopen
    return _opener.open(url, data, timeout)
  File "C:\Python27\lib\urllib2.py", line 410, in open
    response = meth(req, response)
  File "C:\Python27\lib\urllib2.py", line 523, in http_response
    'http', request, response, code, msg, hdrs)
  File "C:\Python27\lib\urllib2.py", line 448, in error
    return self._call_chain(*args)
  File "C:\Python27\lib\urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "C:\Python27\lib\urllib2.py", line 531, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 403: Forbidden

I'm currently creating CIA files for all my eShop games and up till now I encountered this problem with Bravely Default and Donkey Kong Country Returns 3D (US versions).

It only happens when FunkyCIA is trying to download the first content file, the other one can be downloaded without any problems.

Here's the content of the TMD file from DKCR as a sample:

Code:
TMD header:
Signature type:        RSA 2048 - SHA256
Issuer:                Root-CA00000003-CP0000000b
Version:                1
CA CRL version:        0
Signer CRL version:    0
System version:        0000000000000000
Title id:              00040000000CCE00
Title type:            00000040
Group id:              0000
Access rights:          00000000
Title version:          0030
Content count:          0002
Boot content:          0000
Hash:                  FD16C95359D6820087E993EA7711ED64742807C240628D6E18BD14D63E752D3D
 
TMD content info:
Content index:          0000
Command count:          0002
Unknown:                0FCE1BC6D31C5BD8F3BC80CB061BC648B32C3B0E2681795A66473D9AF715CB21
 
TMD contents:
Content id:            00000004
Content index:          0000
Content type:          0001 [encrypted]
Content size:          0000000089ebf000
Content hash:          7F02CA227BAD99E18A267E6160C04D4B3CBB4720829D88D8F7BEE73352E2E86A
 
Content id:            00000001
Content index:          0001
Content type:          0001 [encrypted]
Content size:          0000000000102000
Content hash:          A53F97B1B356F0B94AB1C7BED66DA0B9F5EA0153AEDB2C76EA0877A5A43302BC

The problematic content is the one with ID 00000004.

If I can provide any more information, just let me know.
 

cearp

瓜老外
OP
Developer
Joined
May 26, 2008
Messages
8,725
Trophies
2
XP
8,510
Country
Tuvalu
Hey cearp, have you ever encountered a HTTP Error 403: Forbidden while trying to download the content files?

The problematic content is the one with ID 00000004.

If I can provide any more information, just let me know.

yes, well, not personally but i have dealt with people who have.
i keep meaning (but forgetting) to upload the latest version of FunkyCIA, that should give you more luck :)
i will try to do it today... (i mean it this time)
 

Trice

Well-Known Member
Member
Joined
Jan 20, 2009
Messages
153
Trophies
1
XP
1,260
Country
Switzerland
yes, well, not personally but i have dealt with people who have.
i keep meaning (but forgetting) to upload the latest version of FunkyCIA, that should give you more luck :)
i will try to do it today... (i mean it this time)

That's good to hear. :)

I'm curious about how you dealt with this problem. Is it because Nintendo's server doesn't recognize your app as a proper way to access those files? The strange thing about this is that it only happens to certain files. I'd assume that if Nintendo had a mechanism in place to block any kind of access from unauthorized sources (which doesn't seem to be the case as you can download the files even with a regular browser without a specific user agent or anything, they seem to rely solely on the encryption of the files themselves for security), it would affect every attempt to download something and not just certain files. It just seems kinda random, which of course it likely isn't.

btw. did you (or maybe the developer of make_cdn_cia) change anything regarding the handling of DLC in the new version? I already know that DLC only works with a CIA of the same region (without region free patch) and this worked perfectly for Theatrhythm Final Fantasy where only the DLC got downloaded by FunkyCIA as the game was based on a retail copy, but it didn't work for Fire Emblem: Awakening where I downloaded both the game as well as the DLC with your tool. The CIA of the game itself seems to be fine as I was able to successfully install a DLC pack for the correct region that I downloaded elsewhere, so I have to assume that the problem lies with the DLC CIA generated by FunkyCIA/make_cdn_cia. There wasn't any problem installing it and it also shows up correctly in the Data Management of the 3DS, it just isn't recognized by the game at all. Both tests were done with a copy of the game and DLC of one region installed on a 3DS of another region (JP -> EUR in the case of Theatrhythm and US -> JP in the case of Fire Emblem: Awakening).
 

cearp

瓜老外
OP
Developer
Joined
May 26, 2008
Messages
8,725
Trophies
2
XP
8,510
Country
Tuvalu
That's good to hear. :)
I'm curious about how you dealt with this problem. Is it because Nintendo's server doesn't recognize your app as a proper way to access those files?
no :)
btw. did you (or maybe the developer of make_cdn_cia) change anything regarding the handling of DLC in the new version? I already know that DLC only works with a CIA of the same region (without region free patch) and this worked perfectly for Theatrhythm Final Fantasy where only the DLC got downloaded by FunkyCIA as the game was based on a retail copy, but it didn't work for Fire Emblem: Awakening where I downloaded both the game as well as the DLC with your tool. The CIA of the game itself seems to be fine as I was able to successfully install a DLC pack for the correct region that I downloaded elsewhere, so I have to assume that the problem lies with the DLC CIA generated by FunkyCIA/make_cdn_cia. There wasn't any problem installing it and it also shows up correctly in the Data Management of the 3DS, it just isn't recognized by the game at all. Both tests were done with a copy of the game and DLC of one region installed on a 3DS of another region (JP -> EUR in the case of Theatrhythm and US -> JP in the case of Fire Emblem: Awakening).
hmm i am not sure why you had a problem.
make_cdn_cia is getting an overhaul but it shouldn't fix any thing like your problem.
you can try the new version of FunkyCIA when I upload it.
 

misterb98

Moral Gateway User. Wat.
Member
Joined
Aug 24, 2010
Messages
449
Trophies
0
XP
290
Country
United States
That's good to hear. :)

I'm curious about how you dealt with this problem. Is it because Nintendo's server doesn't recognize your app as a proper way to access those files? The strange thing about this is that it only happens to certain files. I'd assume that if Nintendo had a mechanism in place to block any kind of access from unauthorized sources (which doesn't seem to be the case as you can download the files even with a regular browser without a specific user agent or anything, they seem to rely solely on the encryption of the files themselves for security), it would affect every attempt to download something and not just certain files. It just seems kinda random, which of course it likely isn't.

btw. did you (or maybe the developer of make_cdn_cia) change anything regarding the handling of DLC in the new version? I already know that DLC only works with a CIA of the same region (without region free patch) and this worked perfectly for Theatrhythm Final Fantasy where only the DLC got downloaded by FunkyCIA as the game was based on a retail copy, but it didn't work for Fire Emblem: Awakening where I downloaded both the game as well as the DLC with your tool. The CIA of the game itself seems to be fine as I was able to successfully install a DLC pack for the correct region that I downloaded elsewhere, so I have to assume that the problem lies with the DLC CIA generated by FunkyCIA/make_cdn_cia. There wasn't any problem installing it and it also shows up correctly in the Data Management of the 3DS, it just isn't recognized by the game at all. Both tests were done with a copy of the game and DLC of one region installed on a 3DS of another region (JP -> EUR in the case of Theatrhythm and US -> JP in the case of Fire Emblem: Awakening).
This sounds like the issue I was having earlier. I could only use the Fire Emblem Awakening DLC on the device with whose ticket I dumped it from. Installing it on my JPN 3ds would result in the game not recognizing it.
 

Trice

Well-Known Member
Member
Joined
Jan 20, 2009
Messages
153
Trophies
1
XP
1,260
Country
Switzerland
This sounds like the issue I was having earlier. I could only use the Fire Emblem Awakening DLC on the device with whose ticket I dumped it from. Installing it on my JPN 3ds would result in the game not recognizing it.

The funny thing is that it worked perfectly fine with the DLC for Theatrhythm Final Fantasy. The only difference is that I actually bought every available DLC for Theatrythm while I only bought some of the Fire Emblem DLC. I'll try it with the other eShop games I bought DLC for as well to see what happens there.
 

fcz_x

Member
Newcomer
Joined
Nov 9, 2014
Messages
20
Trophies
0
Age
31
Location
Temuco, Chile
XP
58
Country
Cote d'Ivoire
to run the file in windows (for noobs xD) you put cmd (as administrator privileges), then type "cd" and "the directory file", for example "cd C:\" and you set that folder in cmd...so now you can start the python script typing this line "FunkyCIA.py ticket.db_gwemu -type dlc" and will start...hope to someone help this...greetings :)
 
  • Like
Reactions: Tomobobo

Trice

Well-Known Member
Member
Joined
Jan 20, 2009
Messages
153
Trophies
1
XP
1,260
Country
Switzerland
The games I couldn't download before are now working perfectly with the new version. :)

And I was also able to get the Fire Emblem Awakening DLC working. For some reason it didn't work the first time (with newly downloaded copies of the game and the DLC through FunkyCIA2), I got an error that the SD card couldn't be found, but when I deleted it through the Data Management and then installed the DLC CIA again it showed up correctly.

Thanks again for this awesome app, cearp. :)
 
  • Like
Reactions: cearp

tsselle

Active Member
Newcomer
Joined
Sep 15, 2009
Messages
33
Trophies
0
XP
143
Country
United States
[!] Caution, Ticket and TMD Title Versions do not match
[!] CETK Title Ver: 3072
[!] TMD Title Ver: 3120

What exactly does this error mean? I'm just curious
 

cearp

瓜老外
OP
Developer
Joined
May 26, 2008
Messages
8,725
Trophies
2
XP
8,510
Country
Tuvalu
[!] Caution, Ticket and TMD Title Versions do not match
[!] CETK Title Ver: 3072
[!] TMD Title Ver: 3120

What exactly does this error mean? I'm just curious

it means that when you downloaded the content from eshop, it was at a lower version that what the content is currently at now - on nintendo's servers. it does not cause a problem.
the newest content will be downloaded. the cia will be fine :)
 

Thomas12345

Well-Known Member
Member
Joined
Dec 1, 2014
Messages
551
Trophies
0
Age
37
XP
291
Country
Canada
Hi, sorry if this has been asked before. I just want to confirm: Will this work on 3ds with GW with 4.2 downgraded sysnand, and 9.5 emunand?

thx
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv2 @ K3Nv2: Well start walking towards them +1