Repacking the ROM - kubo25/Diabolik-Lovers-STCM2L-Editor GitHub Wiki
- UMDGen: To create a new ROM ISO.
- pgdecrypt: To encrypt the new archive. Credit goes to Belmondo
- CPKTools: To create a new archive.
All translated script files have to overwrite their original japanese counterparts and no new files should be added for the repacking to succeed.
- Run CPKTools and in the bottom section select the folder which contains all the unpacked files and the translations.
- Set all the settings according to this image.
- For save path select the folder with pgdecrypt and save the file as data.cpk.
- Click build. Building the CPK archive might take a while.
- Run pgdecrypt. Make sure that that its folder contains vkey and header files created during unpacking.
- After pgdecrypt is done you should see a new file named DATA.cpk.encrypt appear.
- Rename this file to INSTALL.DNS (case sensitive).
- Run UMDGen and open the original ROM ISO.
- In UMDGen navigate to PSP_GAME/INSDIR.
- Drag and drop INSTALL.DNS from pgdecrypt directory into UMDGen and replace the original file.
- In UMDGen select Save as uncompressed. Creating a new ISO might take a while.
- 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.