Search found 100 matches

by Sir Kane
Sat Mar 04, 2017 5:39 pm
Forum: Game Archive
Topic: Deus EX: Mankind Divided .archive
Replies: 148
Views: 48963

Re: Deus EX: Mankind Divided .archive

Run it from the command shell (cmd.exe). Running it without any parameters will show the usage, but it should be DXMDExtract.exe <dir with .archive & .pc_headerlib files> <output dir> or something like that.
by Sir Kane
Wed Mar 01, 2017 9:54 am
Forum: Game Archive
Topic: Deus EX: Mankind Divided .archive
Replies: 148
Views: 48963

Re: Deus EX: Mankind Divided .archive

If you mean the asset names in NameMap.txt, those come from the pc_headerlib files.

I also figured most of it out a while ago, but never got around to make a fully functional tool.
by Sir Kane
Mon Feb 27, 2017 3:52 pm
Forum: Game Archive
Topic: Deus EX: Mankind Divided .archive
Replies: 148
Views: 48963

Re: Deus EX: Mankind Divided .archive

http://sktest.aruarose.com/DXMDExtract_v002.7z

Due to the nature of the asset names, it produces filenames like "00BB10BBA81D424A.bin".
The actual names and their matching hashes go into NameMap.txt.
by Sir Kane
Tue Dec 13, 2016 2:27 am
Forum: Game Archive
Topic: watch dogs 2 .dat .fat archive?
Replies: 286
Views: 90675

Re: watch dogs 2 .dat .fat archive?

Yes, files can be either compressed or uncompressed, with the latter mostly being used for really small files.
by Sir Kane
Mon Dec 12, 2016 9:43 pm
Forum: Game Archive
Topic: watch dogs 2 .dat .fat archive?
Replies: 286
Views: 90675

Re: watch dogs 2 .dat .fat archive?

Added a tool to repack (doesn't compress) and merged my filelist with Ekey's.

http://sktest.aruarose.com/WD2FatTools_v002.7z
by Sir Kane
Mon Dec 12, 2016 8:16 pm
Forum: Game Archive
Topic: watch dogs 2 .dat .fat archive?
Replies: 286
Views: 90675

Re: watch dogs 2 .dat .fat archive?

The uncompressed chunk at the end of the compressed data is actually required, since the compressed data is loaded into the end of the output buffer and decompression keeps going while src pointer < dest pointer.
by Sir Kane
Fri Dec 09, 2016 8:32 am
Forum: Game Archive
Topic: watch dogs 2 .dat .fat archive?
Replies: 286
Views: 90675

Re: watch dogs 2 .dat .fat archive?

There's undoubtedly support for archives with LZMA compression, it just may not be used in the PC version. I haven't looked too hard for whatever enables it.
by Sir Kane
Fri Dec 09, 2016 5:05 am
Forum: Game Archive
Topic: watch dogs 2 .dat .fat archive?
Replies: 286
Views: 90675

Re: watch dogs 2 .dat .fat archive?

There's a function pointer the game calls with the string to hash if it's non-null, so I just set the function pointer to a function that dumps the passed in string into a file.
by Sir Kane
Thu Dec 08, 2016 9:04 pm
Forum: Game Archive
Topic: watch dogs 2 .dat .fat archive?
Replies: 286
Views: 90675

Re: watch dogs 2 .dat .fat archive?

Some of the data in the .dat files is compressed with the modified LZMA, and the rest is compressed with the modified LZ4.
by Sir Kane
Thu Dec 08, 2016 8:51 pm
Forum: Game Archive
Topic: watch dogs 2 .dat .fat archive?
Replies: 286
Views: 90675

Re: watch dogs 2 .dat .fat archive?

It's certainly being used.
by Sir Kane
Thu Dec 08, 2016 7:47 pm
Forum: Game Archive
Topic: watch dogs 2 .dat .fat archive?
Replies: 286
Views: 90675

Re: watch dogs 2 .dat .fat archive?

I already reverse engineered the LZ4 one, just need to get LZMA working.
by Sir Kane
Thu Dec 08, 2016 12:10 am
Forum: Game Archive
Topic: watch dogs 2 .dat .fat archive?
Replies: 286
Views: 90675

Re: watch dogs 2 .dat .fat archive?

0xE6C is good constant to look for to find the LZMA code (which turns out to be slightly modified, too).
by Sir Kane
Wed Dec 07, 2016 12:35 am
Forum: Game Archive
Topic: watch dogs 2 .dat .fat archive?
Replies: 286
Views: 90675

Re: watch dogs 2 .dat .fat archive?

Two types. #pragma pack(push, 4) struct SFatFileEntry{ /*uint32_t field_0; uint32_t field_4; uint32_t field_8; uint32_t field_c; uint32_t field_10;*/ uint64_t Hash; uint64_t CompressedSize : 30; uint64_t Offset : 34; uint32_t CompressionMethod : 2; uint32_t UncompressedSize : 30; }; #pragma pack(pop...
by Sir Kane
Tue Dec 06, 2016 11:44 pm
Forum: Game Archive
Topic: watch dogs 2 .dat .fat archive?
Replies: 286
Views: 90675

Re: watch dogs 2 .dat .fat archive?

Yeah, it uses LZMA and modified version of LZ4.