Aura Kingdom *.pkg unpack Fail

01/23/2015 04:45 hdwong#1
hello everyone .. My English is not very good,Please do not take offense..

I recently playing [Fantasy Frontier Online(Chinese Version)].. [Only registered and activated users can see links. Click Here To Register...]
I use QuickBMS Unpack This GameRes..

Code:
# Aeriagames pkg.idx/pkg???.pkg (script 0.1.2)
#   Eden Eternal
#   Kitsu Saga
#   Dragon Slayer
# script for QuickBMS http://quickbms.aluigi.org

comtype unzip_dynamic
getdstring DUMMY 260
getdstring SIGN 32
math PKG_OLD = -1
get FULLSIZE asize
do
    get DUMMY long
    get OFFSET long
    get DUMMY long
    get ZSIZE long
    getdstring DUMMY 0x28
    get SIZE long
    getdstring NAME2 260
    getdstring NAME 260
    get DUMMY long
    get PKG long
    get DUMMY long
    if PKG != PKG_OLD
        string PKG_NAME p= "pkg%03d.pkg" PKG
        open FDSE PKG_NAME 1
        math PKG_OLD = PKG
    endif
    string NAME += NAME2

    goto OFFSET 1
    get TMP1 byte 1
    get TMP2 byte 1
    if TMP1 == 0x88 && TMP2 == 0x1c
        savepos OFFSET 1
        math ZSIZE -= 2
    endif
    clog NAME OFFSET ZSIZE SIZE 1
    savepos CURR
while CURR < FULLSIZE
This script success unpack head is 0x7801 and Most 0x881c..However, some 0x881c head file unpack is fail..I look Zdata Like Zlib.but is deform..

some unpack fail File:
\data\db\t_textindex.ini
\data\db\t_biology.ini
\biology\texture\m74001.dds
\biology\texture\m74051.dds
\biology\texture\m74052.dds
\char\model\g.nif
\char\model\b.nif

GameRes is too big..I can't upload all gameres..

So I would like in this forum looking for your help..Thank you :]
01/23/2015 09:11 Silone1993#2
this is the aura kingdom forum, so please request a mod to delete it
PD; u made 2 threads, watch out
01/23/2015 12:46 shakedekel#3
Quote:
Originally Posted by Silone1993 View Post
this is the aura kingdom forum, so please request a mod to delete it
PD; u made 2 threads, watch out
"Fantasy Frontier" is the Taiwanese version of Aura Kingdom, Basically the same game only different name, he has any rights to post it in this section.
The 2 threads although are a different case and one of them should be deleted.
04/27/2015 06:26 jamestirius#4
i just wonder how to repack them. u can unpack but how to repack?
04/29/2015 01:47 Professor Linebeck#5
Quote:
Originally Posted by jamestirius View Post
i just wonder how to repack them. u can unpack but how to repack?
You can repack them by changing the paths and the url from the launcher via hex editor. Encrypt it yourself if needed. The launcher will repack the files from your chosen path into the pkg files.
05/02/2015 17:56 Deodex#6
Can someone help me ?

Ive downloaded and installed "Quick BMS Editor GUI v2.0 beta" but when i try to extrakt the archive with the "Extact" button nothing happends.
05/11/2015 22:40 Shawr93#7
check pm mate
05/17/2015 19:48 omgrckr#8
We've already researched that too, that line is not the problem.
06/19/2015 06:35 Ismellafake#9
anyone have any more information on this? really trying to extract still but not even private can be extracted anymore.
06/26/2015 16:57 Oriya9#10
That's odd, QuickBMS should take care of Deflate64.
I guess it's a header issue. Also, I'm not sure why the script discards only the 0x881C header.

You can use my unpacker if you want.
I've attached both the binary and the source in case you'd like to look inside (nothing is commented though).

Hope that helps! :)
Oriya.
06/26/2015 20:59 Ismellafake#11
worked fine, checked source just to be sure even. thanks!

edit: One issue: extracted dds files seem to be corrupted a bit, pixelated textures is what is extracted.
06/27/2015 07:51 Oriya9#12
Quote:
Originally Posted by Ismellafake View Post
worked fine, checked source just to be sure even. thanks!

edit: One issue: extracted dds files seem to be corrupted a bit, pixelated textures is what is extracted.
Yeah, I just checked it.
It seems like the files that the OP complained about do get decompressed and unpacked but the decompression is corrupted.
For example, I've noticed that only the top half of t_biology.txt is valid, the bottom half is corrupted.
Honestly, I have no idea why it happens, but this is probably the same reason why QuickBMS fails unpack them completely.

If I had to guess I'd say it's a Deflate64 issue.
The problematic files were compressed with Deflate, that's for sure (because all the other ones are fine and we still get some data on the few problematic ones).
But you can't tell if it's Deflate64 or Deflate because it lacks the headers (it's raw Deflate compressed data).
The thing is, even if it is Deflate64, it should still work properly because it only happens with some of the files that have the 0x881C header. And of course all other files are fine.

I might look deeper into this int the future.
07/05/2015 17:20 europiOmg#13
can you please upload your unpacker ? :x
08/11/2015 18:01 keyrita#14
Can not update can extract the latest client
02/25/2022 08:46 KuraiKasai#15
Quote:
Originally Posted by Professor Linebeck View Post
You can repack them by changing the paths and the url from the launcher via hex editor. Encrypt it yourself if needed. The launcher will repack the files from your chosen path into the pkg files.
lookin through the hex code makes no sence on where it even is? what U.R.L. am i looking for?