Devil May Cry 3 (HD collection PC port) .pac files

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
domkisho
Posts: 4
Joined: Sat Sep 04, 2021 6:53 pm

Devil May Cry 3 (HD collection PC port) .pac files

Post by domkisho »

hey all,

As the title states, I don't know how to open the .pac archives from DMC3. I've tried several BMS scripts for .pac files, but no luck so far. Any help is much appreciated!
I have posted this to Xentax, but i'm asking for help here too.

edit: I have tried to add the file after clarification, but i'm unable to as "The extension pac is not allowed.".
edit 2: used a braincell and made a zip file out of it
Last edited by domkisho on Sun Sep 05, 2021 12:44 pm, edited 3 times in total.
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Devil May Cry 3 (HD collection PC port) .pac files

Post by Ekey »

No files = no help
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Devil May Cry 3 (HD collection PC port) .pac files

Post by aluigi »

@domkisho
Please note that post edits are not visible to other users, nobody could know that you uploaded the sample.

The information about the archived files is not clear because I can't find information about the offset and size of each file.
Luckily all the archived files are probably just vag ("VAGp") so they are very easy to dump.

If you don't know how to dump them, use this script:

Code: Select all

findloc OFFSET string "VAGp"
do
    goto OFFSET
    get DUMMY long
    findloc NEXT_OFFSET string "VAGp" 0 ""
    if NEXT_OFFSET == ""
        get SIZE asize
    else
        math SIZE = NEXT_OFFSET
    endif
    math SIZE -= OFFSET
    log "" OFFSET SIZE
    math OFFSET = NEXT_OFFSET
while NEXT_OFFSET != ""


In the meantime I leave a script with an idea of the first section of the format (do NOT use it):

Code: Select all

idstring "PAC\0"
get ENTRIES long
for i = 0 < ENTRIES
    get OFFSET[i] long
next i

math i = 0
goto OFFSET[i]
idstring "dbsT"
get CHUNK_HEAD_SIZE long
get DUMMY long
get FILES long
for i = 0 < FILES
    get DUMMY1 long
    get DUMMY2 long
    get DUMMY3 long
    get DUMMY4 long
    get DUMMY5 long
    get DUMMY6 long
    get DUMMY7 long
    get DUMMY8 long
next i

math i = 1
goto OFFSET[i]
idstring "Head"
domkisho
Posts: 4
Joined: Sat Sep 04, 2021 6:53 pm

Re: Devil May Cry 3 (HD collection PC port) .pac files

Post by domkisho »

.

thanks! sorry about the files, im new to this forum - and decoding in general.
I will try to dump the files (i'm guessing its a bms script), but I'll add a file here too.
domkisho
Posts: 4
Joined: Sat Sep 04, 2021 6:53 pm

Re: Devil May Cry 3 (HD collection PC port) .pac files

Post by domkisho »

i was able to dump the files. Aluigi was correct, they're all .vag file types. I take it there's already a way to decode those?
domkisho
Posts: 4
Joined: Sat Sep 04, 2021 6:53 pm

Re: Devil May Cry 3 (HD collection PC port) .pac files

Post by domkisho »

I used vgmstream to convert one to .wav and it worked!
. thank you for your help!