[PS2] Games made by Cybelle .pak

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Reny_oiz
Posts: 4
Joined: Thu Dec 08, 2022 10:58 pm

[PS2] Games made by Cybelle .pak

Post by Reny_oiz »

how can I unpack the CGs and scripts of games made by Cybelle for example:
Gakuen heaven Okawari (ps2 version)
Piyotan ~Oyashiki Sennyuu☆Daisakusen~
kanon

I have the files for the first two if you need them.
BloodRaynare
Posts: 367
Joined: Fri Mar 10, 2017 7:23 am

Re: [PS2] Games made by Cybelle .pak

Post by BloodRaynare »

Please post the sample files here.
Reny_oiz
Posts: 4
Joined: Thu Dec 08, 2022 10:58 pm

Re: [PS2] Games made by Cybelle .pak

Post by Reny_oiz »

BloodRaynare
Posts: 367
Joined: Fri Mar 10, 2017 7:23 am

Re: [PS2] Games made by Cybelle .pak

Post by BloodRaynare »

The PAK format itself was simple, these BMS scripts is enough:

cybelle_pak.bms

Code: Select all

get FILES long
math FILES - 1

for i = 0 < FILES
	get OFFSET long
	putarray 0 i OFFSET
next i

for i = 0 < FILES
	getarray OFFSET 0 i
	math i + 1
	if i == FILES
		get PAK_SZ asize
		xmath SIZE "PAK_SZ - OFFSET"
	else
		getarray NEXT_OFFSET 0 i
		xmath SIZE "NEXT_OFFSET - OFFSET"
	endif
	string NAME p "%04d." i
	log NAME OFFSET SIZE
next
Use QuickBMS to run the script.

However, the GC/graphic files are compressed and currently the algorithm is not known and at worst, it was proprietary which means someone will have to reverse engineer the game to figuring it out and it was no easy task and also time consuming depending how hard it was. The script files are somewhat readable though given that your hex editor supports Shift-JIS japanese characters.

Also, no actual filenames inside the PAK file, so the script will outputs the name as the sequential numbers.
Reny_oiz
Posts: 4
Joined: Thu Dec 08, 2022 10:58 pm

Re: [PS2] Games made by Cybelle .pak

Post by Reny_oiz »

Thanks for the help.