res.package & CPK0 files

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: res.package & CPK0 files

Post by Ekey »

What the game?

Code: Select all

# ??? (PACKAGE format)
#
# Written by Ekey (h4x0r)
#
# script for QuickBMS http://quickbms.aluigi.org

idstring "PCK0"
goto 0xA
get FILES long
goto 0x15

for i = 0 < FILES
    get OFFSET long
    get NULL long
    get SIZE long
    get ZSIZE long
    getdstring TEMP 9
    get NAME string
    get TEMP1 byte
    get TEMP2 byte

    if ZSIZE == SIZE
       log NAME OFFSET SIZE
    else
       clog NAME OFFSET ZSIZE SIZE
    endif
next i
hackspeedok
Posts: 404
Joined: Mon Oct 06, 2014 6:41 pm

Re: res.package & CPK0 files

Post by hackspeedok »

Age of Wushu mobile
Thanks so much Ekey :)
hackspeedok
Posts: 404
Joined: Mon Oct 06, 2014 6:41 pm

Re: res.package & CPK0 files

Post by hackspeedok »

I can't reimport another ttf font. Help me
hackspeedok
Posts: 404
Joined: Mon Oct 06, 2014 6:41 pm

Re: res.package & CPK0 files

Post by hackspeedok »

aluigi, can you help me ?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: res.package & CPK0 files

Post by aluigi »

The script is valid for reimporting so I don't see problems.
hackspeedok
Posts: 404
Joined: Mon Oct 06, 2014 6:41 pm

Re: res.package & CPK0 files

Post by hackspeedok »

Did you try to reimport another ttf font? It didn't work
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: res.package & CPK0 files

Post by aluigi »

You are wrong, it works perfectly:

Code: Select all

  offset   filesize   filename
--------------------------------------
< 03fb6b43 1618861    res\font\fzcy_gbk.ttf

- 1 files reimported in 4 seconds
Additionally it's totally useless to me something like "I can't reimport" because it explains absolutely nothing about the poroblem.
hackspeedok
Posts: 404
Joined: Mon Oct 06, 2014 6:41 pm

Re: res.package & CPK0 files

Post by hackspeedok »

aluigi wrote:You are wrong, it works perfectly:

Code: Select all

  offset   filesize   filename
--------------------------------------
< 03fb6b43 1618861    res\font\fzcy_gbk.ttf

- 1 files reimported in 4 seconds
Additionally it's totally useless to me something like "I can't reimport" because it explains absolutely nothing about the poroblem.


Sorry, my failed. I did it. thanks so much aluigi