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

Decompress Blood Bowl 2 CPK Files

Read or post about compression. And decompression. Or ask questions how to decompress your files.
Ketsumachi
ultra-n00b
Posts: 4
Joined: Thu Sep 24, 2015 2:48 pm

Decompress Blood Bowl 2 CPK Files

Post by Ketsumachi »

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.
ekanspt
advanced
Posts: 49
Joined: Wed Dec 29, 2010 11:26 pm
Has thanked: 7 times
Been thanked: 19 times

Re: Decompress Blood Bowl 2 CPK Files

Post by ekanspt »

I think that this does it:

Code: Select all

#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;
Ketsumachi
ultra-n00b
Posts: 4
Joined: Thu Sep 24, 2015 2:48 pm

Re: Decompress Blood Bowl 2 CPK Files

Post by Ketsumachi »

I would love to test it out, I'm not entirely familiar with what you've given though. What do I run that through?
ekanspt
advanced
Posts: 49
Joined: Wed Dec 29, 2010 11:26 pm
Has thanked: 7 times
Been thanked: 19 times

Re: Decompress Blood Bowl 2 CPK Files

Post by ekanspt »

I'm using MultiEx commander.

I've found a .bms script here: http://aluigi.org/papers/bms/others/blood_bowl_2.bms.
Ketsumachi
ultra-n00b
Posts: 4
Joined: Thu Sep 24, 2015 2:48 pm

Re: Decompress Blood Bowl 2 CPK Files

Post by Ketsumachi »

Okay, so that was able to decompress the file. What would be the way of repacking them?
ekanspt
advanced
Posts: 49
Joined: Wed Dec 29, 2010 11:26 pm
Has thanked: 7 times
Been thanked: 19 times

Re: Decompress Blood Bowl 2 CPK Files

Post by ekanspt »

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.
Ketsumachi
ultra-n00b
Posts: 4
Joined: Thu Sep 24, 2015 2:48 pm

Re: Decompress Blood Bowl 2 CPK Files

Post by Ketsumachi »

Wonderful, thank you very much.
User avatar
TaylorMouse
ultra-veteran
ultra-veteran
Posts: 348
Joined: Mon Sep 26, 2011 12:51 pm
Has thanked: 11 times
Been thanked: 89 times

Re: Decompress Blood Bowl 2 CPK Files

Post by TaylorMouse »

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.
You do not have the required permissions to view the files attached to this post.
tazdevilal
ultra-n00b
Posts: 1
Joined: Tue Sep 29, 2015 4:16 pm

Re: Decompress Blood Bowl 2 CPK Files

Post by tazdevilal »

Not sure how this should be set up. any advice?
Zetan
ultra-n00b
Posts: 1
Joined: Wed Jan 04, 2017 6:42 pm

Re: Decompress Blood Bowl 2 CPK Files

Post by Zetan »

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: Select all

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.
xelanizul
ultra-n00b
Posts: 4
Joined: Mon Feb 13, 2017 11:43 am

Re: Decompress Blood Bowl 2 CPK Files

Post by xelanizul »

"When it's done I'm left with an empty "Extracted" folder and an empty "ExtractedOther" folder in the same directory."

Me too
User avatar
Ren07
advanced
Posts: 46
Joined: Sat Oct 11, 2014 7:05 pm
Location: Republic of Korea
Has thanked: 32 times
Been thanked: 3 times
Contact:

Re: Decompress Blood Bowl 2 CPK Files

Post by Ren07 »

Anyone know how to repack?
Oddie
ultra-n00b
Posts: 1
Joined: Sun Jan 27, 2019 8:00 am

Re: Decompress Blood Bowl 2 CPK Files

Post by Oddie »

TaylorMouse wrote: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.
The command prompt force closes when i try to enter any data. Can you please instruct me how to use this?

Thanks
SnakeBlitzen
ultra-n00b
Posts: 2
Joined: Thu Jun 20, 2019 11:03 pm

Re: Decompress Blood Bowl 2 CPK Files

Post by SnakeBlitzen »

I was able to decompress the BB2 packages with quickbms and then convert all of the 3D files from .cef to .obj with 3D Object Converter but now I'd like to figure out how to use the .motion files to get the animations and apply them to the 3D files (I'm assuming the .motion files contain the animations).
Has anyone else tried this and were you successful? How did you do it and what have you tried?
deepty
ultra-n00b
Posts: 1
Joined: Tue Sep 24, 2019 9:25 pm

Re: Decompress Blood Bowl 2 CPK Files

Post by deepty »

You said you converted .cef files to .obj. Can you please tell me how exactly? When i'm trying to open this bb2 cef with "3d object converter 5.30" it shows error about no valid format or no objects.
You can answer me by mail I sent you in pm.
Post Reply