Page 1 of 1

KOFXIII: unpacking cps

Posted: Sun Jun 19, 2011 5:33 am
by maniacoloco
The contents of this post was deleted because of possible forum rules violation.

Re: KOFXIII: unpacking cps

Posted: Sun Jun 19, 2011 8:40 am
by aluigi
script for QuickBMS:

Code: Select all

# The King of Fighters XIII CPS unpacker
# script for QuickBMS http://aluigi.org/papers.htm#quickbms

idstring "TEXLIST\0"
get MAX_OFFSET long
get DUMMY long

for i = 0
    savepos OFFSET
    if OFFSET >= MAX_OFFSET
        cleanexit
    endif

    getdstring TYPE 8
    get FULLZSIZE long
    get DUMMY long
    get DUMMY long
    get ZIP long
    get FULLZSIZE long
    get DUMMY long
    get CHUNKS long
    get DUMMY long
    math SIZE = 0x10000
    savepos NEXT_OFF

    math TMP = CHUNKS
    math TMP *= SIZE
    putvarchr MEMORY_FILE TMP 0
    log MEMORY_FILE 0 0
    append
    for j = 0 < CHUNKS
        get ZSIZE long
        savepos OFFSET
        clog MEMORY_FILE OFFSET ZSIZE SIZE
        math OFFSET += ZSIZE
        goto OFFSET
    next j
    append

    get NAME basename
    string NAME += "_"
    string NAME += TYPE
    string NAME += i
    get SIZE asize MEMORY_FILE
    log NAME 0 SIZE MEMORY_FILE

    math NEXT_OFF += FULLZSIZE
    goto NEXT_OFF
next i
P.S.: it's useless and lame to delete and recreate a thread only to bump it, was enough to add a bump-post to attire our attention instead of using this lame way

Re: KOFXIII: unpacking cps

Posted: Sun Jun 19, 2011 3:15 pm
by Nega
CPS? Isn't it meant to be PCS?

Re: KOFXIII: unpacking cps

Posted: Sun Jun 19, 2011 3:37 pm
by FinalBlast
After extracting using QuickBMS, I see files without extensions such as: "00_TEXTURE0"
I've attached an example of it, is there a way to open these files?

Edit:

After using "trid", it scanned these formats being "maybe" the types of file it actually is, thought I'd share this info too:

24.6% (.TGA) Targa bitmap <Original TGA Format - No Image ID> <1007/3>
24.5% (.) MacBinary 2 header <1002/3>
24.5% (.ABR) Adobe Photoshop Brush <1002/3>
24.5% (.BONK) BONK lossless/lossy audio compressor <1001/2>
1.5% (.CEL) Lumena CEL bitmap <63/63>