Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Metro Last Light vfs file

The Original Forum. Game archives, full of resources. How to open them? Get help here.
User avatar
FinalBlast
advanced
Posts: 52
Joined: Mon Dec 28, 2009 6:35 pm
Location: Bulgaria
Has thanked: 22 times
Been thanked: 5 times
Contact:

Metro Last Light vfs file

Post by FinalBlast »

The code for 2033 does not work, this time it's .vfx not .vfi, I have provided a cut of the 1 gb .vfs0 and the .vfx files

http://www.sendspace.com/file/jwc512
michalss
Moderator
Posts: 954
Joined: Sun Mar 27, 2011 8:42 pm
Has thanked: 10 times
Been thanked: 161 times

Re: Metro Last Light vfs file

Post by michalss »

Files are compressed and encrypted as well, not easy task!!
Quick BMS Editor GUI - simple easy to use
Goto : viewtopic.php?uid=34229&f=29&t=6797&start=0

Downloads from DropBox : https://dl.dropboxusercontent.com/u/
User avatar
FinalBlast
advanced
Posts: 52
Joined: Mon Dec 28, 2009 6:35 pm
Location: Bulgaria
Has thanked: 22 times
Been thanked: 5 times
Contact:

Re: Metro Last Light vfs file

Post by FinalBlast »

michalss wrote:Files are compressed and encrypted as well, not easy task!!
Well I thought it'd be a simple change of code from the previous game extractor, but I guess it must be much more difficult than last time

viewtopic.php?f=10&p=36125 <--- previous game "Metro 2033"
hhrhhr
advanced
Posts: 62
Joined: Thu Mar 18, 2010 7:02 am
Has thanked: 1 time
Been thanked: 20 times

Re: Metro Last Light vfs file

Post by hhrhhr »

vfx structure:

Code: Select all

// header
int ver1; // 0x1
int ver2; // 0x1 - PC, 0x2 - PS3
char hash[16]; // crc or timestamp
long archives_count; // count of .vfs files
long records_count; // count of all file records in .vfx
long records_count2; // only in PS3 version

// archive list
for (i = 0, i < archives_count; i++) {
    string filename; // zero-ended (content.vfs0, motions.vfs0, ...)
    long size;
}

// records list
for (i = 0, i < records_count; i++) {
    short type;

    // if type > 0 then this is a directory
    short entries_num;
    long start_idx;
    string path; // zero-ended xored directory name, 1-st byte is lenght, 2-nd byte is xor base

    // if type == 0 then this is a fiile
    short vfs_idx;
    long offset; // absolute
    long unpacked_size;
    long packed_size;
    string filename; // xored filename, 1-st byte is lenght, 2-nd byte is xor base
}

// second records list (PS3)
for (i = 0, i < records_count2; i++) {
    short num1; // 0x00, ???
    short vfs_index;
    long offset; // absolute
    long unpacked_size;
    long packed_size;
    long num2; // ???
}
Last edited by hhrhhr on Fri May 17, 2013 11:02 pm, edited 1 time in total.
vitoci
beginner
Posts: 21
Joined: Thu Nov 10, 2011 7:24 pm
Has thanked: 1 time
Been thanked: 1 time

Re: Metro Last Light vfs file

Post by vitoci »

so far all I can do is extract the audio, effects and soundtrack, all audio .ogg.
The free tool is the Dragon Unpacker 5
http://sourceforge.net/projects/dragonu ... t/download
File> hyperripper> Formats> ogg> search sounds.vfs0

the question is: really are encrypted files .vfs???
hhrhhr
advanced
Posts: 62
Joined: Thu Mar 18, 2010 7:02 am
Has thanked: 1 time
Been thanked: 20 times

Re: Metro Last Light vfs file

Post by hhrhhr »

vitoci wrote:the question is: really are encrypted files .vfs???
no, it is LZ-like compression. see viewtopic.php?f=21&t=4244
turkgamer
advanced
Posts: 66
Joined: Sun Oct 02, 2011 6:16 pm
Has thanked: 5 times
Been thanked: 7 times

