Important information: this site is currently scheduled to go offline indefinitely by end of the year.

KOFXIII: unpacking cps

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
maniacoloco
advanced
Posts: 49
Joined: Sat Mar 05, 2011 3:19 pm
Been thanked: 2 times

KOFXIII: unpacking cps

Post by maniacoloco »

The contents of this post was deleted because of possible forum rules violation.
User avatar
aluigi
VVIP member
VVIP member
Posts: 1916
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 664 times
Contact:

Re: KOFXIII: unpacking cps

Post 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
Nega
beginner
Posts: 27
Joined: Wed Sep 29, 2010 9:57 pm
Has thanked: 5 times
Been thanked: 12 times

Re: KOFXIII: unpacking cps

Post by Nega »

CPS? Isn't it meant to be PCS?
User avatar
FinalBlast
advanced
Posts: 52
Joined: Mon Dec 28, 2009 6:35 pm
Location: Bulgaria
Has thanked: 22 times
Been thanked: 5 times
Contact:

Re: KOFXIII: unpacking cps

Post 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>
You do not have the required permissions to view the files attached to this post.
Post Reply