Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: dragonsniper on January 21, 2010, 08:32:16 pm

Title: Weapon Table problem
Post by: dragonsniper on January 21, 2010, 08:32:16 pm
I'm having some trouble figuring a weapon table related problem out. So, I have my table, everything works and all, and lower down there is this
Quote
$Impact Explosion: none
I would like a certain effect (let's say an explosion .ani effect) to play on a weapon impact. So I put the name of the .ani file in place of "none" and try it ingame, but it doesn't seem to work (the chosen effect doesn't play...) I also tried editing the weapons_expl.tbl by adding the explosion names into that, then changing the "$Impact Explosions" field, but that didn't seem to solve it either. Any help would be appreciated.
Title: Re: Weapon Table problem
Post by: The E on January 21, 2010, 08:37:14 pm
http://www.hard-light.net/wiki/index.php/Weapons.tbl#.24Impact_Explosion:

Says that the explosion needs to be defined in Weapon_expl.tbl

Also, please run a debug build and post the log, with that weapon firing.
Title: Re: Weapon Table problem
Post by: dragonsniper on January 21, 2010, 08:48:55 pm
Says that the explosion needs to be defined in Weapon_expl.tbl

Also, please run a debug build and post the log, with that weapon firing.
I've read through that, and did what it said, however it didn't seem to make any difference. As for the debug build, I'll get it as soon as possible.
Title: Re: Weapon Table problem
Post by: Fury on January 21, 2010, 11:18:57 pm
Did you also set $Impact Explosion Radius?
Title: Re: Weapon Table problem
Post by: Spoon on January 22, 2010, 03:42:46 am
If you haven't changed the name of the weapon it is possible your settings are being overwritten in mv_adveffects-wep.tbm
Title: Re: Weapon Table problem
Post by: dragonsniper on January 22, 2010, 06:19:03 am
Did you also set $Impact Explosion Radius?
That appears to have fixed it. Thanks.
Title: Re: Weapon Table problem
Post by: dragonsniper on January 23, 2010, 03:54:48 pm
One more question regarding tables. Is it possible (in a not so painful manner) to remove the FS1 weapons so that I only have my own custom weapons appear in the weapons loadout section?
Title: Re: Weapon Table problem
Post by: The E on January 23, 2010, 04:01:50 pm
You would need to have a weapons.tbl in your mod folder (or rather, the highest priority location you can find). That tbl needs to contain all weapons you want in there, because deleting entries is not easily possible when using tbms.
Title: Re: Weapon Table problem
Post by: dragonsniper on January 23, 2010, 04:08:43 pm
So in my case, take all the weapons I have done, and throw them into one xxx-shp.tbm file?
Title: Re: Weapon Table problem
Post by: The E on January 23, 2010, 04:14:32 pm
No. Take all the weapons you want, and put them into a weapons.tbl file in your mod directory.

Oh, and read the wiki page, please? If you put weapons into a -shp.tbm you will get a very confused parser.
Title: Re: Weapon Table problem
Post by: dragonsniper on January 23, 2010, 04:19:15 pm
Quote
No. Take all the weapons you want, and put them into a weapons.tbl file in your mod directory.
Ok, thanks. I'll give this a try.

EDIT: That seemed to do it. Thanks for the help.