=============================================================== bz2unpak.exe =============================================================== DISCLAIMER: This program is not supported by anybody. If you choose to run this program you do so AT YOUR OWN RISK! =============================================================== WARNING: You will need a *lot* of free disk space to run this. I dont know what will happen if you try to run it without enough disk space. Read the above disclaimer again, you have been warned. =============================================================== USAGE: put bz2upak.exe and the pak file you wish to unpack into the same directory. from a DOS prompt in that directory type - bz2unpak where is the name of your pak file eg : bz2unpak data.pak bz2unpak bumps.pak bz2unpak smtex.pak =============================================================== WHAT IT DOES: Used properly, the program will extract all the files from the pak file into the same directory. =============================================================== SOURCE CODE: As I do not intend to use, support or continue development of this unpacker, the source code is included here for you to refer to in the event that you want to write a more friendly unpaker or windows pak file explorer. =============================================================== bz2unpak.c --------------------------------------------------------------- #include //unpacks the BZ2 data.pak //does not use dircetory names void main(int argc, char*argv[]) { int tot;//number of files int fhadr;//file header address int fadr;//file address int flen;//file length int i; char fname[255]; char namlen; char *buf; FILE *pakfile; FILE *output; pakfile=fopen(argv[1],"rb"); //get the number of files fseek(pakfile,16,SEEK_SET); fread(&tot,sizeof(int),1,pakfile); //get the address of the first file name fread(&fhadr,sizeof(int),1,pakfile); for (i=0;i