Unpacking & Repacking Aura Kingdom Files

03/21/2014 19:09 matteroflove#1
Most of you probably already know how to unpack aura kingdom client files. If you google search around you can find the method fairly easily.

Though I will just share it here in the sake of starting a discussion and seeking help. In other to not just Unpack the game files but repacked it as well.

First off here's the quickbms code to unpack.
Need to unpack the files in pkg folder or it won't work right.

Credit's goes to who ever created the code.

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

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
    clog NAME OFFSET ZSIZE SIZE 1
    savepos CURR
while CURR < FULLSIZE
just save it as code.bms use on "pkg.idx"

I'll be the first to say I don't have a clue on how to repack edited file back to the client.

Thus why I made this thread. :handsdown:
03/21/2014 21:01 mesoless#2
what program ?
03/21/2014 21:54 Requi#3
Quote:
Originally Posted by mesoless View Post
what program ?
[Only registered and activated users can see links. Click Here To Register...]
I guess this one would work to execute the code :)
03/22/2014 16:16 matteroflove#4
hope I can get some insight on how we could go about repacking edited files.
03/23/2014 13:26 Helicon#5
Hi ! :)

I can't unpack all of the AK files.
I tried with this bms script, with a python script, and with AeriaUnpack.exe. Each time I had an Zlib error when extracting file ui/itemicon/i80196.dds. And all the files after this one have the same zlib error.

Removing and reloading the pack, deleting and reloading all, uninstall/reinstall the game always give me the same error.

Does anybody else have this problem ?
03/24/2014 18:36 Shane¸#6
if you want to repack them, then change the patch server url in the launcher (with code cave since it's hardcoded unicode) and the launcher will automatically compress them into pkg files.
03/24/2014 19:33 Roibot#7
Quote:
Originally Posted by Shane¸ View Post
if you want to repack them, then change the patch server url in the launcher (with code cave since it's hardcoded unicode) and the launcher will automatically compress them into pkg files.
maybe give a tutorial ?
03/25/2014 06:12 solid2005#8
your friendly fiddler.
11/29/2014 15:12 bunniess#9
It doesn't work for me.. D:
An error message pop's up saying;;
"C:\users\mee\documents\code.bms is not valid win32 application"

D: