Ni no Kuni Switch VFS3

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

Ni no Kuni Switch VFS3

Post by wwwklopar »

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

Re: Ni no Kuni Switch VFS3

Post by eaZy »

Just use comtype ZSTD for it
wwwklopar
Posts: 23
Joined: Sat Dec 08, 2018 7:53 pm

Re: Ni no Kuni Switch VFS3

Post by wwwklopar »

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

Re: Ni no Kuni Switch VFS3

Post by aluigi »

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

Re: Ni no Kuni Switch VFS3

Post by psy76 »

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

Re: Ni no Kuni Switch VFS3

Post by aluigi »

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

Re: Ni no Kuni Switch VFS3

Post by psy76 »

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

Re: Ni no Kuni Switch VFS3

Post by aluigi »

Exactly, no fix.