Jump to content

VFS creation


Csimbi

Recommended Posts

Howdy,

new here, this is my first post.

I am trying to figure out which VFS tool to use and how - for UFO Afterlight.

I tried two tools from sigget - the commadn line and the TC plugin - I could not create a working MOD with either one of those.

Then I thought I have added something wrong to the txt files during editing - I started leaving them out one by one. Nothing. So I downloaded an existing MOD to try if my mod pack is ok. I picked the "no Ute" mod.

I put nohut_mod.vfs to the program dir, and tada: mod works.

I extract the no Ute mod, and pack it again using my .bat file, and it does not work.

The content of my .bat file is:

@ECHO OFF
REM Parameter 1: VFS file, e.g. mymod.vfs
REM Parameter 2: source directory, e.g. mymodfiles
if exist %1 del %1
vfstool.exe mk %1 4096 7000 64 1
vfstool.exe in %1 %2

The command line I use is:

vfsc.bat D:\UFOAL\csimbi.vfs D:\Gamedata\CSIMBI

I get a ~122k file - which does not work.

Tried to pack it with the TC packer, but it does not work with that one either.

The file sizes are different from the "no Ute" mod.

So, I have to ask: how to do this properly in order to get it working?

 

***Edit

Oh, BTW. My directory layout is (just examples so You know I am using the right directories):

Game:

D:\UFOAL\gamedata.vfs

MOD files:

D:\Gamedata\CSIMBI\units\configs\character.txt

Link to comment
Share on other sites

Check this topic. ShadoWarrior's modding guide should provide you the answers you need I think?

 

Oh, and welcome to the boards! :(

Thanks.

It seems that the solution has been posted in the "no Ute" mod thread (Altar forums): the mod file name must include the word mod either at the beginning or at the end of the file name.

I changed it to csimbi_mod.vfs and it works like a charm.

 

BTW:

I found the official VFS tool - it seems to be way better than the custom tools...

THis tool also creates a .ht file in the dir from which the tools is executed (e.g. current dir). I don't know the purpose of those .ht files, however the mods seem to work without them.

If anyone is interested, the batch file I use for the official VFS tool is:

@ECHO OFF
REM Parameter 1: VFS file, e.g. mymod.vfs
REM Parameter 2: source directory, e.g. mymodfiles
if exist %1 del %1
ufovfs.exe c %1
ufovfs.exe n %1 "UFO: Afterlight v1.4"
ufovfs.exe a -d -5 -z %1 %2

or, one could change it to this so You do not need to worry about file extension and including the mod word:

@ECHO OFF
REM Parameter 1: VFS file, e.g. mymod - omit the .vfs!!!
REM Parameter 2: source directory, e.g. mymodfiles
if exist %1_mod.vfs del %1_mod.vfs
ufovfs.exe c %1_mod.vfs
ufovfs.exe n %1_mod.vfs "UFO: Afterlight v1.4"
ufovfs.exe a -d -5 -z %1_mod.vfs %2

 

 

***Edit

This makes it a guide now, right?

Should be re-factored.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...