XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Tue Aug 22, 2017 2:01 pm

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Decompress Blood Bowl 2 CPK Files
PostPosted: Thu Sep 24, 2015 3:01 pm 
Offline
ultra-n00b

Joined: Thu Sep 24, 2015 2:48 pm
Posts: 4
Has thanked: 0 time
Have thanks: 0 time














You can make the ads go away by registering

I'm looking for any assistance in unpacking and repacking the CPK files for Blood Bowl 2 (PC). I have dabbled around with trying to unpack them myself, but have been unable to with common methods such as QuickBMS and CriPakTools. QuickBMS's standard CPK script says that the file's format comes up as "UÿC☺" while CriPakTools says the CPK signature is not found.

The signature of the 4 bytes at offset 0x00000000 do not match the expected in the script. They are 55 98 43 01 and do not match the CPK standard offset.

Link to sample file: https://www.dropbox.com/s/cchdze6x12zko ... 9.cpk?dl=0

Within these CPK files appears to be standard .dds and .nif files for the skins and models of the players, as well as the files that modify the positions of assets (such as the End turn button). I will have a lot of room to work in modding the game, as well as possibly improving the original game based on what is found. The only hurdle is getting past unpacking this odd kind of CPK.


Top
 Profile  
 
 Post subject: Re: Decompress Blood Bowl 2 CPK Files
PostPosted: Thu Sep 24, 2015 5:40 pm 
Offline
advanced

Joined: Wed Dec 29, 2010 11:26 pm
Posts: 49
Has thanked: 7 times
Have thanks: 18 times
I think that this does it:

Code:
#Blood Bowl 2 *.cpk

ImpType Standard;
GoTo 4 0;
Get NFiles Long 0;
GoTo 520 0;
SavePos HOffset 0;

For I = 1 To NFiles;
SavePos FSizeOffset 0;
Get FSize Long 0;
SavePos FOffsetOffset 0;
Get FOffset Long 0;
Get FName String 0;

Log FName FOffset FSize FOffsetOffset FSizeOffset;

Math HOffset += 520;
GoTo HOffset 0;
Next I;


Top
 Profile  
 
 Post subject: Re: Decompress Blood Bowl 2 CPK Files
PostPosted: Thu Sep 24, 2015 5:48 pm 
Offline
ultra-n00b

Joined: Thu Sep 24, 2015 2:48 pm
Posts: 4
Has thanked: 0 time
Have thanks: 0 time
I would love to test it out, I'm not entirely familiar with what you've given though. What do I run that through?


Top
 Profile  
 
 Post subject: Re: Decompress Blood Bowl 2 CPK Files
PostPosted: Thu Sep 24, 2015 5:53 pm 
Offline
advanced

Joined: Wed Dec 29, 2010 11:26 pm
Posts: 49
Has thanked: 7 times
Have thanks: 18 times
I'm using MultiEx commander.

I've found a .bms script here: http://aluigi.org/papers/bms/others/blood_bowl_2.bms.


Top
 Profile  
 
 Post subject: Re: Decompress Blood Bowl 2 CPK Files
PostPosted: Thu Sep 24, 2015 6:29 pm 
Offline
ultra-n00b

Joined: Thu Sep 24, 2015 2:48 pm
Posts: 4
Has thanked: 0 time
Have thanks: 0 time
Okay, so that was able to decompress the file. What would be the way of repacking them?


Top
 Profile  
 
 Post subject: Re: Decompress Blood Bowl 2 CPK Files
PostPosted: Thu Sep 24, 2015 6:35 pm 
Offline
advanced

Joined: Wed Dec 29, 2010 11:26 pm
Posts: 49
Has thanked: 7 times
Have thanks: 18 times
If you are using multiex, maybe this can help you: viewtopic.php?f=29&t=5921.

If you are using quickbms, please read Section 3 of this .txt: http://aluigi.altervista.org/papers/quickbms.txt.


Top
 Profile  
 
 Post subject: Re: Decompress Blood Bowl 2 CPK Files
PostPosted: Thu Sep 24, 2015 6:49 pm 
Offline
ultra-n00b

Joined: Thu Sep 24, 2015 2:48 pm
Posts: 4
Has thanked: 0 time
Have thanks: 0 time
Wonderful, thank you very much.


Top
 Profile  
 
 Post subject: Re: Decompress Blood Bowl 2 CPK Files
PostPosted: Sat Sep 26, 2015 12:01 am 
Offline
ultra-veteran
ultra-veteran
User avatar

Joined: Mon Sep 26, 2011 12:51 pm
Posts: 336
Has thanked: 12 times
Have thanks: 115 times
Hi guys I wrote a litte command line tool that can be used to extract all the files from all the cpk packages from blood bowl 2

complete extractions takes only a couple of minutes

usage example:

BloodBowl2Unpacker.exe "D:\Games\Blood Bowl 2" "D:\Games\Blood Bowl 2\Extracted\"

so BloodBowl2Unpacker.exe [Installation Folder] [Folder to extract the files to]

make sure your destination folder exists, it will create some subfolders though

all seem to be working, dds, txt, csv, fnt, lua, etc...
although it does extract all the files, it does not convert it to anything other like the cef, dff, psb files and other of course

Hope this is usefull to someone :)

T.


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.


_________________
My Game Dev Blog
My Starcraft II Mod files and scripts


Top
 Profile  
 
 Post subject: Re: Decompress Blood Bowl 2 CPK Files
PostPosted: Tue Sep 29, 2015 4:42 pm 
Offline
ultra-n00b

Joined: Tue Sep 29, 2015 4:16 pm
Posts: 1
Has thanked: 0 time
Have thanks: 0 time
Not sure how this should be set up. any advice?


Top
 Profile  
 
 Post subject: Re: Decompress Blood Bowl 2 CPK Files
PostPosted: Wed Jan 04, 2017 7:01 pm 
Offline
ultra-n00b

Joined: Wed Jan 04, 2017 6:42 pm
Posts: 1
Has thanked: 0 time
Have thanks: 0 time
Having some trouble with this. Is it possible the file structure has changed somewhat in the past year? When I run it, I get output that looks like this:
Code:
DataProvider_0.cpk
  - writing
  - writing
  - writing
  - writing
Data_Game_0.cpk
  - writing
  - writing
  - writing
  - writing
  - writing


It goes on and on like that, with lots of those " - writing" lines for each file. When it's done I'm left with an empty "Extracted" folder and an empty "ExtractedOther" folder in the same directory.


Top
 Profile  
 
 Post subject: Re: Decompress Blood Bowl 2 CPK Files
PostPosted: Sun May 21, 2017 1:04 pm 
Offline
ultra-n00b

Joined: Mon Feb 13, 2017 11:43 am
Posts: 4
Has thanked: 0 time
Have thanks: 0 time
"When it's done I'm left with an empty "Extracted" folder and an empty "ExtractedOther" folder in the same directory."

Me too


Top
 Profile  
 
 Post subject: Re: Decompress Blood Bowl 2 CPK Files
PostPosted: Tue Jul 25, 2017 3:24 pm 
Offline
n00b
User avatar

Joined: Sat Oct 11, 2014 7:05 pm
Posts: 16
Location: Republic of Korea
Has thanked: 22 times
Have thanks: 2 times
Anyone know how to repack?

_________________
Steam profile: http://steamcommunity.com/id/Ren07/


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


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