Join also our Discord channel! Click here.

Extracting Compile Heart's .pck files from PSVITA game.

Get your graphics formats figures out here! Got details for others? Post here!
Post Reply
LeonNeol
n00b
Posts: 15
Joined: Tue Jul 18, 2017 4:36 pm
Has thanked: 10 times

Extracting Compile Heart's .pck files from PSVITA game.

Post by LeonNeol » Thu Feb 14, 2019 1:35 pm

I downloaded a PSVITA game made by Compile Heart. Most game files are in .pck format. I'm looking for help in extracting these files.
Here is a file called PatternFade.pck extracted from the game. I believed it is a package consists of serveral .tex files. Is it possible to extract these .pck files?

File: https://www.dropbox.com/s/t0exs3fll4whv ... e.pck?dl=0

TheUkrainianBard
beginner
Posts: 20
Joined: Wed Jun 28, 2017 7:51 pm
Has thanked: 4 times
Been thanked: 19 times

Re: Extracting Compile Heart's .pck files from PSVITA game.

Post by TheUkrainianBard » Thu Feb 14, 2019 7:00 pm

PCK is a game archive, in this case it's the same as Hyperdevotion Noire.
TEX are zlib'd and 8bit palletized, palette is right after the image data.
I didn't encounter 8bit palletized images in Hyperdevotion Noire PC back in 2016, so my script doesn't apply the palette.

User avatar
Acewell
VIP member
VIP member
Posts: 1317
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2658 times
Been thanked: 816 times

Re: Extracting Compile Heart's .pck files from PSVITA game.

Post by Acewell » Fri Feb 15, 2019 1:44 am

and because i like to dabble with anything graphics related i used
TheUkrainianBard's findings to make a bms script to extract and
decompress the tex files from pck sample on the fly and
the Noesis python script opens the extracted tex samples. :D
CompileHeart.zip
the scripts cater only to your sample and for this game.
You do not have the required permissions to view the files attached to this post.

LeonNeol
n00b
Posts: 15
Joined: Tue Jul 18, 2017 4:36 pm
Has thanked: 10 times

Re: Extracting Compile Heart's .pck files from PSVITA game.

Post by LeonNeol » Fri Feb 15, 2019 8:45 am

Using your help I was able to extract .pck files. Now I encounter a .tex file. I thought I can use the same BMS Script I used to decrypt a Date A Live game but I was wrong. This file contains ZLIB header. And I can get some .pck files from the extracted .pck file. They also have the ZLIB header. Can someone help me with extracting these .tex and ZLIB .pck files?

BG0001.tex file: https://www.dropbox.com/s/5tj2kh48rg381 ... 1.tex?dl=0
MA010100.pck file: https://www.dropbox.com/s/3kmlgy7qqbgw8 ... 0.pck?dl=0

TheUkrainianBard
beginner
Posts: 20
Joined: Wed Jun 28, 2017 7:51 pm
Has thanked: 4 times
Been thanked: 19 times

Re: Extracting Compile Heart's .pck files from PSVITA game.

Post by TheUkrainianBard » Fri Feb 15, 2019 4:33 pm

That's just zlib compression.

LeonNeol
n00b
Posts: 15
Joined: Tue Jul 18, 2017 4:36 pm
Has thanked: 10 times

Re: Extracting Compile Heart's .pck files from PSVITA game.

Post by LeonNeol » Sat Feb 16, 2019 7:14 am

I was able to decompress ZLIB files, but can't get my hand on the .tex files. Unpacked .pck also include .tex files. BMS scripts, Noesis plugin and DSFO doesn't work. Look like they used different encryption/compression. Can these files still be extracted?

BG0001_unpacked.tex file: https://www.dropbox.com/s/r2y4x5dgv3av8 ... d.tex?dl=0
MA010100_unpacked.pck file: https://www.dropbox.com/s/jwo21gzzl64h9 ... d.pck?dl=0
Zip archive of extracted MA010100_unpacked.pck file: https://www.dropbox.com/s/s0ribase7wsfg ... d.zip?dl=0

