Page 1 of 1

Decompress Blood Bowl 2 CPK Files

Posted: Thu Sep 24, 2015 3:01 pm
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.

Re: Decompress Blood Bowl 2 CPK Files

Posted: Thu Sep 24, 2015 5:40 pm
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;

Re: Decompress Blood Bowl 2 CPK Files

Posted: Thu Sep 24, 2015 5:48 pm
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?

Re: Decompress Blood Bowl 2 CPK Files

Posted: Thu Sep 24, 2015 5:53 pm
by ekanspt
I'm using MultiEx commander.

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

Re: Decompress Blood Bowl 2 CPK Files

Posted: Thu Sep 24, 2015 6:29 pm
by Ketsumachi
Okay, so that was able to decompress the file. What would be the way of repacking them?

Re: Decompress Blood Bowl 2 CPK Files

Posted: Thu Sep 24, 2015 6:35 pm
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.

Re: Decompress Blood Bowl 2 CPK Files

Posted: Thu Sep 24, 2015 6:49 pm
by Ketsumachi
Wonderful, thank you very much.

Re: Decompress Blood Bowl 2 CPK Files

Posted: Sat Sep 26, 2015 12:01 am
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.

Re: Decompress Blood Bowl 2 CPK Files

Posted: Tue Sep 29, 2015 4:42 pm
by tazdevilal
Not sure how this should be set up. any advice?

Re: Decompress Blood Bowl 2 CPK Files

Posted: Wed Jan 04, 2017 7:01 pm
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.

Re: Decompress Blood Bowl 2 CPK Files

Posted: Sun May 21, 2017 1:04 pm
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

Re: Decompress Blood Bowl 2 CPK Files

Posted: Tue Jul 25, 2017 3:24 pm
by Ren07
Anyone know how to repack?

Re: Decompress Blood Bowl 2 CPK Files

Posted: Sun Jan 27, 2019 8:57 am
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

Re: Decompress Blood Bowl 2 CPK Files

Posted: Thu Jun 20, 2019 11:08 pm
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?

Re: Decompress Blood Bowl 2 CPK Files

Posted: Wed Sep 25, 2019 9:06 am
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.