XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Sun Oct 21, 2018 3:43 pm

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Help with Valkyria Chronicles 4 .CPK (PC Steam version)
PostPosted: Wed Sep 26, 2018 6:36 pm 
Offline
ultra-n00b

Joined: Wed Sep 26, 2018 5:49 pm
Posts: 2
Has thanked: 0 time
Have thanks: 0 time

Hello.

So VC4 got released yesterday, and I'm having some trouble with unpacking its files. I'm not knowledgeable about the ways of archiving, compression and encryption algorithms, so I'm requesting some help.

The CPK file appears to be extractable by a couple of tools. Specifically, quickBMS with script from official page (0.3.3) and CriPakTools can list and extract... let's say SOME files, because I'm not sure they've read ALL of them. Most likely all, but that's an assumption from my part. Those files are provably readable and have expected things in them, so there appears to be no file-level encryption going on.

Now, the issue comes around when I need to pack things back in. Creating an archive from scratch with CriPakTools sure packs them in (and can naturally extract back correctly everything it packs), but there appears to be some magic/format alteration at the beginning which results in an archive that the game does not read (CTD on load, which was typical for incorrect files in VC1 as well).

Looking closer, it might be similar to this case: http://forum.xentax.com/viewtopic.php?f=10&t=5067
There's same-ish thing with CPK header and TOC header starting off with a lot of similar bytes and some differencies, so I guess it's necessary to figure out how to create an expected CPK header from TOC and some magic numbers+algo?

Could also be a different compression algorithm, file size packed by CriPakTools is slightly smaller.

Oh, the file in question
{{scrapped as promised below}}
There's of course a lot more, but this one is the only small one (68 MB, the one I'm more interested in is 23 GB of base game data). I'll take it down after it's no longer necessary.

You can make the ads go away by registering



Last edited by DoomyDoom on Sat Sep 29, 2018 1:27 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Help with Valkyria Chronicles 4 .CPK (PC Steam version)
PostPosted: Sat Sep 29, 2018 6:04 am 
Offline
ultra-n00b

Joined: Sun Jul 22, 2018 7:51 am
Posts: 2
Has thanked: 0 time
Have thanks: 0 time
DoomyDoom wrote:

used YACpkTool https://github.com/Brolijah/YACpkTool


Top
 Profile  
 
 Post subject: Re: Help with Valkyria Chronicles 4 .CPK (PC Steam version)
PostPosted: Sat Sep 29, 2018 1:27 pm 
Offline
ultra-n00b

Joined: Wed Sep 26, 2018 5:49 pm
Posts: 2
Has thanked: 0 time
Have thanks: 0 time
Tanks, this indeed seems to have worked. At least the game launched correctly after repacking (didn't try editing though, but that's a tale for another day). Apparently my issues were (and still are) just Denuvo being Denuvo and not letting me lauch on one of my PCs.



Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: FozeSt, T0M099 and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group