Final Fantasy XIV DAT0

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
CriticalError
Posts: 204
Joined: Thu Aug 14, 2014 8:52 pm

Final Fantasy XIV DAT0

Post by CriticalError »

Image

Hello guys, ok I come this time for see if somebody can give a hand with this game, the files are stored into DAT0, so well maybe somebody can take a look into files? many thanks for all.

http://puu.sh/ch4YG/1f64091fa1.7z
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Final Fantasy XIV DAT0

Post by Ekey »

You forgot upload index files for each DAT.

Index structure

Code: Select all

BYTE ID -> SqPack

goto 0x40C

DWORD dwTableSize; // for get count files -> FILES = dwTableSize / 16

goto 0x800

for i = 0 < FILES
    DWORD dwNameHash;
    DWORD dwFolderHash;
    DWORD dwOffset;
    DWORD dwNull;
next i


Maximum size for each dat is > MAXSIZE = 0x77359400. If file offset < MAXSIZE = open DAT with extension .dat0 else .dat1 and ect.

Files inside DAT's are chunked. Full file size, block count, block size and ect inside DAT.

Here header info from offset -> IndexEntry.dwOffset

Code: Select all

    DWORD   dwHeaderSize;
    DWORD   dwUnknown1;
    DWORD   dwFileSize;
    DWORD   dwUnknown2;
    DWORD   dwUnknown3;
    DWORD   dwTotalChunks;


Entry for chunks

Code: Select all

   DWORD   dwOffset; //from cur_pos
    WORD   wChunkZSize;
    WORD   wChunkSize;


and chunk sub_header from EntryChunks.dwOffset

Code: Select all

    DWORD   dwUnknown1;
    DWORD   dwUnknown2;
    DWORD   dwZSize;
    DWORD   dwSize;


Compression is Inflate.

Unfortunately for me do not have enough patience to write a normal unpacker. Also you can use DAT Explorer -> http://www.ffevo.net/topic/2878-ffxiv-2 ... ing/page-6
CriticalError
Posts: 204
Joined: Thu Aug 14, 2014 8:52 pm

Re: Final Fantasy XIV DAT0

Post by CriticalError »

yes many thanks for all the info, really I use this DAT Explorer, but to bugged, anyway if you still interested in make unpacker PM for details and I pay for that, private unpacker I mean, ok many thanks for all this info Ekey, take care.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Final Fantasy XIV DAT0

Post by aluigi »

Finally we have a possible new thread for the Market section :D
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Final Fantasy XIV DAT0

Post by Ekey »

aluigi wrote:Finally we have a possible new thread for the Market section :D

Ah cmon Luigi! i can upload index and dat. > You make script for unpack files, i make library for detect paths and names = profit %50 / %50 Image
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Final Fantasy XIV DAT0

Post by aluigi »

To be honest I have seen that I already have a script for this file format (SqPack) and seems to work:
http://aluigi.org/papers/bms/others/fifa14.bms
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Final Fantasy XIV DAT0

Post by Ekey »

Hm
CriticalError
Posts: 204
Joined: Thu Aug 14, 2014 8:52 pm

Re: Final Fantasy XIV DAT0

Post by CriticalError »

well many thanks for this aluigi, I see all be worked fine, just now the problem is file names :( is not possible got file names? or maybe Ekey can update script, you made a library for got file names in the end, many thanks for support them, this is awesome, keep working guys, you doing a great job.
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Final Fantasy XIV DAT0

Post by Ekey »

Index don't contain names, only hashes.
CriticalError
Posts: 204
Joined: Thu Aug 14, 2014 8:52 pm

Re: Final Fantasy XIV DAT0

Post by CriticalError »

Ekey wrote:Index don't contain names, only hashes.
so you mean the only way to dump file names is dumping it playing game?
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Final Fantasy XIV DAT0

Post by Ekey »

For get folder names and file names - yes.
dantesai
Posts: 2
Joined: Fri Oct 24, 2014 11:03 am

Re: Final Fantasy XIV DAT0

Post by dantesai »

CriticalError wrote:
Ekey wrote:Index don't contain names, only hashes.
so you mean the only way to dump file names is dumping it playing game?

the game can dump in palying game? i used dxripper and ninjaripper try to dump it in playing,but failed
CriticalError
Posts: 204
Joined: Thu Aug 14, 2014 8:52 pm

Re: Final Fantasy XIV DAT0

Post by CriticalError »

dantesai wrote:
CriticalError wrote:
Ekey wrote:Index don't contain names, only hashes.
so you mean the only way to dump file names is dumping it playing game?

the game can dump in palying game? i used dxripper and ninjaripper try to dump it in playing,but failed
is not the way to dump it, what we mean is dump info from client with a tool for got hashes, no rip the data like 3d, textures.
dantesai
Posts: 2
Joined: Fri Oct 24, 2014 11:03 am

Re: Final Fantasy XIV DAT0

Post by dantesai »

[/quote]is not the way to dump it, what we mean is dump info from client with a tool for got hashes, no rip the data like 3d, textures.[/quote]
I C, i just curiousness other ripable
zexl
Posts: 13
Joined: Wed Jan 27, 2016 1:26 am

Re: Final Fantasy XIV DAT0

Post by zexl »

http://ffxivexplorer.fragmenterworks.com/
I hope this tool to help you :)
CriticalError
Posts: 204
Joined: Thu Aug 14, 2014 8:52 pm

Re: Final Fantasy XIV DAT0

Post by CriticalError »

zexl wrote:http://ffxivexplorer.fragmenterworks.com/
I hope this tool to help you :)
it only have to load from path of game but it won't load nothing? I need unpack something? because I try search for some tool and no lucky to unpack, FF have 2 folders in main one, client and data, in client we have other folders like characters,etc and in data there are files where stored .dat files, so what is necessary do to get models?