Gears of War 4 .pak

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Panzerdroid
Posts: 66
Joined: Sun Aug 30, 2015 12:51 pm

Gears of War 4 .pak

Post by Panzerdroid »

http://rgho.st/7QXP5RHRq

This looks like a modified UE4 pak-file, but with LZ4 compression. Luigi's script doesn't work, unfortunately. Luckily, the TOC seems pretty easy - it's in the end of the .pak, after each name there is a pointer inside the pak. Each chunk has 21 bytes header with compressed/decompressed size. In TOC there is a list of chunks, they also look like starting/ending hex offset or size.

The largest .pak is 35 GB, btw.

My BMS skills are too mediocre to write a parser/extractor, so I hope for help of this community.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Gears of War 4 .pak

Post by aluigi »

Modified archive with version 4, had to support it by checking the name of the archive.
Script 0.4.15:
http://aluigi.org/bms/unreal_tournament_4.bms
Panzerdroid
Posts: 66
Joined: Sun Aug 30, 2015 12:51 pm

Re: Gears of War 4 .pak

Post by Panzerdroid »

Thank you! Strangely, it doesn't work on some files. Here is the smallest of them.

http://rgho.st/845zRDzWk
http://rgho.st/8kZvwDtSs
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Gears of War 4 .pak

Post by aluigi »

Script updated, now I use "-UWP" instead of "GearGame" for recognizing this format.
Panzerdroid
Posts: 66
Joined: Sun Aug 30, 2015 12:51 pm

Re: Gears of War 4 .pak

Post by Panzerdroid »

Thanks again, working great now!