HerptyDerpoty

Patching .3ds files

Feb 7th, 2016
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.66 KB | None | 0 0
  1. =====================================================
  2. / \
  3. | The end all be all of modifying 3ds rom dumps |
  4. \ /
  5. =====================================================
  6.  
  7. So you want to apply [insert romfs.bin/exefs.bin binary patch] or [insert romfs/exefs directory patch] like the FEF fan translation?
  8. Well you've came to the right place, here well cover all the steps, from decrypting the .3ds file, to dumping the rom contents, to repacking as a 3ds and converting to cia.
  9.  
  10. As a side note the following method will strip the resulting .3ds file of the following.
  11. FW and region info, effectively cryptofixing, this is not the same though as we arnt hexediting, its just the rom were compiling wont have any included on creation.
  12. The manual
  13. Download Play
  14. Built in update files
  15. Header
  16. AP check
  17. It also changes savedata to CARD2 instead of CARD1, i will not explain this difference so dont ask.
  18.  
  19. Now that that's out of the way you need some required software and homebrew.
  20. https://github.com/d0k3/Decrypt9/releases
  21. https://mega.nz/#!LlYEWCQD!VyS9XTuYfTPwLS4UG4CHDFEj33A3CU-NSSQL8Jovh6A
  22.  
  23. Decrypt9 goes into root:/3ds (if you dont know what root means stop here)
  24. Packhack goes in where you keep your 3ds tools for pc.
  25.  
  26. First step, decrypting your rom.
  27.  
  28. 1) Create folder root:/D9Game
  29. 2) Put the rom you want to decrypt into D9Game
  30. 3) Put your 3ds back together and start up homebrew menu
  31. 4) Launch Decrypt9 and select Game Options, then NCCH/NCSD Decryptor
  32. 5) Let it complete and then shut your 3ds off (its safe to pop your battery out for fast shut off, but make sure it says "Press b to go back or press start to reboot"
  33. 5) Put you sd card into your reader and go to the D9Game folder, at first it seems like nothing has changed when in reality the rom is now decrypted and we can dump the filesystem in folder format and bin format.
  34. 6) Put this .3ds file in the packhack folder and rename it gamenameabbrivatedDEC.3ds
  35.  
  36. Now for PackHack
  37.  
  38. 1) Launch HackingToolkit
  39. 2) Enter "D" and press return
  40. 3) enter the full name of the decrypted rom
  41. 4) Y to decompressing code.bin
  42.  
  43. Now you have the laid out files of the rom, if you're using a loose file based patch (like the fef translation) you put the files in the "ExtractedRomFS/ExeFS" folders, if your using a romfs/exefs.bin based patch you apply the patch to the "DecryptedRomFS/ExeFS.bin"
  44.  
  45. Now to build the file into a .3ds
  46.  
  47. 1) Once again open HackingToolkit
  48. 2) type 3DSB this will open another tool
  49. 3) Check use ExeFS binary unless your patch has files in ExtractedExeFS
  50. 4) Check Use RomFS binary unless your patch has files in ExtracterRomFS
  51. 5) Select open romfs and navigate to the romfs.bin file or the romfs folder depending on which you patched
  52. 6) Select open exefs and navigate to the exefs.bin file or the exefs folder depending on which you patched
  53. 7) Select open ExHeader and navigate to "DecryptedExHeader.bin)
  54. 8) Go to 3dsdb.com and look up the game your editing and find the correct region version and change CTR-P-XXXX to the proper serial listed on 3dsdb.com, for patches this will be change to CTR-U-XXXX the XXXX remains the same for updates and base games and usually for dlc as well (exception FEF) For example smash US would be CTR-P-AXCE, the publisher doesn't matter
  55. 9) Set save location to where ever with the name gameabrivatedPATCHED.3ds
  56. 10) Hit "Go"
  57.  
  58. Now you have a patched .3ds file containing not region info or fw info now to convert it to .3ds, for that follow my other guide for converting 3ds to cia.
  59.  
  60. http://pastebin.com/CeDh65is
  61. with or without the spoof toggle the cia will work doesnt matter either way (for this case, making normal non patched 3ds files into .cia requires the fw spoof)
Add Comment
Please, Sign In to add comment