Hacking How do I get started on hacking a PSP game?

superstarxalien1

Active Member
OP
Newcomer
Joined
Apr 6, 2012
Messages
43
Trophies
0
Location
Anzoátegui
XP
174
Country
Venezuela
I have so many questions about this.

So I have my ISO and everything, ready for me to extract the contents and modify them to my liking. But... how exactly do I get the files I need?

To be more precise, I'm talking about a visual novel here. Now I'd have to get them from PGD files which are encrypted or something and have CPK files which have something in them as well, but I don't see any of that. Especially PGD files, as I can't get for the life of me what they are.

If it's of any use, here's what the ISO contains (in text form):

PSP_GAME
INSDIR
ICON0.PNG
INSTALL.DNS
INSTALL2.DNS
PIC1.PNG
SYSDIR
UPDATE
DATA.BIN
EBOOT.BIN
PARAM.SFO
BOOT.BIN
EBOOT.BIN
OPNSSMP.BIN
USRDIR
adx2
system_sound.acb
system_sound.acf
data
icon0.png
jis2ucs.bin
pic1.png
ucs2jis.bin
MODULE
libccc.prx
libdeflt.prx
libpsmfplayer.prx
psmf.prx
UMD.CPK
ICON0.PNG
PARAM.SFO
PIC1.PNG
UMD_DATA.BIN

Thanks in advance.
 
Last edited by superstarxalien1,

flame1234

Well-Known Member
Member
Joined
May 17, 2009
Messages
734
Trophies
0
XP
954
Country
United States
For PGD files:
Did you Google? What (phrase) did you Google? What did you try that didn't work?
I haven't actually worked with PGD files before but I Googled and several of the top hits looked promising.

For CPK files you need CRI Filesystem. Copyrighted software, so you're on your own for getting a copy. Discussing its operation is fine, though.
 

superstarxalien1

Active Member
OP
Newcomer
Joined
Apr 6, 2012
Messages
43
Trophies
0
Location
Anzoátegui
XP
174
Country
Venezuela
For PGD files:
Did you Google? What (phrase) did you Google? What did you try that didn't work?
I haven't actually worked with PGD files before but I Googled and several of the top hits looked promising.

For CPK files you need CRI Filesystem. Copyrighted software, so you're on your own for getting a copy. Discussing its operation is fine, though.

Stuff like 'What is a PGD file?' and 'PGD file PSP'. I found some results, but I don't know what to make out of them (in relation to the files I listed, that is).

I don't really need any help with CPK files, I can extract them with CriPakTools. ...Although I'm guessing I will need CRI Filesystem to repack them.
 

superstarxalien1

Active Member
OP
Newcomer
Joined
Apr 6, 2012
Messages
43
Trophies
0
Location
Anzoátegui
XP
174
Country
Venezuela
What's the name of the game?

You won't get any help without naming the game, since we don't know what we're looking at/for.
Diabolik Lovers: Haunted dark Bridal.

See, I'm not exactly sure on what naming the game would be helpful for, since I can't even get a complete look at all of its files. But it should help to know that it, apparently, uses some of Idea Factory's file systems, as told by this post:

Well, do not consider, that I want to be a hacker for that one, just had some minutes free and took a look...

So, all files are in crypted PGD archives (which contain CPK inside), you can decrypt CPK with jpcsp emulator and can extract contents using CriPakTools (or maybe even with native leaked Criware tools, I did not checked. for sure you would be able to repack them in CPK with these, only needed would be to patch eboot to do not use crypt).

All images were in well-known TIM2 format, so would be no problem to edit them, just quite enough work for image editor I would say.

Script files were in same STCM2L format used by Idea Factory everywhere, could be opened and edited with hkki.
I extracted script files, you can take them here: http://www.mediafire.com/download/wcw5u1wbmf41bui/script_dl.zip
hkki windows build: https://github.com/xyzz/hkki/releases/download/140107/hkki.zip

Here is text example:


Here is image examples:
 

master801

Well-Known Member
Member
Joined
Feb 24, 2011
Messages
669
Trophies
1
XP
1,645
Country
United States
Diabolik Lovers: Haunted dark Bridal.

See, I'm not exactly sure on what naming the game would be helpful for, since I can't even get a complete look at all of its files. But it should help to know that it, apparently, uses some of Idea Factory's file systems, as told by this post:

Using those instructions I managed to extract the file.

Contents: https://pastebin.com/qHFAJTau

EDIT: I'm not really sure what you're trying to accomplish here...
 
Last edited by master801,

master801

Well-Known Member
Member
Joined
Feb 24, 2011
Messages
669
Trophies
1
XP
1,645
Country
United States
Yey


I just wanted to extract the very same contents as you did (and eventually patch them, of course), but what exactly did you do?

Used the jpcsp emulator, enabled the pdg decryption setting, ran the game, ran the game again, and out comes a decrypted pdg file.

Then I extracted that file using the utf_tab program.
 

superstarxalien1

