Skip to content
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

[BUG] Cannot build support files (title key db, seeddb) #729

Closed
ghost opened this issue Sep 4, 2021 · 2 comments
Closed

[BUG] Cannot build support files (title key db, seeddb) #729

ghost opened this issue Sep 4, 2021 · 2 comments
Labels

Comments

@ghost
Copy link

ghost commented Sep 4, 2021

So you want to report a bug?
Hold on, there are ways you could make things easier for us:

  • Give a clear description of the bug (what happened?).
  • Give us clear steps to reproduce (when/how did it happen?).
  • Give us info about your system (where did it happen?).
  • A photograph or even a short video of the bug happening is always helpful!

snap_210904061320

Building a title key db for a single ticket works, building full DBs from entire ticket db doesn't. It doesn't matter if you try to run it from main menu or from ticket.db options, it fails.

seeddb just fails as well and I'm not sure if there's another place you could build seeddb from.

Info about your system
Include this info to make our work easier:

  • Console type (O3DS/N3DS)
  • Anything special about your console? (defects, custom modifications,...)
  • Bootloader (boot9strap/fastboot3ds)
  • Did you chainload GodMode9 via Luma?
  • Helpful hint: if you followed the Guide, boot9strap is your bootloader and Luma is your chainloader.

O3DS/O3DS XL/O2DS, nothing special, fb3ds 1.2, GM9 2.0.0

Help yourself
Especially for any kind of boot issue ("GodMode9 doesn't boot"), but also in many other cases these steps make a lot of sense and we will ask you to do them anyways:

Have you actually read this?
[x] I have read the information above

@ghost ghost added the bug label Sep 4, 2021
@ZeroSkill1
Copy link
Contributor

I have found the issue, it's quite simple. The ticket.db files aren't initialized (mounted) soon enough when the call(s) to BuildTitleKeyInfo is/are made. When the build is started, and the target is a ticket.db file, it immediately tries to get the number of tickets while the ticket.db isn't even mounted. This, of course, fails. I've rearranged it a tiny bit so it does everything in the correct order.

Regarding seeddb.bin, the only reason that fails is because the support files build flow goes like this:

  1. Build (enc/dec)TitleKeys.bin
  2. Build seeddb.bin

Since the first one fails (due to the reason mentioned above), it will not try to build seeddb.bin. Once the issue with the title key files is fixed, it will allow it to build seeddb.bin as well.

@Ammako Here's a test build. It should allow you to build title key files in both the Build support files menu and when choosing to manually build them by selecting ticket.db, and seeddb.bin should also get built.

Note: This should also work fine if you have an EmuNAND.

GodMode9.zip

ZeroSkill1 added a commit to ZeroSkill1/GodMode9 that referenced this issue Oct 9, 2021
@ghost
Copy link
Author

ghost commented Oct 9, 2021

Looks good to me

@ghost ghost closed this as completed Oct 9, 2021
d0k3 pushed a commit that referenced this issue Oct 23, 2021
* fix #729

* Improved code layout & show NAND type when building support files
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant