Need help understanding PSP VN scripts

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
nyxlucifer
Posts: 4
Joined: Tue Apr 07, 2020 3:07 pm

Need help understanding PSP VN scripts

Post by nyxlucifer »

Hey there, I recently got a PSP VN called Corpse Party and thought would be a cool stuff to learn Japanese too (OCR issues btw). I tried decrypting and extracting contents, and got SCRIPT files. But they are all jumbled, I could not find any pattern on where scripts start next, they all are divided into individual map scripts. I tried searching "SCRIPT" string in EBOOT.BIN and all (hey! It might be encryoted I don't know!) but there was nothing. So anyone has an idea on it? It would help me a bunch to go through it comfortably

EDIT:- Here is one of map SCRIPTs https://drive.google.com/open?id=1ym8me ... h3X5I3WqKC
There is also some sort of MAP data associate with it in this file https://drive.google.com/open?id=10pCfA ... Us7YWMfLuy I can't understand it, but I assume it has to do with boundaries, or maybe also on triggers?

Also, I remember seeing "source/VisualNovelEngine" or something like that in decrypted EBOOT.BIN. What's that? Is it something included in all PSPs? If yes, where can I get more info on it, so I can make use of it, and understand how these files are being used
Last edited by nyxlucifer on Sun Apr 12, 2020 4:59 am, edited 2 times in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Need help understanding PSP VN scripts

Post by aluigi »

Better if you upload one of these script files so the other users can take a look at them.
nyxlucifer
Posts: 4
Joined: Tue Apr 07, 2020 3:07 pm

Re: Need help understanding PSP VN scripts

Post by nyxlucifer »

Added a link!!
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Need help understanding PSP VN scripts

Post by aluigi »

What you mean exactly?
It looks very comprehensible.
Image
nyxlucifer
Posts: 4
Joined: Tue Apr 07, 2020 3:07 pm

Re: Need help understanding PSP VN scripts

Post by nyxlucifer »

aluigi wrote:What you mean exactly?
It looks very comprehensible.
Image

When playing game, I was lost for a while because after SCRIPT4,0 it didn't execute SCRIPT4,2 but SCRIPT6,0. It had me lost for while because those two are not very different and I confused where some bits go. So this is what I wanted to know, which part of game's files control this behavior of executing SCRIPT4,0 and then 6,0, then go up to 22,0 then 22,1, and such
nyxlucifer
Posts: 4
Joined: Tue Apr 07, 2020 3:07 pm

Re: Need help understanding PSP VN scripts

Post by nyxlucifer »

Sorry for the shameless bump, but I needed to add this. I looked through IMAGE.BIN which should have had all data though maps seem to be missing. Also, the EBOOT.BIN had string like "source/visualnovelengine.cpp" as mentioned before

I think maybe SYSDIR/DATA.BIN has them? But at same time, I have heard many say it just has firmware/update things. Is there any way to decrypt DATA.BIN file? It has a PSAR signature bt

EDIT:- After lot of searching around, I think it's all just encrypted. Would require reversing game to get the files. I might try it someday. But for now, this is it. I will just use script and read some Japanese now
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Need help understanding PSP VN scripts

Post by aluigi »

PSAR is covered by the following script:
http://aluigi.org/bms/brink.bms

You can try it, maybe it works.