Active Member
OP
Newcomer
Joined
Apr 6, 2012
Messages
43
Trophies
0
Location
Anzoátegui
XP
174
Country
Venezuela
Used the jpcsp emulator, enabled the pdg decryption setting, ran the game, ran the game again, and out comes a decrypted pdg file.

Then I extracted that file using the utf_tab program.
Odd, JPCSP was never extracting the PGD, only the EBOOT...

So that's why I was having problems with this. What can I do?
 

superstarxalien1

Active Member
OP
Newcomer
Joined
Apr 6, 2012
Messages
43
Trophies
0
Location
Anzoátegui
XP
174
Country
Venezuela
Try downloading a build from here. If it still isn't working, use the x64 build.
https://buildbot.orphis.net/jpcsp/
Then try to enable the 3 settings (extract savedata key, extract original pgd, extract decrypted eboot) in the crypto tab.
Hey, I actually got to extract the game.

Now from here on I can modify it to my liking, but how can I actually patch the ISO? I mean, I know I'd have to repack the CPK (even though I don't know any tools that can do such), and patch the PGD (which, after all, looks to be INSTALL.DNS). As for this latter file, though, I think I have the option of either reencrypting the PGD (I think I have a tool for this?) or somehow making the game use a decrypted PGD instead.

Either way, thanks for getting me this far. I don't think any guide that I've searched could've done so.
 

master801

Well-Known Member
Member
Joined
Feb 24, 2011
Messages
669
Trophies
1
XP
1,645
Country
United States
Hey, I actually got to extract the game.

Now from here on I can modify it to my liking, but how can I actually patch the ISO? I mean, I know I'd have to repack the CPK (even though I don't know any tools that can do such), and patch the PGD (which, after all, looks to be INSTALL.DNS). As for this latter file, though, I think I have the option of either reencrypting the PGD (I think I have a tool for this?) or somehow making the game use a decrypted PGD instead.

Either way, thanks for getting me this far. I don't think any guide that I've searched could've done so.

The game might support loading the file decrypted, but I'm not sure if that's a viable option, as I have no idea.

This is might some good info:
http://web.archive.org/web/20170806...klabel-translations.com/showthread.php?tid=16
https://gbatemp.net/threads/pgd-encrypter.432029/
 

superstarxalien1

Active Member
OP
Newcomer
Joined
Apr 6, 2012
Messages
43
Trophies
0
Location
Anzoátegui
XP
174
Country
Venezuela

master801

Well-Known Member
Member
Joined
Feb 24, 2011
Messages
669
Trophies
1
XP
1,645
Country
United States
This sounds good for the PGD, but what about the CPK? How do I repack it (if needed)?

Not really sure how to repack, but for a personal project I used crifilesystem (you have to find it yourself).

At that point I had to manually reconstruct the cpk file.
This part was the most tedious part of the whole process, since the cpk could've used a number of different processes when it was made (file mode, data alignment).
Checking the differences between the two files in a hex editor also helped me. You'll want the files to be almost exactly the same. You'll notice big differences if made incorrectly.

You'll have to experiment with it yourself.
 

You may also like...

General chit-chat
Help Users
  • Veho @ Veho:
    Instead of the "big three", you'll have the "little million".
    +1
  • Veho @ Veho:
    It will be two minutes per show.
  • Veho @ Veho:
    Instead of Sony holding a two hour conference, there will be sixty small devs holding two minute conferences.
    +2
  • BigOnYa @ BigOnYa:
    Be a good chance for Soulja Boy to show off his new game system.. The SouljaGame console 3.0
  • Veho @ Veho:
    His next console: a Playdate ripoff called "Crank That".
    +1
  • Flame @ Flame:
    FLORIDA MAN WHERE ARE YOU!?
  • Flame @ Flame:
    save me !!!
  • Veho @ Veho:
    WAKE ME UP
  • x65943 @ x65943:
    can't wake up
  • Flame @ Flame:
    before you you go go?
    +1
  • x65943 @ x65943:
    I'm blue ama dee da ba die
  • Veho @ Veho:
    Wake me up when it's all over.
  • x65943 @ x65943:
    september ended a few months back
    +1
  • Flame @ Flame:
    Do you remember. The 21st night of September?
    +1
  • Flame @ Flame:
    Love was changin' the minds of pretenders. While chasin' the clouds away
    +1
  • Veho @ Veho:
    Remember remember.
    +1
  • x65943 @ x65943:
    Brother, what a night it really was
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Damn that was weird... I use AdBlock browser for Android and I found a web page that crashed it.... Literally just couldn't get out of it lol
  • Veho @ Veho:
    It's Groundhog Day, my dudes.
  • Psionic Roshambo @ Psionic Roshambo:
    Ground up dogs?
  • xoxo25 @ xoxo25:
    <script>alert(0)</script>
  • Psionic Roshambo @ Psionic Roshambo:
    I guess it was easier than walking after him and just arresting him?
    Psionic Roshambo @ Psionic Roshambo: I guess it was easier than walking after him and just arresting him?