BOCW xpaks

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
CptGlitchy
Posts: 1
Joined: Sat Oct 17, 2020 11:55 am

BOCW xpaks

Post by CptGlitchy »

Hey, anyone know how to extract these xpak files? tried scripts which worked fine on older cod games but format seems to be altered, appreciate any help, thanks all.
heres a sample file: https://mega.nz/file/bJhDTCwa#VdVRlfIAs ... xVOpDJT6B8
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: BOCW xpaks

Post by aluigi »

This KAPI format is weird and very different than the one I checked years ago in cod_kapi.bms (which was experimental btw).
I see the list of 0x5e3 entries but nothing meaningful from them.
The data from offset 0x60000 is just a sequence of information/metadata.

This is the script for parsing the format (does NOT dump anything):

Code: Select all

idstring "KAPI"
get DUMMY short # 4
get DUMMY short # 0x10
get DUMMY long  # 1
get DUMMY long  # 0
get DUMMY long  # 2
get DUMMY long  # 4
get XPACK_SIZE longlong
get DUMMY longlong
get DUMMY longlong
goto 0x7a0
get FILES longlong
get INFO_OFF longlong
get INFO_SIZE longlong
get ZERO longlong
get DATA_OFF longlong
goto INFO_OFF
for i = 0 < FILES
    get DUMMY long
    get DUMMY long
    get DUMMY long
    get DUMMY long
next i
goto DATA_OFF
for i = 0 < FILES
    get DUMMY longlong
    get SIZE longlong
    getdstring DUMMY SIZE
next i