aliens

Author Topic: TFTD ranged stun weapons  (Read 3145 times)

Offline Wildfire

  • Squaddie
  • *
  • Posts: 2
    • View Profile
TFTD ranged stun weapons
« on: December 14, 2016, 05:40:46 pm »
was trying to give the Heavy Gauss pistol from the expanded Gauss Arsenal mod stun damage by changing damageType to 6 in the Items.rul file for one of its clips but every time I try to use it on  a mission it CTD with this in the log

Code: [Select]
[14-12-2016_14-11-34] [FATAL] A fatal error has occurred: Segmentation fault. This usually indicates something missing in a mod.
[14-12-2016_14-11-39] [FATAL] OpenXcom has crashed: Segmentation fault. This usually indicates something missing in a mod.
Extra information has been saved to openxcom.log.
If this error was unexpected, please report it to the developers.

Anyone have any clues to the cause?

Offline Nord

  • Commander
  • *****
  • Posts: 1746
  • The Gate is open.
    • View Profile
Re: TFTD ranged stun weapons
« Reply #1 on: December 14, 2016, 06:10:05 pm »
You must add
Code: [Select]
blastradius: 0or specify explosion parameters.

Offline ohartenstein23

  • Commander
  • *****
  • Posts: 1933
  • Flamethrowers fry cyberdisk circuits
    • View Profile
Re: TFTD ranged stun weapons
« Reply #2 on: December 14, 2016, 06:42:17 pm »
Try setting the hitAnimation: and hitSound: to 0 or -1 - explosions have their own animation, and trying to override it with a 'normal' hit animation causes CTD.

Offline chaosshade

  • Colonel
  • ****
  • Posts: 170
  • The Harpy
    • View Profile
Re: TFTD ranged stun weapons
« Reply #3 on: December 14, 2016, 07:29:19 pm »
You can have a normal hit animation/sound for stun-type weapons, but you ABSOLUTELY HAVE to set "blastRadius: 0" on it or it'll CTD all the time.  I had to work that out for the mod I curate.

Offline Wildfire

  • Squaddie
  • *
  • Posts: 2
    • View Profile
Re: TFTD ranged stun weapons
« Reply #4 on: December 15, 2016, 12:27:40 pm »
Thank you it was driving me nuts trying to figure out what was wrong.