Repacking the ROM - kubo25/Diabolik-Lovers-STCM2L-Editor GitHub Wiki

Necessary tools

Repacking the ROM

All translated script files have to overwrite their original japanese counterparts and no new files should be added for the repacking to succeed.

  1. Run CPKTools and in the bottom section select the folder which contains all the unpacked files and the translations.
  2. Set all the settings according to this image.

CPKTools settings

  1. For save path select the folder with pgdecrypt and save the file as data.cpk.
  2. Click build. Building the CPK archive might take a while.
  3. Run pgdecrypt. Make sure that that its folder contains vkey and header files created during unpacking.
  4. After pgdecrypt is done you should see a new file named DATA.cpk.encrypt appear.
  5. Rename this file to INSTALL.DNS (case sensitive).
  6. Run UMDGen and open the original ROM ISO.
  7. In UMDGen navigate to PSP_GAME/INSDIR.
  8. Drag and drop INSTALL.DNS from pgdecrypt directory into UMDGen and replace the original file.
  9. In UMDGen select Save as uncompressed. Creating a new ISO might take a while.
  10. Congratulations you created a new ROM with translations.

Warning: When running a new ROM don't load emulator save states from older ROM versions. The file changes will cause the emulator to crash (at least in PPSSPP).

I totally don't know anyone who spent multiple hours looking for errors because of it.

⚠️ **GitHub.com Fallback** ⚠️