# Aeriagames pkg.idx/pkg???.pkg (script 0.1.2) # 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
Hello .! I tried to decompress the Grand Fantasia game from aeriagames, the script were working without problems until reach a certain .pkg, and throw this error. I uploaded the pkg.idx and the pkg040.pkg dunno if only these files are necesary to tweak the script a bit, but hope you can give support to this game. Thanks
I don't know if I can do anything. I didn't check the file but that "zlibx" compression is a sort of customization of zlib made by aeriagames. The only thing you can try is running quickbms with the -9 option and "maybe" the crash will be ignored (still not a solution but at least...).
aluigi wrote:I didn't check the file but that "zlibx" compression is a sort of customization of zlib made by aeriagames. The only thing you can try is running quickbms with the -9 option and "maybe" the crash will be ignored (still not a solution but at least...).
Hello aluigi, thanks for reply, I just tried the -9 option it extracted more files but still crashing.
So extraction will go forward avoiding that crash.
Hello aluigi! sorry for late response, I had tried with that exception and still getting error in other files. The only way gonna be adding them to the exception list right?. Thank you.
I really don't know what to suggest you. Manually filtering every file is impossible. I also checked the FLAGS field but it's the same for all the files (0x20) so it doesn't seem a different algorithm or a different setting.