Unpacking the ROM - kubo25/Diabolik-Lovers-STCM2L-Editor GitHub Wiki
All the files that are needed to translate the game are contained in a PGD encrypted CPK archive named INSTALL.DNS. To get to the files it's necessary to extract it from the ROM, decrypt it and unpack it.
Necessary tools
- UMDGen: to extract files from the ROM.
- pgdecrypt: To decrypt the archive. Credit goes to Belmondo
- CriPackTools: To unpack the decrypted CPK.
Steps
- Open the ROM's ISO file in UMDGen and navigate into INSDIR.
- Right-click INSTALL.DNS and select Extract Selected...
- Extract the file into the folder where you have pgdecrypt. The exctracted file is encrypted and needs to be decrypted. To do this we use pgdecrypt.
- Rename extracted INSTALL.DNS to data.bin.
- Run pgdecrypt. After it closes you should see a new file called DATA.BIN.decrypt appear in the folder. There will also be 2 other new files: header and vkey. Keep these because they will be necessary for repacking.
- Move DATA.BIN.decrypt and CriPackTools.exe to some folder where you want to have the unpacked scripts.
- Open this folder in CMD and run:
CriPakTools.exe DATA.BIN.decrypt ALL
CriPackTools doesn't show any progress in CMD and unpacking could take a while so be patient.
- After unpacking is done you should see 10 new folders. Contents of these are explained in INSTALL.DNS File Structure.
- Congratulations you have unpacked all the files necessary to translate the game.