UFO:AFTERMATH VFS TOOL v1.2

this is the third release of vfstool. today martin of altar interactive revealed that the game has support for an additional vfs, called cfg.vfs, whose contents will override that of gamedata.vfs. to use this mod developers need to create fresh vfs files not just add to the existing files. this version of vfstool therefor comes with a new command, mk, that does just this.


usage examples:

1) to extract the entire gamedata.vfs into a directory called 'unpacked':

    mkdir unpacked
    vfstool e gamedata.vfs unpacked

2) adding files into a vfs volume:

make a new directory, we'll call that one 'changed', insert the files that you wish to insert into this directory. remember to copy the diretory structure aswell. for example if you'd like a faster helicopter copy the file 'unpacked\strategic\configs\geoscape\config.txt' into 'changed\strategic\configs\geoscape\config.txt'.

when you've changed the speed of the helicopter to something more appropriate ;) type this:

vfstool in gamedata.vfs changed

and there you go!

3) savegame editing isnt any harder, create a dir, extract into the dir, change the files and import. there is a special command for importing into savegames, cause savegames arent compressed like the other vfs files, this command is called 'sin', after you imported your files you recalc the md5-sum with the 'md5' command.

recap:

mkdir unpacked
vfstool e mysavegame.vfs unpacked
(edit your files)
vfstool sin mysavegame.vfs unpacked
vfstool md5 mysavegame

4) create a new vfs and fill it with custom data stored in the directory 'mycontents'

vfstool mk test.vfs 4096 7000 64 1
vfstool in test.vfs mycontents



history:

1.2
added the mk option for creating fresh vfs volumes.

1.1
fixed bug sometimes occuring when adding new files (hopefully).

1.0
first release



2003-11-13
sigget@hotbrev.com
http://www.geocities.com/sigget2003