Re: Metro Last Light vfs file

Post by turkgamer »

How can extract patch.vfs0 & patch.vfx0 and content.vfs0 & content.vfx ? Which archive contains localization files?

Image
vitoci
beginner
Posts: 21
Joined: Thu Nov 10, 2011 7:24 pm
Has thanked: 1 time
Been thanked: 1 time

Re: Metro Last Light vfs file

Post by vitoci »

turkgamer wrote:Which archive contains localization files?
content.vsf0 contains localization files
hhrhhr
advanced
Posts: 62
Joined: Thu Mar 18, 2010 7:02 am
Has thanked: 1 time
Been thanked: 20 times

Re: Metro Last Light vfs file

Post by hhrhhr »

Code: Select all

original:
content.vfs0
offset     packed  unpacked       name
1296960    814820    387309  stable_cz.lng
1684269   1147568    557990  stable_de.lng
2242259   1057097    517944  stable_es.lng
2760203   1114129    534492  stable_fr.lng
3294695   1088813    530555  stable_it.lng
3825250    853601    385543  stable_nl.lng
4210793    825441    384759  stable_pl.lng
4595552   1029047    533181  stable_ru.lng
5128733   1069656    519116  stable_us.lng

after patch:
patch.vfs0
offset     packed  unpacked       name
1405836    815414    387680  stable_cz.lng
1793516   1148185    558271  stable_de.lng
2351787   1057701    518420  stable_es.lng
2870207   1114728    535131  stable_fr.lng
3405338   1089406    530874  stable_it.lng
3936212    854179    385955  stable_nl.lng
4322167    826039    384916  stable_pl.lng
4707083   1029635    533417  stable_ru.lng
5240500   1070967    519779  stable_us.lng
User avatar
Haoose
mega-veteran
mega-veteran
Posts: 280
Joined: Tue Mar 01, 2011 9:34 pm
Has thanked: 70 times
Been thanked: 193 times
Contact:

Re: Metro Last Light vfs file

Post by Haoose »

-= GP-team =-
Image
turkgamer
advanced
Posts: 66
Joined: Sun Oct 02, 2011 6:16 pm
Has thanked: 5 times
Been thanked: 7 times

Re: Metro Last Light vfs file

Post by turkgamer »

Haoose wrote:Unpacker
http://rusfolder.com/36430011
It doesn't works. When i drag & drop "content.vfs0" to the unpackerLL.exe, i see this screen :
Image
SanGat
ultra-n00b
Posts: 5
Joined: Sat Apr 07, 2012 4:56 pm
Has thanked: 1 time
Been thanked: 2 times

Re: Metro Last Light vfs file

Post by SanGat »

turkgamer wrote:
Haoose wrote:Unpacker
http://rusfolder.com/36430011
It doesn't works. When i drag & drop "content.vfs0" to the unpackerLL.exe, i see this screen :
Image
copy unpackerLL.exe to the game folder and then run it (without drag & drop).
turkgamer
advanced
Posts: 66
Joined: Sun Oct 02, 2011 6:16 pm
Has thanked: 5 times
Been thanked: 7 times

Re: Metro Last Light vfs file

Post by turkgamer »

How can i repack content.vfs0 ?

Thanks.
TheMask85
veteran
Posts: 80
Joined: Sun May 19, 2013 12:55 am
Has thanked: 84 times
Been thanked: 2 times

Re: Metro Last Light vfs file

Post by TheMask85 »

thank you very much for the unpacker.
i'm just curious if there's a way to get the
dynamic mesh files such as humans/monsters/animals etc.
to load up in max/maya/blender/noesis or such.

the "old" tools only seem to work with static props only. and the map files.
http://code.google.com/p/metro2033-tools/downloads/list
dynamic mesh models let 3dsmax (2011/2012) crash.
turkgamer
advanced
Posts: 66
Joined: Sun Oct 02, 2011 6:16 pm
Has thanked: 5 times
Been thanked: 7 times

Re: Metro Last Light vfs file

Post by turkgamer »

I need content.vf0 packer for translation :( Please someone help me!
Post Reply