DmC Devil May Cry .APK

Codecs, formats, encoding/decoding of game audio, video and music
spider91
Posts: 233
Joined: Sun Aug 24, 2014 5:26 pm

DmC Devil May Cry .APK

Post by spider91 »

Pretty simple format, so its strange no one made a script before. There is wwise .bnk files inside, that can be extracted with AlphaTwentyThree's script and converted with ww2ogg.

Code: Select all

# DmC Devil May Cry .APK
# script for QuickBMS http://quickbms.aluigi.org

get FILES long
get DUMMY long
for i = 0 < FILES
    get NAME long
    get OFFSET long
    get SIZE long
    string NAME p= "%08x" NAME
    string NAME += ".bnk"
    log NAME OFFSET SIZE
next i
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: DmC Devil May Cry .APK

Post by AnonBaiter »

This script needs a update, because I found the same file in the PS3 version of the game.

Here be the sample(cut through the good old script):
https://mega.nz/#!8YljRS4T!nJ0KWt3r5YG7JS71URaMlcrdDlC0-j-A1zHG5NOaxqw

For now that is just the PS3 version. The X360 version of the file will be uploaded when I get a copy of it.
spider91
Posts: 233
Joined: Sun Aug 24, 2014 5:26 pm

Re: DmC Devil May Cry .APK

Post by spider91 »

I've made it a long time ago but didn't post here. This one should work for all 3 platforms

Code: Select all

get BNK_FILES long
get WWISE_FILES long
for i = 0 < BNK_FILES
    get NAME long
    get OFFSET long
    get SIZE long
    string NAME p= "%08x" NAME
    string NAME += ".bnk"
    log NAME OFFSET SIZE
next i
for i = 0 < WWISE_FILES
    get NAME long
    get OFFSET long
    get SIZE long
    string NAME p= "%08x" NAME
    string NAME += ".wwise"
    log NAME OFFSET SIZE
next i
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: DmC Devil May Cry .APK

Post by AnonBaiter »

Huh. I tested it on the MAIN_PS3.APK file, but it only extracted one .bnk file(435MB). Was the .APK file structured this way on the PS3 version?
spider91
Posts: 233
Joined: Sun Aug 24, 2014 5:26 pm

Re: DmC Devil May Cry .APK

Post by spider91 »

No, just add "endian big" as a first line in script for console versions.
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: DmC Devil May Cry .APK

Post by AnonBaiter »

spider91 wrote:No, just add "endian big" as a first line in script for console versions.

Ah, it actually worked this time. Thanks.

EDIT: Huh. I used the wwise_bnk.bms script AplhaTwentyThree wrote on a .bnk file of an extracted MAIN_PS3 folder and it gave me this error(see the attachment). Any ideas?
spider91
Posts: 233
Joined: Sun Aug 24, 2014 5:26 pm

Re: DmC Devil May Cry .APK

Post by spider91 »

It's the same thing, add "endian big" as a first line in script for bnk too.
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: DmC Devil May Cry .APK

Post by AnonBaiter »

spider91 wrote:It's the same thing, add "endian big" as a first line in script for bnk too.

Haha, I didn't think of that. Thanks.