-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hyrule Warriors Legends DLC fails to dump to CIA. #164
Comments
Issue #156 references this. Go take a look and see if that is any help. |
I don't believe they are the same issue. It appears that in my case a file that doesn't exist (00000001.app) is attempting to be injected. #156's problem stems from a large number of files (HWL doesn't have nearly as many). |
You are correct in this not being the same issue as #156 Now, is this solvable? Maybe not / not properly. Let me explain. The TMD file contains what amounts to a list of contents in the DLC. So, the TMD says, there is a content 00000000, 00000001, 00000002, ... in there. The TMD also contains additional info, and a signature, and we need to reuse it when building a CIA. Now, in your case, and in case of many other DLC, one (/more?) of the contents listed in the TMD is simply missing. I can only guess that this may happen when one part of a DLC is not released yet(?). Problem is, if we build that CIA with that TMD, we have to (1) leave the missing content out (= CIA not installable), (2) add a dummy content (= CIA not installable) or (3) rebuild the TMD (installable, but unsure if it works, also breaks sigs). I might try something later, I hope you can test then. |
http://imgur.com/DCgpqKd FWIW I was able to dump it (decrypted). Logfile: |
Okay, so... the decrypted option worked? Is it also installable? I just finished a fix for GM9, take a look here: EDIT: I also feel the need to point out, the reason why this issue happens is because you don't have all DLC (that is listed in the TMD) on your system. DLC was never intended to be distributed as CIA, so a partial install is fine over CDN. A CIA, on the other hand, must contain all contents listed in the TMD. |
Installable and playable. Possible OP is missing one dlc since based on his log I did not encounter the same issue at that point on my end (from my log) |
After checking the option to Purchase DLC I can confirm that I do own and have downloaded all DLC for HWL. Maybe it's because I purchased it all through the "Legends of Hyrule Pack (Nintendo 3DS)" option? According to the shop, this pack is 8 blocks large while the individual packs total to 12. Over the course of testing, I have deleted and re-downloaded the DLC several times to make sure that I have everything. As far as I can tell, I do. The fix reports "Incomplete DLC (missing: 14)" anyways. I don't have all of the DLC for Fates: Birthright, though. That I know. |
To put it into the words of a buddy of mine, DLC is weird. In your case, that "Legends of Hyrule Pack" may encompass multiple DLC, but still be listed as a separate entry. Meaning: no legit (purchased) setup would actually contain all DLC. Also, keep in mind that DLC was never meant to be installable via CIA (it's in the name, DLCs are for downloads). If you want to find out what's missing for you, a quick hint. The first content (when mounted as CIA) contains a list of expected content in the RomFS. Now, that CIA you just build... Does it install, and, more importantly, does it work? (best to check for availability of all of your DLC) Also, you already knew, but this is not legit anymore, cause we can't make it legit with the stuff we need to change. Needs CFW to use / install. |
FBI does not even give an option to install, unfortunately. |
Okay, looks like FBI doesn't like the somewhat elegant fix I implemented earlier. Try this one instead: |
The install option now appears, but installation hangs immediately upon starting. Also, if it helps, there is no icon, no title or description, no 'Nintendo', and region is unknown. |
Okay, third times the charm: This should solve it, let me know if it works for you. Also, this took far longer than it should have -_-. |
Building CIAs seems to fluxuate between not being recognized by FBI and giving an invalid cert error (my luma is up to date and so is FBI). |
So... you get differing outputs when building that CIA? Meaning, the file is different when building it mutliple times? If so, can you check this in a hex editor and tell me what differences you get? What was the output from GM9 (did the number of missing contents match earlier attempts)? EDIT: You can also extract and check the cert via this batch script: The cert should be identical over every CIA. |
I was, but after reinstalling the DLC to make sure it wasn't corrupted it now consistantly fails to be identified even by Godmode9. (No option to mount the .CIA). I think smething may have borked: http://imgur.com/hfxxksp Edit: Last build was a goof on my end. GM9 recognizes it, but FBI still does not. Edit 2: The certs are identical in all instances. Edit 3: I'm still finding my way around the .CIA format, but it looks like TMD.bin is mixed in with some random data (which also affects the size given in Header.bin.): http://imgur.com/gUmnvVQ Meta.bin actually starts a ways down from here. |
Alright... you did use the third test build I provided, right? This one: Now... could you perhaps provide me with the TMD? I'd need (a) the unaltered TMD from the title directory, (b) the TMD extracted from the borked CIA. And, don't worry, there is nothing identifying or even copyrighted in a TMD file. |
Okay, well, I had a minor typo (one symbol missing, but still... consequences) in my code. This one should do the trick and will hopefully close this issue: |
There's no cosmetic information in FBI, but it all works as far as I can tell. Tested it on Fates: Birthright (which I don't have all DLC for) and that worked as well. It's up to you if you want cosmetic info on FBI, but I consider the issue closed. Nice work and thanks! |
Metadata is not possible. This is generated from a file in ExeFS ("icon") in the CXI. As DLC doesn't even have a CXI, I don't have the data to create this, nothing that can be done about it. |
Okay, I'll need your help one more time... cause I also want to fix this in D9WIP: The resulting CIA will be a little different from what you get in GM9, but should be recognized and be installable in FBI regardless. |
For HWL, the cia is built successfully, but FBI reports:
Fates: Birthright gives a "CIA Stub has Bad Size" error. It has content IDs up to $8E, so it may be Issue #156. |
Okay, Well... the D9 code is not easily adapted for this. So, I figured I'll just leave it as is instead of putting a half-assed workaround in that would cause more problems than good in the long run. Use of GM9, over D9, is encouraged for this kind of stuff anyways. Closing this now, and thanks a ton to you for all the testing you did! |
Hyrule Warriors Legends (0017ea00)
Process:
The following log is given:
GodMode9 fails as well with a similar report:
Edit: This issue also occurs with Fire Emblem Fates: Birthright DLC, but not with Fire Emblem Awakening DLC.
The text was updated successfully, but these errors were encountered: