XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Fri Nov 24, 2017 2:19 pm

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 208 posts ]  Go to page 1, 2, 3, 4, 5 ... 14  Next
Author Message
 Post subject: Watch_Dogs fat and dat archives
PostPosted: Fri May 23, 2014 1:00 pm 
Offline
veteran

Joined: Mon Apr 09, 2012 8:40 am
Posts: 116
Has thanked: 50 times
Have thanks: 5 times

This game's file structure is similar to Far Cry series with fat and dat archives, but a bit different. Here is an example, can anyone take a look into this. Hope someone can make a unpacker/packer for it, like Rick's tools. Thanks in advanced.

Image

Code:
https://www.firedrive.com/file/BA315D54DDCE56FC


You can make the ads go away by registering



Top
 Profile  
 
 Post subject: Re: Watch_Dogs fat and dat archives
PostPosted: Fri May 23, 2014 1:16 pm 
Offline
M-M-M-Monster veteran
M-M-M-Monster veteran

Joined: Wed Mar 31, 2010 6:54 am
Posts: 1593
Has thanked: 59 times
Have thanks: 749 times
Code:
struct FATHeader
{
   DWORD   dwID; // 3TAF
   DWORD   dwVersion; // Always = 8
   DWORD   dwUnknown;
   DWORD   dwTotalFiles;
};


Code:
struct FATEntry
{
   DWORD   dwHash;
   DWORD   dwSize;
   DWORD   dwZSize;
   DWORD   dwOffset;
};


PC > XMem
PS3 > Deflate
Xbox > XMem

PS: Edited info > thx Haoose


Last edited by Ekey on Tue May 27, 2014 8:35 pm, edited 13 times in total.

Top
 Profile  
 
 Post subject: Re: Watch_Dogs fat and dat archives
PostPosted: Fri May 23, 2014 4:20 pm 
Offline
ultra-veteran
ultra-veteran
User avatar

Joined: Fri Apr 27, 2012 9:37 am
Posts: 430
Has thanked: 29 times
Have thanks: 178 times
can you upload that common dat file?

_________________
Devblog


Top
 Profile  
 
 Post subject: Re: Watch_Dogs fat and dat archives
PostPosted: Fri May 23, 2014 4:29 pm 
Offline
beginner

Joined: Wed Jul 04, 2012 5:19 am
Posts: 27
Has thanked: 4 times
Have thanks: 0 time
cra0 wrote:
can you upload that common dat file?

this common dat and fat for ps3 version

https://www.firedrive.com/file/7769DA947BE2EA60


Top
 Profile  
 
 Post subject: Re: Watch_Dogs fat and dat archives
PostPosted: Fri May 23, 2014 5:12 pm 
Offline
veteran

Joined: Mon Apr 09, 2012 8:40 am
Posts: 116
Has thanked: 50 times
Have thanks: 5 times
this is from pc version
Code:
https://www.firedrive.com/file/B7B191D4E38EA190


Top
 Profile  
 
 Post subject: Re: Watch_Dogs fat and dat archives
PostPosted: Sun May 25, 2014 12:50 pm 
Offline
ultra-veteran
ultra-veteran
User avatar

Joined: Fri Apr 27, 2012 9:37 am
Posts: 430
Has thanked: 29 times
Have thanks: 178 times
namquang93 wrote:
this is from pc version
Code:
https://www.firedrive.com/file/B7B191D4E38EA190


yep I got the pc version will take a look soon

_________________
Devblog


Top
 Profile  
 
 Post subject: Re: Watch_Dogs fat and dat archives
PostPosted: Sun May 25, 2014 4:53 pm 
Offline
ultra-veteran
ultra-veteran
User avatar

Joined: Fri Apr 27, 2012 9:37 am
Posts: 430
Has thanked: 29 times
Have thanks: 178 times
It's just a modifed Xmem i think... well for pc at least I can see the magic header, here is a 010 editor script anyway for the fat files using what ekey found

Code:
//--------------------------------------
//--- 010 Editor v5.0 Binary Template
//
// File: common.fat
// Author: EKey/Cra0kalo
// Revision: 1
// Purpose: WatchDogs
// ByteFormat - Little Endian
//--------------------------------------


typedef  float vec3[3];
typedef  float quat4[4];
typedef  string asciiz;

struct
{
   DWORD   dwID; // 3TAF
   DWORD   dwVersion; // Always = 8
   DWORD   dwUnknown;
   DWORD   dwTotalFiles;
}FATHeader;

//DWORD UnknownA;

local int i;
for(i = 0; i < FATHeader.dwTotalFiles; i++ )
{
struct
{
   DWORD   dwHash;
   DWORD   dwSize;
   DWORD   dwZSize;
   DWORD   dwOffset;
}FATEntry;


}



As for Xmem we can see the usual 0x0F 0xF5 0x12 0xEE magic identifier in the dat

Image

