Important information: this site is currently scheduled to go offline indefinitely by end of the year.

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

Get your graphics formats figures out here! Got details for others? Post here!
Post Reply
Maren
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 Maren »

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: 21
Joined: Wed Jun 28, 2017 7:51 pm
Has thanked: 4 times
Been thanked: 20 times

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

Post by TheUkrainianBard »

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.
Acewell
VIP member
VIP member
Posts: 1330
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2710 times
Been thanked: 884 times

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

Post by Acewell »

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.
Maren
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 Maren »

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: 21
Joined: Wed Jun 28, 2017 7:51 pm
Has thanked: 4 times
Been thanked: 20 times

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

Post by TheUkrainianBard »

That's just zlib compression.
Maren
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 Maren »

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: 21
Joined: Wed Jun 28, 2017 7:51 pm
Has thanked: 4 times
Been thanked: 20 times

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

Post by TheUkrainianBard »

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
beginner
Posts: 27
Joined: Sun May 12, 2019 1:14 pm
Has thanked: 11 times
Been thanked: 3 times
Contact:

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

Post by tempaccount555 »

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: 21
Joined: Wed Jun 28, 2017 7:51 pm
Has thanked: 4 times
Been thanked: 20 times

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

Post by TheUkrainianBard »

The compression is the same but I don't see width/height anywhere
tempaccount555
beginner
Posts: 27
Joined: Sun May 12, 2019 1:14 pm
Has thanked: 11 times
Been thanked: 3 times
Contact:

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

Post by tempaccount555 »

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
beginner
Posts: 27
Joined: Sun May 12, 2019 1:14 pm
Has thanked: 11 times
Been thanked: 3 times
Contact:

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

Post by tempaccount555 »

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: 21
Joined: Wed Jun 28, 2017 7:51 pm
Has thanked: 4 times
Been thanked: 20 times

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

Post by TheUkrainianBard »

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
beginner
Posts: 27
Joined: Sun May 12, 2019 1:14 pm
Has thanked: 11 times
Been thanked: 3 times
Contact:

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

Post by tempaccount555 »

Can confirm this works. Thanks very much for the quick response!
algcock
ultra-n00b
Posts: 1
Joined: Mon Jun 14, 2021 1:15 pm

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

Post by algcock »

TheUkrainianBard wrote: 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.
weird, choosing preset #2 for Dungeon Travelers 2-2 just throws me an error when trying to view its .tex files see pic
Oddly enough, #3 (PC) Hyperdevotion Noire lets me view the .tex files for DT1 and 2 (the previous games) just fine.
narutolied
ultra-n00b
Posts: 1
Joined: Sun Oct 10, 2021 10:24 am

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

Post by narutolied »

I am working on a Translation for dt 2-2. For me the python plugin and noesis worked perfektly, thx a lot. I wasn´t able to unpack the .pck files so far.

Question: If i export the images and change theme, how can i recode them for repatch to work on a vita system ? I can gues that the bits and bytes have to be at the exact same position to work but cant find a way to repack/rezip them like the original.

I gues whit BMS i could reinject the edited ones but i cant get a bms script to work with DT 2-2 tex oder pck Files

Edit: I was able to extract the tex files form the pck with bms. Also i was able to extract an PNG from the TEX files and reimport it succsesfully after editing. RePatch with Vita worked and showed the right picture. As all of this is for DT2-2 i thing i dont follow up on this thread as this is for Compile Hearts. If anybody is intressted in my work with DT2-2 Mail me or search for my post in zenhax.
Post Reply