VFS creation


  • Please log in to reply
2 replies to this topic

#1 Csimbi

Csimbi

    Squaddie

  • Members
  • Pip
  • 34 posts

Posted 22 February 2007 - 09:00 PM

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

#2 Slaughter

Slaughter

    Colonel

  • Admin
  • PipPipPipPipPipPip
  • 6,409 posts
  • Gender:Male
  • Location:Norway, Oslo

Posted 22 February 2007 - 09:11 PM

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

Oh, and welcome to the boards! :(


#3 Csimbi

Csimbi

    Squaddie

  • Members
  • Pip
  • 34 posts

Posted 22 February 2007 - 09:29 PM

View PostSlaughter, on 22nd February 2007, 11:11pm, said:

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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users