Hello.
I'm having a slight issue with a segmentation fault that I seem not to be able to track down.
nightly 2018-05-10 20:33
This item is taken from Dioxine's X-Piratez mod.
I have changed it to use it with FMP 2.0b.
- type: STR_AUTO_AXE
requires:
- STR_AUTO_AXE
size: 0.6
costSell: 32000
weight: 16
bigSprite: 411
floorSprite: 253
handSprite: 742
bulletSprite: 5
fireSound: 108
hitSound: 39
hitAnimation: 0
power: 120
damageType: 7
accuracyAuto: 100
tuAuto: 16
flatRate: true
clipSize: -1
battleType: 1
twoHanded: true
invWidth: 2
invHeight: 3
armor: 30
maxRange: 1
bulletSpeed: 50
autoShots: 4
attraction: 6
listOrder: 1909
WHAT I DO
Start up OpenXCom, with mods.
Go into NEW BATTLE, equip my soldiers and start the battle.
WHAT HAPPENS
I have the item in my hand. Everything is fine.
I move one tile forward (down on the ramp). Everything is fine.
I try to turn. I get a segmentation fault.
The game tells me something is missing from a mod.
Unfortunately, the openxcom.log file is unable to tell me more. It just states the above sentence, and that is all.
I also try to throw a primed smoke grenade. As long as the soldier doesn't turn, all is well.
But when I try to throw the smoke inside the craft (and the soldier needs to turn) I get the segmentation fault.
WHAT I DID NEXT
First: Removed every mod and added them back - one by one, starting with FMP 2.0b - and chose NEW BATTLE with an auto-cannon and smoke grenades.
All mods loaded fine, and NEW BATTLE gave no crashes.
Checked extraSprites for BIGOB, FLOOROB and HANDOB. Numbers for bigSprite, floorSprite and handSprite are all correct. And graphics files are in place.
Checked ExtraSounds for soundfile. Number for fireSound is correct. Wav-file in place in correct folder.
Checked FMP-files for used hitSound and hitAnimation values. Changed them to same as Machete/Knife.
Tried to include a "costBuy: 0" line. Removed it again. It should not matter. And it didn't.
Tried damageType: 1 and battleType: 3. Changed back to 7 and 1 after confirming it didn't help.
Everything is ok when loading the game. This new "Chrys-Ax" of mine (Auto-Ax in X-Piratez) has a nice UFOPaedia article. I can research and manufacture it (if I have the necessary prerequisites to do so).
Would be nice if someone could tell me where I should look next.
I'm sure (well, as sure as one can be messing around in rul-files) that it is only this item that is causing the problem.
But why?
What is missing?
:(