Final Fantasy X/X-2 HD Remaster(PC) - .vbf

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Final Fantasy X/X-2 HD Remaster(PC) - .vbf

Post by AnonBaiter »

So there's this game that was released yesterday(yeah it's shit but that's not the point) and here's proof why I need a script to extract this file:
https://mega.nz/#!0V9ylZKI!kTiMUiEQB3cUKbN-gZBDviUPRFgQM3KwCzJ6YMy043Y

It starts with the "SRYK" header.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Final Fantasy X/X-2 HD Remaster(PC) - .vbf

Post by aluigi »

AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: Final Fantasy X/X-2 HD Remaster(PC) - .vbf

Post by AnonBaiter »

Strange. Some of the extracted files won`t go beyond 64kb. I can provide more samples if you want.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Final Fantasy X/X-2 HD Remaster(PC) - .vbf

Post by aluigi »

What matters is the coverage value.
If it's over 95% then it's all correct.
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: Final Fantasy X/X-2 HD Remaster(PC) - .vbf

Post by AnonBaiter »

I see.. maybe I was being a little too impatient...
Panzerdroid
Posts: 66
Joined: Sun Aug 30, 2015 12:51 pm

Re: Final Fantasy X/X-2 HD Remaster(PC) - .vbf

Post by Panzerdroid »

aluigi wrote:What matters is the coverage value.
If it's over 95% then it's all correct.

All files larger than 64k, are extracted for only first 64Kb. The game has chunks structure, every file splittet to 64K (or, if file is smaller - to smaller chunks), so even movies of hundred megs extracted as 64KB ones.

Could you please fix the script to overcome this issue?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Final Fantasy X/X-2 HD Remaster(PC) - .vbf

Post by aluigi »

You have to upload another file because the one I have is 100% coverage without chunks.
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: Final Fantasy X/X-2 HD Remaster(PC) - .vbf

Post by AnonBaiter »

aluigi wrote:You have to upload another file because the one I have is 100% coverage without chunks.

Now that you mention it...
https://mega.nz/#!pE1XlBjK!kHyTYgPfmD-ooi-l4023PgyKP9YsQKKiTYwB2pWnt5c
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Final Fantasy X/X-2 HD Remaster(PC) - .vbf

Post by aluigi »

I need at least 10Mb of FFX_Data.vbf
Anyway there are no references about chunks in the TOC so I guess that it's something related to the compressed files but there is nothing that specifies if a file is compressed or not... just guessing.
Panzerdroid
Posts: 66
Joined: Sun Aug 30, 2015 12:51 pm

Re: Final Fantasy X/X-2 HD Remaster(PC) - .vbf

Post by Panzerdroid »

BTW the extraction crashes on big FFX_Data.vbf file (but passes FFX2_Data.vbf)


- error in src\xalloc.c line 617: xdbg_malloc()

Error: memory allocation problem
Not enough storage is available to process this command.

press RETURN to quit

The last file listed is
000000038b27c341 1801795517 metamenu/gamedata/ps3data/video/us/sidestory.webm


Here's the first 10 Mbs of FFX_Data.vbf
http://www60.zippyshare.com/v/g0FiiWj3/file.html
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Final Fantasy X/X-2 HD Remaster(PC) - .vbf

Post by aluigi »

Good.
I have updated my script just in case.
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: Final Fantasy X/X-2 HD Remaster(PC) - .vbf

Post by AnonBaiter »

Well, I tested a .vbf file with a updated script and the extracting process was all fine and dandy until this appeared:

Code: Select all

Error: incomplete input file 0: E:\Games\Final Fantasy X X-2 HD Remaster\data\metamenu.vbf
       Can't read 43075 bytes from offset 014b43bb.
       Anyway don't worry, it's possible that the BMS script has been written
       to exit in this way if it's reached the end of the archive so check it
       or contact its author or verify that all the files have been extracted.
       Please check the following coverage information to know if it's ok.

  coverage file 0   155%   33703693   21709755

Last script line before the error or that produced the error:
  48  clog MEMORY_FILE OFFSET CHUNK_SIZE 0x10000

I'm led to believe if this is an error, but is this really normal in the files themselves?
But again, that is only in the metamenu.vbf file so I have yet the rest of the .vbf files.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Final Fantasy X/X-2 HD Remaster(PC) - .vbf

Post by aluigi »

0.2.1
replaced != with u< for checking the size of the generated file.
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: Final Fantasy X/X-2 HD Remaster(PC) - .vbf

Post by AnonBaiter »

Okay, it works now.

EDIT: Well...

Code: Select all

- error in src\xalloc.c line 617: xdbg_malloc()

Error: memory allocation problem
       Espa�o insuficiente de armazenamento para processar este comando.


press ENTER to quit
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: Final Fantasy X/X-2 HD Remaster(PC) - .vbf

Post by AnonBaiter »

Umm... can anyone look into this?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Final Fantasy X/X-2 HD Remaster(PC) - .vbf

Post by aluigi »

Do you have any luck with the VBFExtract tool linked some posts before?
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: Final Fantasy X/X-2 HD Remaster(PC) - .vbf

Post by AnonBaiter »

Yes. There was also another tool that sucessfully extracted these .vbf files. Said tool was just called "vbf", no "extract", no "tool", just that name.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Final Fantasy X/X-2 HD Remaster(PC) - .vbf

Post by aluigi »

Do you have an official link for reference?
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: Final Fantasy X/X-2 HD Remaster(PC) - .vbf

Post by AnonBaiter »

It's in the same link happyend posted, and I mean the "xentax" one. Just look at the second page of that thread.