Jump to content

Subject: Help with FONTES.DPS file from Ratatouille PS2


Recommended Posts

Posted

Hello,

 

I have a file from the game Ratatouille for PS2, in DPS format, named FONTES.DPS.

I tried to unpack the file but without success.

I believe the file contains an image related to the game's font.

 

Here is the link to the file:

https://mega.nz/file/O0ZliICZ#YXaO_rhs23EAXBoD6vdco2emWeBTqg4GIWozxvxAZFs

 

Could you help me with how to open it or extract its contents?

 

Thank you very much in advance.

 

  • Engineers
Posted

There has a aluigi bms that do the unpack, but without decompression.

 

# Ratatouille DPC (script 0.1.4)
#   doesn't support compressed files and doesn't parse the resources, it's just a dumper
# script for QuickBMS http://quickbms.aluigi.org

get NAME string
if NAME & "Asobo"
    math BASE_OFF = 0x100
else
    math BASE_OFF = 0
endif

goto BASE_OFF
get FILE_TYPE long
get DUMMY long
get ZERO byte
get FILES long
if FILE_TYPE == 0
    getdstring DUMMY 0x18
elif FILE_TYPE == 1
    getdstring DUMMY 0x13
elif FILE_TYPE == 0x30
    getdstring DUMMY 0xf
else
    getdstring DUMMY 0x13
endif
savepos INFO_OFF
xmath OFFSET "INFO_OFF + 0x6e0"
if FILE_TYPE == 0x30
    math OFFSET += 4
endif

for i = 0 #< FILES
    get SUB_FILES long
    if SUB_FILES == 0
        break
    endif
    get XSIZE long
    get SIZE long
    get ALIGN long
    get CRC longlong
    log MEMORY_FILE OFFSET SIZE
    callfunction UNPACK
    math OFFSET += XSIZE
next i

startfunction UNPACK
    math NEXT_OFF = 0
    for j = 0 < SUB_FILES
        get XSIZE long MEMORY_FILE
        savepos TMP_OFF MEMORY_FILE
        if FILE_TYPE == 0x30
            get ZSIZE long MEMORY_FILE
            if j == 0
                get TYPE long MEMORY_FILE
            else
                math TMP_OFF -= 4
            endif
            get DUMMY longlong MEMORY_FILE
            savepos TMP_OFF2 MEMORY_FILE
            get ZERO long MEMORY_FILE
            get REAL_SIZE long MEMORY_FILE
            if ZSIZE != 0
                math XSIZE = ZSIZE
            endif
        else
            get DUMMY long MEMORY_FILE
            get XZSIZE long MEMORY_FILE
            get ZSIZE long MEMORY_FILE
            get TYPE long MEMORY_FILE
            get DUMMY longlong MEMORY_FILE
            savepos TMP_OFF2 MEMORY_FILE
            get ZERO long MEMORY_FILE
            get REAL_SIZE long MEMORY_FILE
        endif

        savepos OFFSET MEMORY_FILE
        xmath NEXT_OFF "NEXT_OFF + (TMP_OFF2 - TMP_OFF) + XSIZE"
        xmath SIZE "NEXT_OFF - OFFSET"

        if SIZE > 0
            if ZSIZE == 0

                # DDS
                if TYPE == 0x57b1f99e
                    # not enough
                    #math OFFSET += 0x10
                    #math SIZE   -= 0x10

                    savepos TMP
                    goto OFFSET
                    findloc DDS_OFF string "DDS " MEMORY_FILE ""
                    goto TMP
                    if DDS_OFF != ""
                        xmath TMP "DDS_OFF - OFFSET"
                        if TMP > 0
                            if TMP < SIZE
                                math SIZE - TMP
                                math OFFSET = DDS_OFF
                            endif
                        endif
                    endif
                endif

                string NAME p= "/%08x/" TYPE
                log NAME OFFSET SIZE MEMORY_FILE
            else
                # compression is not supported because some resources have an header
                string NAME p= "compressed/%08x/" TYPE
                log NAME OFFSET SIZE MEMORY_FILE
            endif
        endif

        goto NEXT_OFF MEMORY_FILE
    next j
endfunction

 

  • Engineers
Posted
50 minutes ago, Ggsgwhwhe said:

 

My friend, the file is in DPS format, not DPC.

 

Also, the game is for PS2, not PC.

It´s the same logic.

just need to ajust the decompressor, but you can search about it in google.

57B1F99E_26EF6780@0000000000.png

57B1F99E_26EF6780@0000000000.png

  • Confused 1
Posted
43 minutes ago, Rabatini said:

إنه نفس المنطق.

تحتاج فقط إلى ضبط أداة فك الضغط، ولكن يمكنك البحث عنها في جوجل.

 

44 minutes ago, Rabatini said:

إنه نفس المنطق.

تحتاج فقط إلى ضبط أداة فك الضغط، ولكن يمكنك البحث عنها في جوجل.

57B1F99E_26EF6780@0000000000.png

57B1F99E_26EF6780@0000000000.png

57B1F99E_26EF6780@0000000000.png

57B1F99E_26EF6780@0000000000.png

 

 

 

 

My friend, thank you for your help.

But could you please tell me the method you used to unpack the files?

 

Also, you mentioned a tool that I should search for on Google — can you give me its exact name, or upload it here if possible?

 

And if you can, please upload the images as well.

 

Thank you!

 

Posted
14 hours ago, Rabatini said:

It´s the same logic.

just need to ajust the decompressor, but you can search about it in google.

57B1F99E_26EF6780@0000000000.png

57B1F99E_26EF6780@0000000000.png

Brother, may I know why you haven’t replied yet?

Posted
Just now, Rabatini said:

هل أنت تمزح أليس كذلك؟

 

Just now, Rabatini said:

Are you kidding right?

My friend, I'm only trying to understand.

I used the DPC script, but it only extracted some encrypted DAT files.

 

I'm simply asking for the method you used to unpack the files, and the exact name of the tool you mentioned.

If you can upload the images as well, I would really appreciate it.

 

I'm not here to argue — I'm just trying to learn.

 

 

---

 

Posted
36 minutes ago, Ggsgwhwhe said:

 

My friend, I'm only trying to understand.

I used the DPC script, but it only extracted some encrypted DAT files.

 

I'm simply asking for the method you used to unpack the files, and the exact name of the tool you mentioned.

If you can upload the images as well, I would really appreciate it.

 

I'm not here to argue — I'm just trying to learn.

 

 

---

 

I've deleted some of your replies to tidy up the thread.  There's no need to post the same reply several times in a row.  Nobody is obligated to reply unless they want to, so you need to be patient if there's no responses.  And finally, don't ask for people to upload converted resources - the point of this forum is to give you the tools and scripts to extract them yourself from your own game files.

 

 

 

Posted
15 minutes ago, DKDave said:

I've deleted some of your replies to tidy up the thread.  There's no need to post the same reply several times in a row.  Nobody is obligated to reply unless they want to, so you need to be patient if there's no responses.  And finally, don't ask for people to upload converted resources - the point of this forum is to give you the tools and scripts to extract them yourself from your own game files.

 

 

 

My friend, I didn’t mean to bother you.

I only asked for a way to decrypt the DAT files, because several files were extracted and I want to know which one contains the font.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...