ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Sat Sep 22, 2018 1:12 am

All times are UTC




Post new topic  Reply to topic  [ 33 posts ]  Go to page Previous 1 2
Author Message
PostPosted: Tue Oct 25, 2016 3:51 pm 
User avatar

Joined: Fri Sep 30, 2016 4:12 am
Posts: 50
aluigi wrote:
Yes, upload those 2 files that have been generated and the relative index file if available.
It's better if you run the script on the zpkg archive of 2.5Gb

Sample:https://yadi.sk/d/E340c1YdxbfCf
asset.zpkg_0_16282265062=16 GB file (1)
asset.zpkg_16280167910_16282265062=16 GB file (2)
asset_crypt.zpkg_0_16282265062=16 GB file (1) Run before you give to unpack the script file
data.zpkg_0_-1648754618=2.5 GB file (1)
data.zpkg_-1650851770_-1648754618=2.5 GB file (2)


Top
   
PostPosted: Tue Oct 25, 2016 4:21 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8809
Don't you have zpkg.index files?


Top
   
PostPosted: Tue Oct 25, 2016 4:54 pm 
User avatar

Joined: Fri Sep 30, 2016 4:12 am
Posts: 50
aluigi wrote:
Don't you have zpkg.index files?

I don't know which of these files is index file. Is the source file?
Attachment:
TF7)WQ~{LLCJDW`6X3QY`T7.png [27.75 KiB]
Downloaded 1 time


Top
   
PostPosted: Tue Oct 25, 2016 5:12 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8809
Ah ok, I thought there were some files like data.zpkg.index because that was written in the title of the topic.
Anyway I have something working:
http://aluigi.org/bms/gjol.bms


Top
   
PostPosted: Tue Oct 25, 2016 5:30 pm 
User avatar

Joined: Fri Sep 30, 2016 4:12 am
Posts: 50
aluigi wrote:
Ah ok, I thought there were some files like data.zpkg.index because that was written in the title of the topic.
Anyway I have something working:
http://aluigi.org/bms/gjol.bms

Cool! 2.5 GB file work perfect, 100% decompression, but not the correct file name
Unpack the 16 gb file only a little part of the error is encountered.
Attachment:
D}5YK_7@9)2O5I$A0(TOXAA.png [22.33 KiB]
Downloaded 1 time


Top
   
PostPosted: Tue Oct 25, 2016 5:36 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8809
Do you have the same error if you replace:
Code:
get SIZE longlong
with
Code:
get SIZE long
get DUMMY long
?


Top
   
PostPosted: Tue Oct 25, 2016 6:21 pm 
User avatar

Joined: Fri Sep 30, 2016 4:12 am
Posts: 50
aluigi wrote:
Do you have the same error if you replace:
Code:
get SIZE longlong
with
Code:
get SIZE long
get DUMMY long
?

Like this?
Code:
# gjol / Gu Jianqi Tan online / 《古剑奇谭网络版》
# script for QuickBMS http://quickbms.aluigi.org

idstring "ZPKG"
getdstring DUMMY 12
get DUMMY longlong
get DUMMY longlong
get DUMMY longlong
get DUMMY longlong
get DUMMY longlong
get DUMMY longlong
get ARCHIVE_SIZE asize
savepos OFFSET
for OFFSET = OFFSET != ARCHIVE_SIZE
    getdstring DUMMY 16
    get SIZE longlong
    get DUMMY long
    get CHUNK_SIZE long

    math CHUNKS = SIZE
    math CHUNKS / CHUNK_SIZE
    if SIZE % CHUNK_SIZE
        math CHUNKS + 1
    endif
    for x = 0 < CHUNKS
        get CHUNK_ZSIZE long
        putarray 0 x CHUNK_ZSIZE
    next x
    savepos OFFSET

    comtype blosc   # lzf and fastlzah fail on some files

    # some files use blosc, others use lzma
    get TEST short
    if TEST == 0x005d
        comtype lzma_dynamic    # the others don't work...
    endif

    putvarchr MEMORY_FILE SIZE 0
    log MEMORY_FILE 0 0
    append
    for x = 0 < CHUNKS
        getarray CHUNK_ZSIZE 0 x
        if CHUNK_ZSIZE == CHUNK_SIZE
            log MEMORY_FILE OFFSET CHUNK_SIZE
        else
            clog MEMORY_FILE OFFSET CHUNK_ZSIZE CHUNK_SIZE
        endif
        math OFFSET + CHUNK_ZSIZE
    next x
    append
    log "" 0 SIZE MEMORY_FILE

    goto OFFSET
next

Attachment:
L@)W[W6Z]GH7GJH6L7X{`T1.png [32.78 KiB]
Not downloaded yet


Top
   
PostPosted: Tue Oct 25, 2016 9:04 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8809
Recheck my patch and spot your mistake :)


Top
   
PostPosted: Sun Jun 25, 2017 3:05 am 

Joined: Sun Jun 25, 2017 3:00 am
Posts: 1
it seems that the game files of new version has changed, the script does not work correctly, only several files can be decompressed. is there someone can update the script?


Top
   
PostPosted: Thu Jul 20, 2017 9:22 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8809
Please provide a sample.


Top
   
PostPosted: Wed Jul 11, 2018 12:25 am 

Joined: Sun Aug 24, 2014 8:54 am
Posts: 146
.
hi,aluigi
The game new version is released, current script doesn't work. Please help

new Samples:
https://www28.zippyshare.com/v/6vRAkTcI/file.html


Top
   
PostPosted: Wed Jul 11, 2018 8:02 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8809
This script is compatible with the data* archive that now use the "ZFS" format:
http://aluigi.org/bms/new_sword_legends.bms

I have updated the script to version 0.2.1 for automatically handling the idx file but consider that it will be slow (searching the name from the hash is slow), it's enough to open 604.idx with the script and it will automatically extract all the archives.

I don't know how many archives exist for this game so the script will try them sequentially like data000 data001 and so on till there are none.
If you have a list of these data*, it would be useful.


Top
   
PostPosted: Wed Jul 11, 2018 9:13 am 

Joined: Sun Aug 24, 2014 8:54 am
Posts: 146
Thanks!!! aluigi ^^


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 33 posts ]  Go to page Previous 1 2

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited