Jump to content
Sign in to follow this  
gerwin

CatPack Archiving utility

Recommended Posts

CatPack Archiving utility

View File

CatPack - Archiving utility for Third-Wire CAT format, GB 17-07-2011.

 

V1.22, Freeware, Use at your own risk, files limit is set at 8000.

Packs all files in current folder to CatPack.cat except CatPack.exe/CatPack.cat.

Unpacks any cat file you drop on the icon to a folder with the archive's name.

 

You can press Ctrl+Break to interrupt and close the program, but it will leave

files unfinished when doing so.

 

UPDATE:

CatPack V1.1 will extract contents of the new Strike Fighters 2 Cat (no 2) archives.

The Display will tell the Cat version to be 2, instead of 1.

Subfolder information contained in version 2 archives will be restored properly.

The unicode filenames in the version 2 archives are converted back to ASCII,

therefor actual unicode-only characters in filenames will not be restored.

Catpack does not yet support creating a version 2 Cat archive. Maybe later.

 

CatPack V1.11 works properly when Cat files are in folders that have their

'archive' flag set. This seems to be the case with the SF2 objects folder.

 

CatPack V1.12 has some additional features when extracting a Cat archive:

First it automatically creates an index file of the Cat file.

Second and it allows one to optionally pass a wildcard string, only files matching

this wildcard string will be extracted from the archive. For example "mig" will

only extract files that have "mig" in their name or extension.

 

CatPack V1.22 Supports extracting a slightly new Cat format (no 3) as introduced

between May and July 2011. Yet the compressed format that was also introduced

is not supported.

As SF2 since that time does not recognize version 1 cat archives, support for

creating version 2 and 3 was added. Though without packing subfolders. For now it

is recommended to just use format 2.

 

Credits:

Gerwin (gbroers[at]quicknet[d0t]nl) - Author

Kreelin and Paolo - Beta testing of V1.1.

Allegro game programming library - File and Unicode routines.


 

Share this post


Link to post
Share on other sites

Which folder do I install this into? I just needed to ask in case I make a pig's a*se of it

Share this post


Link to post
Share on other sites
Which folder do I install this into? I just needed to ask in case I make a pig's a*se of it

 

For extracting archives it does not matter where you put the program file, as long as the icon is visible

so you can drag 'n drop a cat file on it.

For creating new cat archives you must (temporarely) place the program file inside a folder that contains the files you want to include in the new cat archive.

 

good luck,

Share this post


Link to post
Share on other sites
For creating new cat archives you must (temporarely) place the program file inside a folder that contains the files you want to include in the new cat archive.

 

Excuse me for my dumb question but how exactly do yu convert them back into a cat archive using the extractor. I know it's not the drag and drop method used for extracting...

 

I made some changes to the some aircraft in SF2 Vietnam, but the game engine will not recognize those changes even though the files are in the associated folders. So I figured the only way to fix that is to reconvert them back into cat files...feel free to correct me if I'm wrong.

 

BTW I'm using xp still

Share this post


Link to post
Share on other sites
Excuse me for my dumb question but how exactly do yu convert them back into a cat archive using the extractor. I know it's not the drag and drop method used for extracting...

I made some changes to the some aircraft in SF2 Vietnam

 

CatPack can;

1-Extract a version 1 Cat archive, for SFP1,WOV,WOE,WOI

2-Extract a version 2 Cat archive, for SF2

3-Create a version 1 Cat archive, for SFP1,WOV,WOE,WOI

 

What you intend to do is to 'Create a version 2 cat archive', but that feature is not available in CatPack.

Share this post


Link to post
Share on other sites

SMALL UPDATE:

CatPack V1.11 works properly when Cat files are in folders that have their

'archive' flag set. This seems to be the case with the SF2 objects folder.

 

This should fix the "Error: cannot create subfolder" issue.

Share this post


Link to post
Share on other sites

This is a very awesome little utility; so awesome indeed, I'm going to mirror it on my website, to provide a second d/l site for it, for those who can't wait until the next day to download it (you hit your download limit fast on CA, with so much awesome stuff).

Share this post


Link to post
Share on other sites

I've had to do a few OS re-installs recently (don't ask) and this is always one of the first things I download and install. Essential!

 

 

Share this post


Link to post
Share on other sites

Thanx everyone for your appreciation!

 

UPDATE ALERT:

CatPack V1.12 has some additional features when extracting a Cat archive:

First it automatically creates an index file of the Cat file.

Second and it allows one to optionally pass a wildcard string, only files matching

this wildcard string will be extracted from the archive. For example "mig" will

only extract files that have "mig" in their name or extension.

 

...This should save you some time and disk space.

Share this post


Link to post
Share on other sites

Great gerwin!

Thanks!

This would be Modders tool of the year if you would add packing of Directories :good:

Share this post


Link to post
Share on other sites

I know there is now Third Wire's official cat extractor which will work better for most of u.

 

Still I updated this program a little for my own usage. See update notes above / in the readme.

Share this post


Link to post
Share on other sites

Thanx everyone for your appreciation!

 

UPDATE ALERT:

CatPack V1.12 has some additional features when extracting a Cat archive:

First it automatically creates an index file of the Cat file.

Second and it allows one to optionally pass a wildcard string, only files matching

this wildcard string will be extracted from the archive. For example "mig" will

only extract files that have "mig" in their name or extension.

 

...This should save you some time and disk space.

 

Hi, I dragged and dropped several (one at a time) SF2 Cat files on the extractor and got an "Error: File is not a proper cat-file." each time, what did I do wrong?blink.gif it worked worked fine for my older SF1 but gave me this error when I attempted to do the same with SF2. Has TK locked these files so that your software can't open these files anymore?

Share this post


Link to post
Share on other sites

Hi, I dragged and dropped several (one at a time) SF2 Cat files on the extractor and got an "Error: File is not a proper cat-file." each time, what did I do wrong?blink.gif it worked worked fine for my older SF1 but gave me this error when I attempted to do the same with SF2. Has TK locked these files so that your software can't open these files anymore?

Some SF2 cat files are compressed. CatPack cannot work with those.

Currently most SF2 cat files are uncompressed. CatPack can work with those.

 

The new official thirdwire extractor will work compressed cat files. still, some limitations apply.

Share this post


Link to post
Share on other sites

Some SF2 cat files are compressed. CatPack cannot work with those.

Currently most SF2 cat files are uncompressed. CatPack can work with those.

 

The new official thirdwire extractor will work compressed cat files. still, some limitations apply.

 

Hi gerwin I just dragged and dropped every cat file in sf2's object folder and none will extract... is it safe to assume it no longer works with sf2?

The official extractor works fine but it seems to deliberately miss the .lod model files? O.O

Share this post


Link to post
Share on other sites

The lod files are property of Thirdwire. TK does not want anyone to D/L them and use them for something else. There are 3rd party downloads for almost every thing in StrikeFighters. Most of the time you can use those Lod's if you get the modders permission FIRST.

Share this post


Link to post
Share on other sites

The lod files are property of Thirdwire. TK does not want anyone to D/L them and use them for something else.

 

Aaah OK good to know, makes sense.

Share this post


Link to post
Share on other sites

i need unzip a file .cat but with the applicatton SFP1E i can't... another aplication please? the message error is " application terminated ; error calling external object function readbytes

 

THANKS

Share this post


Link to post
Share on other sites

i NEED unzip a file .cat but with the applicatton SFP1E i can't... another aplication please? the message error is " application terminated ; error calling external object function readbytes"

 

THANKS

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

By using this site, you agree to our Terms of Use, Privacy Policy, and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..