Join also our Discord channel! Click here.

Death To Spies series - VFS file format

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
User avatar
Posts: 127
Joined: Sun Jun 08, 2008 10:32 pm
Location: Developers Country
Has thanked: 1 time
Been thanked: 30 times

Death To Spies series - VFS file format

Post by asmxtx » Tue Aug 09, 2011 4:13 am

This is an interesting format because these files have a tree-like directory structure which needs to develop a more complicated algorithm to reconstruct the file structure.
There exists an extractor already but it runs with .net stuff installed only and therefore I felt I had to get involved with this.

Code: Select all

VFS file

Bytes	Content	Description

4		VFSR	Magic
4		2		Version (?)
4		114h	Length of Header
100h			Description
				Number of entries
4				?
xxxx			Data, ZLIB-compressed/stored
xxxx			Table, ZLIB-compressed
4				Uncompressed table length
4				Compressed table length

Decompressed Table

Bytes	Description

4		Data offset
4		Compressed size
4		Uncompressed size
4		Index to parent directory, -1 = root
4		Index of current directory or -1 (file)
2		1 		= entry is a directory
		2		= entry is a file
2		Compression flag
		0ffh	= directory
		0		= uncompressed
		1		= ZLIB compressed
4		Length of name including trailing zero
4		CRC/Garbage
x		File-/Directory name

Post Reply