Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
wwwklopar
Posts: 23 Joined: Sat Dec 08, 2018 7:53 pm
Post
by wwwklopar » Fri Sep 20, 2019 9:16 am
Hello! I'm trying to unpack Ni no Kuni for Switch. Main archive there has VFS3 in header, so i tried "killer7_vfs.bms" script, but it gives error
Code: Select all
00177f18 312949 data\_debug\launcher\event_view.0.32r.cfg Error: the compressed zlib/deflate input is wrong or incomplete (-3) Info: algorithm 1 offset 00177f18 input size 0x000053f0 21488 output size 0x0004c675 312949 result 0xffffffff -1 Error: the uncompressed data (-1) is bigger than the allocated buffer (312949) Last script line before the error or that produced the error: 78 clog FNAME OFFSET SIZE XSIZE
Is there wrong compression algoritm? Can someon help with this?
Archive
eaZy
Posts: 13 Joined: Sat Apr 13, 2019 9:25 am
Post
by eaZy » Fri Sep 20, 2019 3:11 pm
Just use comtype ZSTD for it
wwwklopar
Posts: 23 Joined: Sat Dec 08, 2018 7:53 pm
Post
by wwwklopar » Fri Sep 20, 2019 4:11 pm
eaZy wrote: Just use comtype ZSTD for it
Thanks eaZy! One thing i didn't try.
aluigi
Site Admin
Posts: 12984 Joined: Wed Jul 30, 2014 9:32 pm
Post
by aluigi » Thu Sep 26, 2019 4:28 am
Script 0.1.1. Apparently the first bit in FLAGS means ZSTD if set since the older sample for Killer7 had FLAGS 2 and it's 3 here.
psy76
Posts: 2 Joined: Sat Sep 28, 2019 3:15 pm
Post
by psy76 » Sat Sep 28, 2019 3:18 pm
Hi. But not pack through reimport2.bat? I pack it back and this VFS file does not work. Smaller files cannot be created during russification. More precisely, the VFS file works, the files that I imported reimport2.bat into it do not work.
aluigi
Site Admin
Posts: 12984 Joined: Wed Jul 30, 2014 9:32 pm
Post
by aluigi » Sun Sep 29, 2019 8:07 am
The script may not work correctly in reimport mode for various reasons (compression, CRC, usage of arrays [that should work anyway] and so on)
psy76
Posts: 2 Joined: Sat Sep 28, 2019 3:15 pm
Post
by psy76 » Mon Sep 30, 2019 2:13 am
aluigi wrote: The script may not work correctly in reimport mode for various reasons (compression, CRC, usage of arrays [that should work anyway] and so on)
You could not fix it so that it worked in reimport mode?
aluigi
Site Admin
Posts: 12984 Joined: Wed Jul 30, 2014 9:32 pm
Post
by aluigi » Mon Sep 30, 2019 6:23 am
Exactly, no fix.