The rules have been updated, read them now: Rules!

Far Cry 3 .FAT decryption

The Original Forum. Game archives, full of resources. How to open them? Get help here.
User avatar
Posts: 21
Joined: Thu Aug 02, 2012 12:02 am
Has thanked: 2 times

Re: Far Cry 3 .FAT decryption

Post by abdullayev007 » Thu Dec 27, 2012 10:38 am

Rick wrote:
CMihai wrote:Anything new regarding Geometry Rick? :D
Nearly the same as FC2. I don't know enough about modelling to make import/export tools, someone will have to take my work and do something with it.
Will you create a Tool for compressing XML strings to BIN?

User avatar
Posts: 233
Joined: Sun Mar 20, 2011 7:35 pm
Has thanked: 28 times
Been thanked: 57 times

Re: Far Cry 3 models and junk

Post by TheDude » Fri Jan 04, 2013 8:50 pm

Edit: Nevermind, the models have already been dumped on the Interwebs. [roll]

Posts: 31
Joined: Wed Jun 20, 2007 11:30 pm
Has thanked: 1 time

Re: Far Cry 3 .FAT decryption

Post by Rocky5 » Thu Jan 10, 2013 6:15 pm

Any chance you could have a look at the Xbox xml format, some xmls are plain txt & others seem to be garbled, I thought they maybe zlib compressed but no :-(

We can use some of the PC files so not all is lost :-) the file in the attached files the PC version works on the Xbox, I removed the Memory limits from items.

Batch I put together to extract Common.fat just drag the folder containing the Comman.fat/dat onto the batch or double click it. (searches through folders for the files, keeps my work space clean)

Code: Select all

@echo off & Title Common.dat Unpacker

:: Set File & Folder names
:: Checks through the folders for the files.
for /f "delims=" %%A in ('dir /b /S "common.fat"') do Set "Input=%%A"
if "%Input%"=="%Input:~0,-11%\common.fat" Set "Filename=common"
Set "Output=%homedrive%\Unpacked"

:: Echo output information
Echo   Unpacking = %Filename%
Echo   Temp Location = %Output%
Echo   Final Directory = "Common Unpacked"
Ping -n 3 >Nul

:: Do the work :-D

for /f "delims=" %%B in ('dir /b /S "Gibbed.Dunia2.Unpack.exe"') do "%%B" -v -o "%Input%" "%Output%"

Move "%Output%" "%CD%\"
Ren "Unpacked" "Common Unpacked"

Echo  Done...
Ping -n 3 >Nul
Explorer "%CD%\Common Unpacked"
You do not have the required permissions to view the files attached to this post.

Posts: 124
Joined: Wed Aug 04, 2010 3:58 pm
Has thanked: 2 times
Been thanked: 3 times

Re: Far Cry 3 .FAT decryption

Post by qabRieL » Tue Feb 26, 2013 9:40 pm

Is it possible to both view and edit the text files on PC yet?

User avatar
Posts: 199
Joined: Wed Apr 07, 2010 7:38 pm
Has thanked: 35 times
Been thanked: 5 times

Re: Far Cry 3 .FAT decryption

Post by lostprophet » Thu Feb 28, 2013 12:28 am

qabRieL wrote:Is it possible to both view and edit the text files on PC yet?
The text file was always editable (18.000 lines of pure joy in 1 .xml file), the only problem is, that the game doesn't use it, since it (probably) has to be repacked to a .bin file.
Hungarian translator and member of | Previous translations:

Posts: 129
Joined: Fri Feb 18, 2011 10:23 am
Has thanked: 6 times
Been thanked: 47 times

Re: Far Cry 3 .FAT decryption

Post by rengareng » Sat Mar 02, 2013 8:28 pm

Here the 010Editor template that parses oasisstrings_compressed.bin file. Run this template on the oasisstrings_compressed.bin file.
LZO compression is used in the cmpData places in the file.(lzo1x)
It is just for to show structure of file.

Code: Select all

int stringTableCount;
struct stringTable{    
    int unknown;
    int sectorCount;
    struct section{
        int sectorHash;//crc32 of sector name
        int stringCount;
            int id;    //line id
            int sec;   //same as sectorHash
            int _enum; //crc32 hash of enum attribute in string
            int pack; //crc32 Hash of 'Main'    
        int cmpPartCount; //Number of lzo compressed parts
            int unknown;
            int cs;//compressed size of data
            int ds; //decompressed size of data
            ubyte cmpData[cs]; //These bytes are lzo compressed (lzo1x)
Here the compressed and decompressed ones for first sector:


Here is the tool from General_Problem (ubisoft far cry 3 forums)

General_Problem wrote: JGR.Dunia2.ConvertXML version 1.0

I have completed my first version of my tool to de-compress and re-compress the oasisstrings_compressed.bin file. This tool also has the ability to use oasisstrings.xml as a lookup dictionary for de-compressing the section and enum names into human-readable text rather than hexadecimal when that file is in the same folder as the oassistrings_compressed.bin file you are decompressing.

I have also trimmed down the source code to only those sections of the Dunia2 source which were necessary to support the tool as a standalone application.

Get the executable here

Get the source code here

The tool was written based on Rick's original Gibbed.Dunia2.ConvertXML application, but I added options in order to handle this special file as well as a new FileFormats class, OasisStringsCompressedFile, to handle the conversion to and from XML (as well as the de-/compression).

Here is a brief overview of the steps to follow in order to modify game text and put your changes into the game utilizing this tool:

1) Put the files for this tool in a new tools folder (or you can put them in your existing Dunia2 folder, but it will overwrite
some files, so MAKE A BACKUP if you do this).
2) Use the JGR.Dunia2.ConvertToXML.exe tool to convert your oasisstrings_compressed.bin to xml. (Note that the output will have
the text "_converted" appended the same way the original Dunia2 tools do).
3) Edit your desired text in the xml file output from step 2
4) Use JGR.Dunia2.ConvertToXML.exe again to convert your xml file back to oasisstrings_compressed.bin. (Note that the output will
now also have "_compressed_converted" appended to the name).
5) Rename your final output file back to "oasisstrings_compressed.bin"
6) Don't forget to put the new "oasisstrings_compressed.bin" file into your patch under the .\languages\*your local language*\
folder, then re-pack your patch to try it in the game.
7) Remember that unless you translate your modified text and perform these tasks for all supported language files, your mod will
likely only function properly when executed from versions that support your own language. You could potentially replace all
of the oasisstrings_compressed.bin files with your newly modified file in your patch to force all users to see your language.

Please read the README.txt file in the downloads for more information.


- Rick for creating the original tools that were completely essential
- Special thanks to "tom.solo", "sfaunl", and "celikeins" for your assistance, input, and dedictaion to the virtual islands.

Posts: 2
Joined: Sat Mar 16, 2013 1:25 pm

Re: Far Cry 3 .FAT decryption

Post by sergeron » Wed May 01, 2013 7:53 pm

Dunia2 don't work on Far Cry 3: Blood Dragon.

Posts: 39
Joined: Tue Aug 14, 2012 2:46 am

Re: Far Cry 3 .FAT decryption

Post by soulslayerzx » Fri Jul 12, 2013 7:32 pm

So far, I believe this dunia thing can extract textures, sounds,

I was wondering if there was a way to extract the models without ripping them unrigged. I hate rigging.

Posts: 7
Joined: Sat Dec 13, 2014 9:51 am
Been thanked: 1 time

Re: Far Cry 3 .FAT decryption

Post by wana7262 » Wed Apr 15, 2015 11:06 am

How to extract .dat file?

Post Reply