Help with ss_file.dat extraction RE4 PS2

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Kratos9999
Posts: 129
Joined: Mon Aug 22, 2016 10:30 am

Help with ss_file.dat extraction RE4 PS2

Post by Kratos9999 »

Hi guys, I need to help for making an script for extracting the ss_file.dat in RE4 game, PS2 version. The Re4 Text Inject Tool works only in RE4 pc version. The Gca extractor don't work too, someone can provide me an script for extraction of this file,and how to get the info needed to create the script in Quickbms? I will be send the sample ot file.
Kratos9999
Posts: 129
Joined: Mon Aug 22, 2016 10:30 am

Re: Help with ss_file.dat extraction RE4 PS2

Post by Kratos9999 »

Something help, please!
Kratos9999
Posts: 129
Joined: Mon Aug 22, 2016 10:30 am

Re: Help with ss_file.dat extraction RE4 PS2

Post by Kratos9999 »

Please, i am beginner in extracting files area, i want to learn create scripts and extract any file type. Maybe a good example of structure of this file can help me to understand how it works the reverse engineering, all i want is detailed example of this file. I believe that an example is the first-step for my learning
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: Help with ss_file.dat extraction RE4 PS2

Post by AnonBaiter »

I don't know about you, but just by begging won't do any good. If there's nobody there to help you, it's probably because they're not interested.

Meanwhile, take the "research approach"; it's not necessary to write a script. Only by knowing how it works is where you'll put it into practice; read the quickbms.txt file and go to section 4 if you wish to learn how to write a script. If you're still in doubt, read this:
http://wiki.xentax.com/index.php/DGTEFF
It might not have all the answers, but it can be a very helpful guide in some cases.

Also, two posts in one day? Have you heard of the word "spamming" and/or "patience"?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Help with ss_file.dat extraction RE4 PS2

Post by aluigi »

Google has various results about ss_file.dat which is text stuff apparently.
Do the google-job first, for real.
And don't talk about "learning how to create scripts" if you have no idea of the structure of the target file, it's like learning to write without knowing a language, grammar and syntax :)
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: Help with ss_file.dat extraction RE4 PS2

Post by AnonBaiter »

Seems like he/she is talking about the PS2 version...
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Help with ss_file.dat extraction RE4 PS2

Post by aluigi »

There is a TOC at the beginning, the following script extracts everything but the content of these files is not something that can read easily, additionally I don't see text stuff but just FNT, MDT, EFF and UWF files (whatever they mean):

Code: Select all

get FILES long
goto 0x10
for i = 0 < FILES
    get OFFSET long
    putarray 0 i OFFSET
next i
    get OFFSET asize
    putarray 0 i OFFSET
for i = 0 < FILES
    getdstring NAME 4
    getarray OFFSET 0 i
    math i + 1
    getarray SIZE   0 i
    math SIZE - OFFSET
    string NAME + /
    log NAME OFFSET SIZE
next
Kratos9999
Posts: 129
Joined: Mon Aug 22, 2016 10:30 am

Re: Help with ss_file.dat extraction RE4 PS2

Post by Kratos9999 »

Thank you very much, aluigi, your script is perfect, works fine here. I will try to learn more about structure of MDT files and the others. You helped me a lot, but one more time, thank you!
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Help with ss_file.dat extraction RE4 PS2

Post by aluigi »

Good :D
Kratos9999
Posts: 129
Joined: Mon Aug 22, 2016 10:30 am

Re: Help with ss_file.dat extraction RE4 PS2

Post by Kratos9999 »

Aluigi, here I am again.Acording to what googled yesterday, and what I understood, the ss_file.dat it seems use a compression based in Deflate algorithm. You can confirm this for me, please?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Help with ss_file.dat extraction RE4 PS2

Post by aluigi »

It's wrong, the ss_file.dat you provide contains no zlib/deflate data.
Kratos9999
Posts: 129
Joined: Mon Aug 22, 2016 10:30 am

Re: Help with ss_file.dat extraction RE4 PS2

Post by Kratos9999 »

And what data type exactaly is present in ss_file format, what the compression type used to store the files in archive?