TheUkrainianBard
beginner
Posts: 20
Joined: Wed Jun 28, 2017 7:51 pm
Has thanked: 4 times
Been thanked: 19 times

Re: Extracting Compile Heart's .pck files from PSVITA game.

Post by TheUkrainianBard » Sat Feb 16, 2019 3:00 pm

Well, I caved in to rewrite my 2016 QuickBMS script into a Noesis one.
Automatic ZLIB handling - no need to decompress .tex files anymore.
You'll have to remove conflicting scripts (in this case Acewell's tex_CompileHeart_PSVita_tex.py).
I'll update with decompression of Sting/Aquaplus implementation of LZSS, so it would handle other games too.

UPD (Oct 20, 2019): a fix for this.
UPD (Apr 13, 2020): added some game presets; check and edit the script itself.
You do not have the required permissions to view the files attached to this post.
Last edited by TheUkrainianBard on Mon Apr 13, 2020 3:26 pm, edited 1 time in total.

tempaccount555
n00b
Posts: 13
Joined: Sun May 12, 2019 1:14 pm
Has thanked: 5 times

Re: Extracting Compile Heart's .pck files from PSVITA game.

Post by tempaccount555 » Sat Apr 11, 2020 1:00 pm

Just saw this thread trying to decode LZ77 format .TEX from Dungeon Travelers 2-2 for PSVITA (Another Sting/Aquaplus game). Plugin doesn't seem to work with Noesis (get error), maybe format changed?

Example .TEX here.
You do not have the required permissions to view the files attached to this post.

TheUkrainianBard
beginner
Posts: 20
Joined: Wed Jun 28, 2017 7:51 pm
Has thanked: 4 times
Been thanked: 19 times

Re: Extracting Compile Heart's .pck files from PSVITA game.

Post by TheUkrainianBard » Sun Apr 12, 2020 3:19 am

The compression is the same but I don't see width/height anywhere

tempaccount555
n00b
Posts: 13
Joined: Sun May 12, 2019 1:14 pm
Has thanked: 5 times

Re: Extracting Compile Heart's .pck files from PSVITA game.

Post by tempaccount555 » Sun Apr 12, 2020 5:19 am

Sorry I'm an idiot I tried extracting manually forgot to leave other metadata.

Try another one, it just crash Noesis. See attached example TEX.
You do not have the required permissions to view the files attached to this post.
Last edited by tempaccount555 on Sun Apr 12, 2020 5:22 am, edited 1 time in total.

tempaccount555
n00b
Posts: 13
Joined: Sun May 12, 2019 1:14 pm
Has thanked: 5 times

Re: Extracting Compile Heart's .pck files from PSVITA game.

Post by tempaccount555 » Sun Apr 12, 2020 5:22 am

Another Example One thing to note is not all .TEX files are LZ77. Some are PNG which can be viewed in IrfanView anyway.
You do not have the required permissions to view the files attached to this post.

TheUkrainianBard
beginner
Posts: 20
Joined: Wed Jun 28, 2017 7:51 pm
Has thanked: 4 times
Been thanked: 19 times

Re: Extracting Compile Heart's .pck files from PSVITA game.

Post by TheUkrainianBard » Sun Apr 12, 2020 11:31 am

Remove tex_Sting_Aquaplus_tex.py from your noesis\plugins\python folder - I'll update the universal script sometime later.

UPD (Apr 13, 2020): universal script updated, please refer to this post.
Last edited by TheUkrainianBard on Mon Apr 13, 2020 3:29 pm, edited 2 times in total.

tempaccount555
n00b
Posts: 13
Joined: Sun May 12, 2019 1:14 pm
Has thanked: 5 times

Re: Extracting Compile Heart's .pck files from PSVITA game.

Post by tempaccount555 » Sun Apr 12, 2020 3:40 pm

Can confirm this works. Thanks very much for the quick response!

Post Reply