Spider-Man 2 (Xbox) *.WBK

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Spider-Man 2 (Xbox) *.WBK

Post by Mygoshi »

Hiey everyone,

Could somebody write a script to extract the WBK archive of this game please?

The header is identified by WAVEBK11 and you can see the filenames in a hex editor.

Link: https://mega.co.nz/#!Bc4w3QyS!UryxhVaVl ... 9wbY4QkpSQ

Thanks in advance.
Last edited by Mygoshi on Fri Feb 19, 2021 2:06 pm, edited 2 times in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Spider-Man 2 (Xbox) *.WBK

Post by aluigi »

http://aluigi.org/papers/bms/others/wavebk_wbk.bms

I know that you are lazy so the script automatically adds also a RIFF header to the files.
If you want to reimport them I suggest you to remove this feature by setting ADD_RIFF_HEADER to 0.
I think the files are all stereo.
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Spider-Man 2 (Xbox) *.WBK

Post by Mygoshi »

It works, thanks.
Last edited by Mygoshi on Fri Feb 19, 2021 2:06 pm, edited 2 times in total.
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Spider-Man 2 (Xbox) *.WBK

Post by Mygoshi »

Could you also do it for the PS2 version please? The files are named "SOUNDS.WBK" but it's originally "SOUNDS.PAK"
Link to the filecutted files: https://mega.nz/#!C1lTWYZQ!5ttyFyM8Sp-y ... nfVQpWfCLk
https://mega.nz/#!CtdTkSYY!vlyG3tc6G4EA ... fMiAiRKm6w

Thanks!
Last edited by Mygoshi on Fri Feb 19, 2021 2:07 pm, edited 1 time in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Spider-Man 2 (Xbox) *.WBK

Post by aluigi »

Code: Select all

goto 0x18
get BASE_OFF long
goto 0x258
for
    getdstring NAME 0x20
    if NAME == ""
        break
    endif
    get OFFSET long
    get SIZE long
    math OFFSET + BASE_OFF
    string NAME + "."
    log NAME OFFSET SIZE
next
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Spider-Man 2 (Xbox) *.WBK

Post by Mygoshi »

Thanks!