Shanghai Dragon *.pck

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
StreamThread
Posts: 54
Joined: Fri May 27, 2016 2:28 pm

Shanghai Dragon *.pck

Post by StreamThread »

Code: Select all

#Angelica File Package, Shanghai Dragon *.PCK
comtype zlib
get FSIZE ASIZE
math FSIZE -= 0x8
goto FSIZE
get FCount Long
math FSIZE -= 0x104
goto FSIZE
get FNames Long
goto FNames

 for i = 1 to FCount do
    get nameSize Long
    get NAME string
    get OFFSET Long
    get Size Long
    get ZSIZE Long
   if Size == ZSIZE
     log NAME OFFSET Size
   Else
     clog NAME OFFSET ZSIZE Size
 Endif
Next i
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Shanghai Dragon *.pck

Post by aluigi »

Is it the same format of this script?
http://aluigi.org/bms/angelica_file_package.bms
StreamThread
Posts: 54
Joined: Fri May 27, 2016 2:28 pm

Re: Shanghai Dragon *.pck

Post by StreamThread »

Yes, but older version. Structure is different.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Shanghai Dragon *.pck

Post by aluigi »

Do you have a sample file?
Just in case there is a way to recognize the new and old version.
StreamThread
Posts: 54
Joined: Fri May 27, 2016 2:28 pm

Re: Shanghai Dragon *.pck

Post by StreamThread »

aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Shanghai Dragon *.pck

Post by aluigi »

Great, the old format can be recognized so I added support for it in my script 0.2
CriticalError
Posts: 204
Joined: Thu Aug 14, 2014 8:52 pm

Re: Shanghai Dragon *.pck

Post by CriticalError »

many thanks for the help luigi, I got a question, which is the real name of this game? can you provice it? thanks.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Shanghai Dragon *.pck

Post by aluigi »

Currently I don't know what's the framework behind the "Angelica File Package" or if it's just a format used by some game developers.
After a quick search it seems used by many chinese MMORPG but I don't know if they are developed by the same group.