Another script of a standard header it's obviously different but yeah I'm about to head to sleep will take a look tomorrow
Code:
//--------------------------------------
//--- XCOMPRESS
//--- Watch Dogs 2014
//--------------------------------------
long Identifier; // # XCOMPRESS_FILE_IDENTIFIER_LZXNATIVE
long ContextFlags;
long Flags;
long WindowSize;
long CompressionPartitionSize;
long UncompressedSizeHigh;
long UncompressedSizeLow;
long CompressedSizeHigh;
long CompressedSizeLow;
long UncompressedBlockSize;
long CompressedBlockSizeMax;


xcompress.h

_________________
Devblog


Top
 Profile  
 
 Post subject: Re: Watch_Dogs fat and dat archives
PostPosted: Sun May 25, 2014 5:38 pm 
Offline
M-M-M-Monster veteran
M-M-M-Monster veteran

Joined: Wed Mar 31, 2010 6:54 am
Posts: 1593
Has thanked: 59 times
Have thanks: 749 times
PS3 compressed data header

Code:
struct DataHeader
{
   SHORT   wChunksCount;
   SHORT   wUnknown; //xFF\x0F

  for(i = 0; i < DataHeader.wChunksCount; i++ )
  {
    Read(wChunksSizes, 2);
  }
};


Top
 Profile  
 
 Post subject: Re: Watch_Dogs fat and dat archives
PostPosted: Mon May 26, 2014 7:14 pm 
Offline
beginner

Joined: Wed Mar 23, 2011 7:22 am
Posts: 21
Has thanked: 16 times
Have thanks: 7 times
Thanks to you guys I was able to extract the XCompress using quickbms , but there is a little modification to the file struct.

All big endian

Code:
//--------------------------------------
//--- XCOMPRESS
//--- Watch Dogs 2014
//--------------------------------------
long Identifier; // # XCOMPRESS_FILE_IDENTIFIER_LZXNATIVE
long ContextFlags;
short Version;
short Reserved;
long Flags;
long WindowSize;
long CompressionPartitionSize;
long UncompressedSizeHigh;
long UncompressedSizeLow;
long CompressedSizeHigh;
long CompressedSizeLow;
long UncompressedBlockSize;
long CompressedBlockSizeMax;
long CompressedBlockSize;


Image

I'll try to post the script , btw :I'm not good in writing scripts :D


Top
 Profile  
 
 Post subject: Re: Watch_Dogs fat and dat archives
PostPosted: Mon May 26, 2014 8:18 pm 
Offline
advanced

Joined: Fri Mar 30, 2012 6:15 pm
Posts: 73
Has thanked: 21 times
Have thanks: 2 times
How did you uncompress it? Does the game still work with uncompressed .dat files?
Might help with some performance issue many users have with the game.


Top
 Profile  
 
 Post subject: Re: Watch_Dogs fat and dat archives
PostPosted: Mon May 26, 2014 8:45 pm 
Offline
mega-veteran
mega-veteran
User avatar

Joined: Tue Mar 01, 2011 9:34 pm
Posts: 276
Has thanked: 66 times
Have thanks: 179 times
Gruselgurke wrote:
Does the game still work with uncompressed .dat files?

No. Need modified EXE-file for it

_________________
-= GP-team =-
Image


Top
 Profile  
 
 Post subject: Re: Watch_Dogs fat and dat archives
PostPosted: Tue May 27, 2014 7:15 am 
Offline
Moderator

Joined: Tue Aug 09, 2005 10:10 pm
Posts: 387
Location: California
Has thanked: 0 time
Have thanks: 81 times
Haoose wrote:
Gruselgurke wrote:
Does the game still work with uncompressed .dat files?

No. Need modified EXE-file for it
Not sure why that would be the case, the archive format supports uncompressed data just fine.

_________________
http://blog.gib.me/

Don't ask me about localization tools; if you don't have the resources to develop them yourself you don't need them.


Top
 Profile  
 
 Post subject: Re: Watch_Dogs fat and dat archives
PostPosted: Tue May 27, 2014 7:51 am 
Offline
veteran

Joined: Mon Apr 09, 2012 8:40 am
Posts: 116
Has thanked: 50 times
Have thanks: 5 times
Rick wrote:
Haoose wrote:
Gruselgurke wrote:
Does the game still work with uncompressed .dat files?

No. Need modified EXE-file for it
Not sure why that would be the case, the archive format supports uncompressed data just fine.


hello, will you work on this game ? I really love the way you did with Far Cry 3.


Top
 Profile  
 
 Post subject: Re: Watch_Dogs fat and dat archives
PostPosted: Tue May 27, 2014 8:42 am 
Offline
Moderator

Joined: Tue Aug 09, 2005 10:10 pm
Posts: 387
Location: California
Has thanked: 0 time
Have thanks: 81 times
When I have the time.

_________________
http://blog.gib.me/

Don't ask me about localization tools; if you don't have the resources to develop them yourself you don't need them.


Top
 Profile  
 
 Post subject: Re: Watch_Dogs fat and dat archives
PostPosted: Tue May 27, 2014 12:57 pm 
Offline
beginner

Joined: Thu Dec 25, 2008 3:17 pm
Posts: 35
Has thanked: 12 times
Have thanks: 0 time
Cool to see some progress! For me im wondering and am curious about the scripts, and if we are able to change them up depending on the code



Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 208 posts ]  Go to page 1, 2, 3, 4, 5 ... 14  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group