Okami .dat files

Read or post about compression. And decompression. Or ask questions how to decompress your files.
Post Reply
bug
ultra-n00b
Posts: 4
Joined: Sat Feb 10, 2018 2:51 am
Has thanked: 1 time

Okami .dat files

Post by bug » Thu Feb 15, 2018 12:35 am

Hey folks, real new at this sort of stuff so might come off as a bit of a dunce here.

I'm trying to find all the possible .dat files in the Okami HD PC data that I can convert into .dds files, mainly things like the maps and other 2D images. Problem is I honestly have no clue how I'm supposed to do this.

So far I've decrypted everything stored in \Okami\data_pc with quickbms and been trying to view files with Noesis, which like I said before only lets me view certain files.

Thanks and sorry if this is in the wrong section

User avatar
Bigchillghost
ultra-veteran
ultra-veteran
Posts: 426
Joined: Tue Jul 05, 2016 9:37 am
Has thanked: 21 times
Been thanked: 269 times

Re: Okami .dat files

Post by Bigchillghost » Thu Feb 15, 2018 5:44 pm

How are others supposed to help if you don't upload any samples? (:
May you find peace in this puzzle-solving game. Say it with action: click the Image when you get helped.:)

bug
ultra-n00b
Posts: 4
Joined: Sat Feb 10, 2018 2:51 am
Has thanked: 1 time

Re: Okami .dat files

Post by bug » Thu Feb 15, 2018 10:58 pm

Bigchillghost wrote:How are others supposed to help if you don't upload any samples? (:
oh sorry!

https://mega.nz/#!cu5SnBYS!GYfOap2rIq5B ... xyR7utR0S0

this first one is what ive already been able to extract as i mentioned in the original post

https://mega.nz/#!Ji4SFQII!KgFrNEoOBDqO ... K5lBci_Hb8

and this is an example of decrypted .dat files that im triyng to convert to .dds

ffgriever
beginner
Posts: 25
Joined: Fri Dec 15, 2017 5:21 pm
Has thanked: 1 time
Been thanked: 26 times

Re: Okami .dat files

Post by ffgriever » Fri Feb 16, 2018 8:53 am

What's the problem? I mean, all the files are properly handled by my tools I've posted in this thread: viewtopic.php?f=21&t=17404&start=30#p137061

see this map_r10e_0.png

User avatar
Bigchillghost
ultra-veteran
ultra-veteran
Posts: 426
Joined: Tue Jul 05, 2016 9:37 am
Has thanked: 21 times
Been thanked: 269 times

Re: Okami .dat files

Post by Bigchillghost » Fri Feb 16, 2018 10:33 am

ffgriever wrote:all the files are properly handled by my tools I've posted in this thread
Not sure whether he has seen that or not.
bug wrote:this is an example of decrypted .dat files that im triyng to convert to .dds
Anyway here's a BMS script that can dump the images from the dat files you uploaded.
DDSExtractor.rar
You do not have the required permissions to view the files attached to this post.
May you find peace in this puzzle-solving game. Say it with action: click the Image when you get helped.:)

bug
ultra-n00b
Posts: 4
Joined: Sat Feb 10, 2018 2:51 am
Has thanked: 1 time

Re: Okami .dat files

Post by bug » Fri Feb 16, 2018 10:55 pm

Bigchillghost wrote:
ffgriever wrote:all the files are properly handled by my tools I've posted in this thread
Not sure whether he has seen that or not.
bug wrote:this is an example of decrypted .dat files that im triyng to convert to .dds
Anyway here's a BMS script that can dump the images from the dat files you uploaded.
DDSExtractor.rar
thanks so much, you're an absolute lifesaver

bug
ultra-n00b
Posts: 4
Joined: Sat Feb 10, 2018 2:51 am
Has thanked: 1 time

Re: Okami .dat files

Post by bug » Sat Feb 17, 2018 12:10 am

ffgriever wrote:What's the problem? I mean, all the files are properly handled by my tools I've posted in this thread: viewtopic.php?f=21&t=17404&start=30#p137061

see this map_r10e_0.png
i could be doing something wrong, but ive tried those and unfortunately they don't seem to work for me (they close almost immediately after i open them), im not sure if its because im on windows 10 or if im missing something else?

ffgriever
beginner
Posts: 25
Joined: Fri Dec 15, 2017 5:21 pm
Has thanked: 1 time
Been thanked: 26 times

Re: Okami .dat files

Post by ffgriever » Sat Feb 17, 2018 1:39 pm

These are command line tools. It's just much easier and faster to type things than click through them. Not to mention how much easier these are to use in batch mode (with a simple for-do batch loop). Making GUIs is just too much hassle, comparing the value they add (or detract) to the application.

Code: Select all

okami-pack -u input_file output_dir
But that may be a matter of age.

User avatar
Acewell
VIP member
VIP member
Posts: 1226
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2365 times
Been thanked: 707 times

Re: Okami .dat files

Post by Acewell » Tue Feb 20, 2018 8:21 am

Bigchillghost wrote:Anyway here's a BMS script that can dump the images from the dat files you uploaded.
DDSExtractor.rar
:eek: man you went all out, nice detective work! :D
this is a generic ripper script that can do the same :D

Code: Select all

# script for QuickBMS http://aluigi.altervista.org/quickbms.htm

findloc OFFSET binary "\x44\x44\x53\x20"
do
    goto OFFSET
    goto -0x14 0 seek_cur
    get NAME string
    string NAME p "OkamiHD_PC\%s.dds" NAME
    goto OFFSET
    goto 0x14 0 seek_cur
    get SIZE long
    log NAME OFFSET SIZE
    findloc OFFSET binary "\x44\x44\x53\x20" 0 "" -1
while OFFSET != ""

Post Reply