[PS4] The Witch And The Hundred Knight .dat Archive

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
akderebur
Posts: 68
Joined: Wed Nov 15, 2017 1:54 pm

[PS4] The Witch And The Hundred Knight .dat Archive

Post by akderebur »

Hello,

I have an archive from a ps4 game called The Witch And The Hundred Knight, with the extension ".dat". I need some assistance in unpacking it.

Unfortunately I can't post it here, since it is a single 5 GB file. PM me about this, if you are interested. I will post the start of the file and some Hex Editor screenshots to give a general idea.

FileStart.rar


Here is how the start of the file looks like :
Image

And at the end are the file names :
Image

I know this is probably not enough to understand the format. I can provide more stuff if requested. Maybe I can extract parts of the file, that might be useful. Like I said better PM me about this.

Thanks.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: [PS4] The Witch And The Hundred Knight .dat Archive

Post by aluigi »

Use ever http://aluigi.org/bms/filecutter.bms because that start.bin is not much useful.
akderebur
Posts: 68
Joined: Wed Nov 15, 2017 1:54 pm

Re: [PS4] The Witch And The Hundred Knight .dat Archive

Post by akderebur »

aluigi wrote:that start.bin is not much useful.

Yea, I realized that after I started working on the archive :D

Anyway I was able to write a quickbms script, by checking out some other scripts. Folders are fine and the exported phyre files look similar to other phyre games that I worked on. So I assume it is exporting correctly. There seems to be no compression.

Image

Here is the script :

Code: Select all

#The Witch And The Hundred Knight (PS4) .dat
idstring "FAFULLFS"
get FILES longlong
get NSOFF longlong #names
get NSIZE longlong
get TABLEOFF longlong
goto TABLEOFF
savepos TMP
for i = 0 < FILES
goto TMP
get UNK1 longlong
get NOFF longlong
get NULL longlong
get SIZE longlong
get FOFF longlong
get UNK3 longlong
savepos TMP
xmath NTMP "NSOFF + NOFF"
goto NTMP
get FNAME string
goto FOFF
log FNAME FOFF SIZE
next i
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: [PS4] The Witch And The Hundred Knight .dat Archive

Post by aluigi »

Well done.
Anyway I would appreciate if you can upload the filecutted sample just for my collection of scripts :)
akderebur
Posts: 68
Joined: Wed Nov 15, 2017 1:54 pm

Re: [PS4] The Witch And The Hundred Knight .dat Archive

Post by akderebur »

aluigi wrote:Anyway I would appreciate if you can upload the filecutted sample just for my collection of scripts :)

Of course. I run the script with the default values, I hope it is fine.