Page 1 of 2

Far Cry 6 .fat and .dat files

Posted: Tue Oct 05, 2021 3:30 am
by mlleemiles
Preload has started on PC I managed to get some files beforehand.

FAT version has been changed from 10 to 11, with it fat stuct might have changed as well (Previous unpacker extracts null bytes for compressed files)
fat.png
common.dat: https://drive.google.com/file/d/15lZVeQ ... eUWHu/view
common.fat: https://drive.google.com/file/d/1d8_aTO ... EUShK/view

Re: Far Cry 6 .fat and .dat files

Posted: Tue Oct 05, 2021 8:38 am
by mlleemiles
Updated extractor, fixed issue with large archives:
https://www.nexusmods.com/farcry5/mods/97


------------------------------------------------------------------------------------------
original post:
extractor by ArmanIII, only tested with common archive
https://cdn.discordapp.com/attachments/ ... nv_dev.zip

Re: Far Cry 6 .fat and .dat files

Posted: Wed Oct 06, 2021 6:09 pm
by Lord Vaako
I tested it with some other files, it works so far but... do you have filenames list? ;-)

Re: Far Cry 6 .fat and .dat files

Posted: Thu Oct 07, 2021 12:17 pm
by Sharppy
.XBG models seem to be a newer format aswell :(

Re: Far Cry 6 .fat and .dat files

Posted: Thu Oct 07, 2021 3:02 pm
by OrangeC
Cool it works. now we need filenames.

Re: Far Cry 6 .fat and .dat files

Posted: Sat Oct 09, 2021 10:37 am
by GRiNDERKILLER
Are filenames lowercase only?

Re: Far Cry 6 .fat and .dat files

Posted: Sat Oct 09, 2021 1:42 pm
by Ekey
My hook :D

PS: Thanks to OrangeC for providing the account with game :)

Don't forget to unlock DLL's if you are using Win10
Log file will be outside the Bin or Bin_Plus directory

Re: Far Cry 6 .fat and .dat files

Posted: Sat Oct 09, 2021 6:46 pm
by lazenes
Ekey wrote: Sat Oct 09, 2021 1:42 pm My hook :D

PS: Thanks to OrangeC for providing the account with game :)
PS2: Don't forget to unlock DLL's if you are using Win10
Don't Work :(

Re: Far Cry 6 .fat and .dat files

Posted: Sat Oct 09, 2021 7:20 pm
by OrangeC
It didnt work for me for some reason either but Ekey managed to get it to work on his end. I tried unlocking the DLL ut that didnt work either.

Anyway heres the latest log.

https://drive.google.com/file/d/1CBIZGk ... sp=sharing

EDIT: Okay i got it working. thx to Ekey, the FC6 log posts in the main game directory and it overwrites each time you run the game. so rename the log to get new versions.

heres now the latest one.
https://drive.google.com/file/d/1_qy3Nh ... sp=sharing

Re: Far Cry 6 .fat and .dat files

Posted: Sat Oct 09, 2021 8:07 pm
by Ekey
Updated to r2 :). Now the log will have the date and time format in the file name to avoid being overwritten
lazenes wrote: Sat Oct 09, 2021 6:46 pm Don't Work :(
Ekey wrote: Sat Oct 09, 2021 1:42 pm Log file will be outside the Bin or Bin_Plus directory

Re: Far Cry 6 .fat and .dat files

Posted: Sat Oct 09, 2021 9:46 pm
by rezamms
Far Cry 6 File names (12%)
by gibbed

https://github.com/gibbed/FarCry6-File-Lists

Re: Far Cry 6 .fat and .dat files

Posted: Mon Oct 11, 2021 1:21 pm
by dimis9138
Did some research in some .xbg files, DJ Normality posted them here: https://drive.google.com/file/d/1IVS3Ef ... rwXmy/view

Verts appear to be split in some or most files if not all, example file: CABBAB432E7A1932, verts appear to be short signed.

In said file: 0x1130 short sign, 10209, padding 2
In same file: 0x044180 - 5478 - short sign, 2 padding
Probably nothing new for more experienced people like bigchillghost or shakotay or daemon or akderebur so have to wait for someone more experienced like them to figure it out. Faces I could not figure out unfortunately, pretty sure they're byte but couldn't get any of the files to work, verts did however work with short sign but like I said they appear to be split throughout the file.

EDIT: After looking at the file once more I realized at the top there's LOD0 - LOD1 - LOD2 listed, so the split verts etc are most likely just different LODs packed into the same file for performance.

EDIT 2: (thanks DJ Normality)

If you look at file A08F7270CE7E2467 - here you go, faces appear to be short, verts also are XZY format, also this is probably LOD1-2, couldn't get faces for LOD0

Image

If you also change the vert offset to 0x8b00 it's the exact same verts count but faces don't match, possibly because different LOD?, unsure what this means.

Now when it comes to bones, weights etc I can't help since I don't have that knowledge or when it comes to automating etc. Materials appear to be at the very top/start of the file too.

EDIT 3: Also found multiple split parts, if you open the biggest file in the link above it's a helicopter and I was able to find that the interior and exterior were separate so keep this in mind also.

Re: Far Cry 6 .fat and .dat files

Posted: Wed Nov 03, 2021 10:30 am
by Lord Vaako
I have this, somewhat unusual question and if I posted it in the wrong thread then I apologize. I am looking for the location in the game world of several documents, the so-called Hidden Histories. Do you have any hints where (which unpacked files) I should look for their "coordinates" in the game world? If there are some coordinates that I can compare with the coordinates of others that I know where to find, then maybe I will figure the approximate location of the ones I'm looking for :-)

Re: Far Cry 6 .fat and .dat files

Posted: Sat Nov 06, 2021 10:20 pm
by John76
Maybe someone with more experience knows struct.....Thank's!!!


SDOL chunk 20 bytes (blue range)
dword lod (yellow range)
dword unknown1 (null)
float somefloat (green range)
dword unknown2 (red range)
dword unknown3 (null)
dword vertsize (grey range)
dword buffsize (light blue range) vertsize + normals + uv?
dword buffsize1
????
Untitled1-min.jpg

Re: Far Cry 6 .fat and .dat files

Posted: Sat Nov 06, 2021 10:22 pm
by John76
Here is the sample in zip file