Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

3DS:Rebuild Title Database: Difference between revisions

From Hacks Guide Wiki
(→‎Section II - Rebuilding the Database: test python before continuing)
(remove steps to place seeddb.bin in a "3ds" folder, updated rebuild-title-database now accepts a -S/--seeddb argument)
Line 27: Line 27:
# Go to <code>gm9</code> -> <code>out</code> on your SD card
# Go to <code>gm9</code> -> <code>out</code> on your SD card
# Copy <code>movable.sed</code> and <code>boot9.bin</code> into the rebuild folder
# Copy <code>movable.sed</code> and <code>boot9.bin</code> into the rebuild folder
# Create a folder called <code>3ds</code> in your user directory
# Copy <code>seeddb.bin</code> into the rebuild folder
#* On Windows, the user directory is <code>C:/Users/[your username]/</code>
#* On macOS, the user directory is <code>/Users/[your username]</code>
#* On Linux, the user directory is <code>/home/[your username]</code> (often shortened to <code>~</code>)
# Copy <code>seeddb.bin</code> into the new <code>3ds</code> folder
# Copy <code>save3ds_fuse.exe</code> from the save3ds <code>.zip</code> file into the rebuild folder
# Copy <code>save3ds_fuse.exe</code> from the save3ds <code>.zip</code> file into the rebuild folder


Line 44: Line 40:
## <code>py -3 -mpip install --user -r requirements.txt</code>
## <code>py -3 -mpip install --user -r requirements.txt</code>
## <code>py -3 fix-titledb.py -b boot9.bin -m movable.sed -s X:</code>
## <code>py -3 fix-titledb.py -b boot9.bin -m movable.sed -s X:</code>
## <code>py -3 rebuild-title-database.py -b boot9.bin -m movable.sed -s X: -o out</code>
## <code>py -3 rebuild-title-database.py -b boot9.bin -m movable.sed -S seeddb.bin -s X: -o out</code>
##* replace <code>X:</code> with your SD card's drive letter
##* replace <code>X:</code> with your SD card's drive letter
## <code>save3ds_fuse --db sdtitle out --import --boot9 boot9.bin --movable movable.sed --sd X:</code>
## <code>./save3ds_fuse --db sdtitle out --import --boot9 boot9.bin --movable movable.sed --sd X:</code>
##* replace <code>X:</code> with your SD card's drive letter
##* replace <code>X:</code> with your SD card's drive letter
# If you didn't get any errors, your apps should reappear on the HOME Menu immediately  
# If you didn't get any errors, your apps should reappear on the HOME Menu immediately  

Revision as of 23:38, 23 February 2024

This article will guide you in rebuilding the title.db file in your SD card.

title.db is a file on both the 3DS' SD card and its CTRNAND which contains a list of all installed 3DS titles for its respective place (e.g. The SD card's title.db only has entries for titles installed to the SD card). For more information, check out 3dbrew.

What you need

Section I - Preparing the files

  1. Launch GodMode9 by holding START on boot
  2. Navigate into [M:] MEMORY VIRTUAL
  3. Press A on boot9.bin then select Copy to 0:/gm9/out
  4. Press A to continue
  5. Press B once to return to the main menu
  6. Navigate into [1:] SYSNAND CTRNAND -> private
  7. Press A on movable.sed, then select Copy to 0:/gm9/out
  8. Turn the 3DS off
  9. Insert the SD card into your computer
  10. Go to the GitHub repo for Rebuild Title Database
  11. Click the Code button, then click Download ZIP
  12. Extract the contents of the downloaded .zip into a folder
    • This folder will be referred to as the "rebuild folder" from now on
  13. Go to gm9 -> out on your SD card
  14. Copy movable.sed and boot9.bin into the rebuild folder
  15. Copy seeddb.bin into the rebuild folder
  16. Copy save3ds_fuse.exe from the save3ds .zip file into the rebuild folder

Section II - Rebuilding the Database

OOjs UI icon information-progressive.svg If you are not on Windows, replace py -3 with python3 in all commands.
  1. Navigate to the rebuild folder in file explorer
  2. Hold SHIFT and right-click anywhere in the folder's empty space, then click the option that opens a terminal, PowerShell, or Command Prompt
  3. In this new window, enter the following commands one at a time:
    1. py -3 -V
      • If this does not print the Python version, it is either not installed correctly, or the wrong command was used. Please read the note above.
    2. py -3 -mpip install --user -r requirements.txt
    3. py -3 fix-titledb.py -b boot9.bin -m movable.sed -s X:
    4. py -3 rebuild-title-database.py -b boot9.bin -m movable.sed -S seeddb.bin -s X: -o out
      • replace X: with your SD card's drive letter
    5. ./save3ds_fuse --db sdtitle out --import --boot9 boot9.bin --movable movable.sed --sd X:
      • replace X: with your SD card's drive letter
  4. If you didn't get any errors, your apps should reappear on the HOME Menu immediately
    • If they only appear in System Settings -> Data Management and they have an X through their icons there, run faketik.
    • If they do not appear anywhere in the system, you should check your SD card for errors - the apps are likely gone.

Troubleshooting

  • boot9.bin is missing in [M:] MEMORY VIRTUAL
  • The first command in Section II gave the error ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
    • Make sure you are in the rebuild folder and that you extracted the contents of rebuild-title-database-master.zip into it.
      • Once this is fixed, delete the out folder and try the command again.
  • The second or third command in Section II failed
    • Make sure you have boot9.bin and movable.sed in the rebuild folder.
    • Make sure the SD card is inserted and you can view and edit its contents.