Heroes:Scions of Phoenix Online 火鳳三國

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
chrrox
Moderator
Posts: 2602
Joined: Sun May 18, 2008 3:01 pm
Has thanked: 57 times
Been thanked: 1397 times

Heroes:Scions of Phoenix Online 火鳳三國

Post by chrrox »

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: 654 times
Contact:

Re: Heroes:Scions of Phoenix Online 火鳳三國

Post by aluigi »

interesting format, practically the "shake" files are totally useless because the "pak" ones are normal zip files with UZ instead of PK and filenames xored with 0xb2 :)

Code: Select all

# Heroes:Scions of Phoenix Online
# script for QuickBMS http://aluigi.org/papers.htm#quickbms

comtype deflate
for
    idstring "UZ\x03\x04"

    get ver         short
    get flag        short
    get method      short
    get timedate    long
    get crc         long
    get comp_size   long
    get uncomp_size long
    get name_len    short
    get extra_len   short
    filexor 0xb2
    getdstring name     name_len
    filexor ""
    getdstring extra    extra_len
    savepos offset

    if method == 0
        Log name offset uncomp_size
    elif method == 8
        CLog name offset comp_size uncomp_size
    else
        print "unsupported compression method %method%"
        cleanexit
    endif

    math offset += comp_size
    goto offset
next
chrrox
Moderator
Posts: 2602
Joined: Sun May 18, 2008 3:01 pm
Has thanked: 57 times
Been thanked: 1397 times

Re: Heroes:Scions of Phoenix Online 火鳳三國

Post by chrrox »

Thanks for this I was suspecting the name was xored and I saw the offsets but I never thought it was a zip format. thanks so much :)
Post Reply