So after extensively and painstakingly modding UFO/EU to my satisfaction and playing it from beginning to end to ensure it works to perfection (*) over the past couple weeks, I've resumed my original TFTD mod. I dropped modding TFTD originally because it was not fully mod-friendly, so I thought I'd give it some time to become more stable. The following issue is probably due to this mod-support issues, but just to be completely sure I figured I'd ask here.
Basically, the game crashes when certain units (in my units.rul) get killed. So far I've encountered this problem with all Coelacanths, Displacers and Deep Ones. The strange thing is I hadn't even edited those units yet (that is, the unit in question appears
exactly the same as the original file, copy/pasted and unedited). I've tested this several times already to be sure.
This is my (as of yet unedited) Deep One:
units:
- type: STR_DEEP_ONE_TERRORIST
race: STR_DEEP_ONE
rank: STR_LIVE_TERRORIST
stats:
tu: 50
stamina: 90
health: 35
bravery: 90
reactions: 55
firing: 50
throwing: 58
strength: 40
psiStrength: 50
psiSkill: 0
melee: 70
armor: DEEP_ONE_ARMOR0
standHeight: 21
kneelHeight: 16
value: 12
deathSound: 56
intelligence: 4
aggression: 2
livingWeapon: true
And this is the original Deep One (Nightly 2015-09-05 06:03):
units:
- type: STR_DEEP_ONE_TERRORIST
race: STR_DEEP_ONE
rank: STR_LIVE_TERRORIST
stats:
tu: 50
stamina: 90
health: 35
bravery: 90
reactions: 55
firing: 50
throwing: 58
strength: 40
psiStrength: 50
psiSkill: 0
melee: 70
armor: DEEP_ONE_ARMOR0
standHeight: 21
kneelHeight: 16
value: 12
deathSound: 56
intelligence: 4
aggression: 2
livingWeapon: true
Took me a while to figure out what was actually causing the crash (I thought it was something missing in the armor.rul at first, but that was not it): if I completely delete my Deep One from my items.rul and test it again on a random battle, then Deep Ones will die without crashing the game. It really makes no sense, considering the unit in question is an
unedited copy/paste of the original.
What's more, I have other units which are actually slightly edited, like Gillmen (which come along Deep Ones, so I can test them together), but I have no problems with those. So the issue must be with the OpenXCom/TFTD engine itself. In short: some units simply cannot be overwritten (without crashing the game), even if the overwriting ruleset is a duplicate of the original.
Any suggestions? Perhaps (I hope!) I'm simply overlooking something terribly stupid.
Thanks
(*) I still have that HWP UFOpedia issue mentioned in my previous post unresolved, though, so any help would be highly appreciated!