Page 1 of 2

CoD Advanced Warfare .pak and .ff

Posted: Tue Nov 04, 2014 10:49 am
by spider91
Any ideas about this files? .ff seems to contain texts and sounds (FLAC). Magic number is S1ffu100 on both types, but .pak looks like compressed file. What about script?

https://mega.co.nz/#!9gwR0ZLC!8TrF9981y ... -R34wgaZ8k

Re: CoD Advanced Warfare .pak and .ff

Posted: Wed Nov 05, 2014 5:17 am
by cra0
http://dev.cra0kalo.com/?p=195
works for sound paks since its just flacs mushed


as for imagepaks they are encrypted

Re: CoD Advanced Warfare .pak and .ff

Posted: Thu Nov 06, 2014 8:43 pm
by m0xf
Imagefiles not encrypted, it compressed with LZ77-like algorithm instead of zlib. Decompression code: http://pastebin.com/GhfXDhE7 .

Re: CoD Advanced Warfare .pak and .ff

Posted: Thu Nov 06, 2014 10:46 pm
by spider91
m0xf wrote:Imagefiles not encrypted, it compressed with LZ77-like algorithm instead of zlib. Decompression code: http://pastebin.com/GhfXDhE7 .
Can someone implement that code in script or tool?

Re: CoD Advanced Warfare .pak and .ff

Posted: Fri Nov 07, 2014 3:56 am
by cra0
m0xf wrote:Imagefiles not encrypted, it compressed with LZ77-like algorithm instead of zlib. Decompression code: http://pastebin.com/GhfXDhE7 .
ah yeah you're right sub_14014A350

there are about 4 types of compression methods 1 is zlib
Image

Yep sub_1404E9010 is zlib

Image

If compressiontype is 1 call zlib function

Re: CoD Advanced Warfare .pak and .ff

Posted: Fri Nov 07, 2014 3:02 pm
by Koma
cra0 wrote:http://dev.cra0kalo.com/?p=195
works for sound paks since its just flacs mushed

as for imagepaks they are encrypted
That is a fine tool indeed. But there is one problem with it.

When going only through archives "soundfile1.pak", "soundfile48.pak" and "soundfile57.pak", your extractor reaches a specific loop point which leads you back to the first file of the archive, and it just stays there until it's shut down. The rest of the archives remains completely unaffected. It is a kinda annoying issue which doesn't let your extractor unpack more audio files after reaching that point, even if it can be circumvented by just moving the affected archives somewhere else.

soundfile1.pak loop point is at "soundfile1_00227800.flac"
soundfile48.pak loop point is at "soundfile48_09986800.flac"
soundfile57.pak loop point is at "soundfile57_09449000.flac"

Is it me doing something wrong, or aren't the archives right? I lack the needed knowledge to look upon this issue and that's why I sincerely request that you'll look it up.


EDIT: Okay, you can disregard that issue now! I just used the 32-bit version of it and the bug doesn't seem to occur anymore. At least for now.

Re: CoD Advanced Warfare .pak and .ff

Posted: Fri Nov 07, 2014 4:09 pm
by cra0
Koma wrote:
cra0 wrote:http://dev.cra0kalo.com/?p=195
works for sound paks since its just flacs mushed

as for imagepaks they are encrypted
That is a fine tool indeed. But there is one problem with it.

When going only through archives "soundfile1.pak", "soundfile48.pak" and "soundfile57.pak", your extractor reaches a specific loop point which leads you back to the first file of the archive, and it just stays there until it's shut down. The rest of the archives remains completely unaffected. It is a kinda annoying issue which doesn't let your extractor unpack more audio files after reaching that point, even if it can be circumvented by just moving the affected archives somewhere else.

soundfile1.pak loop point is at "soundfile1_00227800.flac"
soundfile48.pak loop point is at "soundfile48_09986800.flac"
soundfile57.pak loop point is at "soundfile57_09449000.flac"

Is it me doing something wrong, or aren't the archives right? I lack the needed knowledge to look upon this issue and that's why I sincerely request that you'll look it up.


EDIT: Okay, you can disregard that issue now! I just used the 32-bit version of it and the bug doesn't seem to occur anymore. At least for now.
Ill have a look

-edit-

try
http://rel.cra0kalo.com/depot/CODAW_Fla ... 64_3.0.zip

should be much faster + fixed the issue was to do with my pattern finder function was returning 0 which i never checked

Re: CoD Advanced Warfare .pak and .ff

Posted: Fri Nov 07, 2014 4:34 pm
by Koma
It's all unpacked now. Thanks, cra0.

Have a beer.

Image

Re: CoD Advanced Warfare .pak and .ff

Posted: Sat Nov 08, 2014 10:42 pm
by Sir Kane
It's LZ4.

Re: CoD Advanced Warfare .pak and .ff

Posted: Sun Nov 09, 2014 6:09 pm
by Psp1000
great tool :)
What about the files of the xbox 360 version? :)

for example
soundfile1.pak - 26,3 MB

Re: CoD Advanced Warfare .pak and .ff

Posted: Mon Nov 10, 2014 1:39 pm
by michalss
can you pleae share stucture ? Did you find any text by any chance ?? Thx

Re: CoD Advanced Warfare .pak and .ff

Posted: Tue Nov 11, 2014 6:21 pm
by Psp1000
hey, i found: RIFFX0..WAVEfmt. i found out this is an audio format :)

example file:
https://mega.co.nz/#!sV0CQQoa!akjd2SPHK ... YzTkIEc9Ag

does it help? i'm new at this topic, thx

Re: CoD Advanced Warfare .pak and .ff

Posted: Fri Nov 14, 2014 12:52 pm
by cloudslsw
cra0 wrote: try
http://rel.cra0kalo.com/depot/CODAW_Fla ... 64_3.0.zip

should be much faster + fixed the issue was to do with my pattern finder function was returning 0 which i never checked

hi ,cra0,i try version 3.0 ,but console stuck at decompressing soundfile13.pak/soundfile18.pak/soundfile20.pak,rest of files im not test.but with version 2.0,i could decompress with it.it's werid,my os are win7 64bit,any ideas?

Re: CoD Advanced Warfare .pak and .ff

Posted: Thu Apr 02, 2015 8:28 pm
by Abohack
hey guys

first of all I want to thank u for your great tool. I want to extract some imagefile.pak files but I cant find a tool for that, Could please anyone help me?

thanks

Re: CoD Advanced Warfare .pak and .ff

Posted: Tue Jul 26, 2022 1:04 am
by cra0
Link was dead I didn't realize:
https://cra0.net/public/bin-published/C ... 64_3.0.zip
Here is the new one.

I'll try find the source and open source this on github. Better late then never right :)