Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Insomniac34 on May 31, 2008, 06:08:46 pm

Title: editing weapon properties
Post by: Insomniac34 on May 31, 2008, 06:08:46 pm
hello! I have been trying to edit the speed of cyclops torpedos in Freespace Open, and I was wondering how you go about doing that? I tried to edit the velocity in the Root_fs2 file in the main directory, but whenever I edit ANYTHING in that file the game crashes. Is there a weapons.tbl? If so how do I find it? The only tbl file I can find is ships.tbl.

Thanks!!!
Title: Re: editing weapon properties
Post by: blowfish on May 31, 2008, 07:08:10 pm
There is a weapons.tbl.  You can use something like Maja (look around for it) to extract it from the VP.  When its extracted, put it in MyFreespaceFolder/data/tables.  Then you can edit it.  Attempting to edit VPs is generally considered a bad idea, as there are certain bytes that tell the parser how long each file is, so if you add or remove characters, it screws up.

EDIT: Alternately, you could just use a TBM (modular table) to change the speed.  Call it something like fastcyclops-wep.tbm and put it in MyFreespaceFolder/data/tables.  This is a bit easier.  It should be a text file that looks like this:

Code: [Select]
#Secondary Weapons

$Name: Cyclops
$Velocity: 500

#End
Title: Re: editing weapon properties
Post by: Wanderer on May 31, 2008, 11:54:28 pm
Also its equally bad idea to place table files (or anything for that matter) into your main freespace data directory. Use mod directories. That is place the tbm (or tbl) to another directory like MyFreespaceFolder/My_mod/data/tables and then use the layncher to select that 'mod'.