OpenXcom Forum

OpenXcom => Troubleshooting => Topic started by: SIMON BAILIE on October 01, 2023, 08:15:58 pm

Title: CRASH WHEN MINDCONTROLLING LOBSTER MAN
Post by: SIMON BAILIE on October 01, 2023, 08:15:58 pm
In my current TFTD game, I get a crash when I try to access lobsterman inventory when I have him mind controlled-see attached.
Title: Re: CRASH WHEN MINDCONTROLLING LOBSTER MAN
Post by: Meridian on October 01, 2023, 08:26:02 pm
Start turning off mods one by one, and when it starts working, report to the author of the last turned off mod.
Title: Re: CRASH WHEN MINDCONTROLLING LOBSTER MAN
Post by: SIMON BAILIE on October 01, 2023, 08:57:26 pm
Thanks, I discovered which mod was causing the problem, it was my own mod SIMON'S XCOM2 TWEAKS, however I'm don't know how to fix it-attached if somebody could have a look at it please.
Title: Re: CRASH WHEN MINDCONTROLLING LOBSTER MAN
Post by: Meridian on October 01, 2023, 09:34:49 pm
In

Code: [Select]
  - type: STR_LOBSTERMAN_MELEE_WEAPON
    specialUseEmptyHand: true
    specialUseEmptyHandShow: true
    bigSprite: 70
    meleeSound: 42
    strengthApplied: true
    damageType: 7
    accuracyMelee: 100
    tuMelee: 15
    battleType: 3
    fixedWeapon: true
    invWidth: 2
    invHeight: 3
    clipSize: -1
    recover: false

1/ either delete `bigSprite: 70`
2/ or change it to `bigSprite: { mod: xcom2, index: 70 }`
3/ or remove the entire STR_LOBSTERMAN_MELEE_WEAPON entry, since it is identical to vanilla xcom2

In general, don't copy stuff from parent mods, unless you have a good reason to do so.
It is enough (and preferred) to only write the changes.

PS: some other items have the same issue, you may need to change them too...
Title: Re: CRASH WHEN MINDCONTROLLING LOBSTER MAN
Post by: SIMON BAILIE on October 01, 2023, 10:02:14 pm
Thanks, the mod works properly now.