aliens

Author Topic: CRASH WHEN MINDCONTROLLING LOBSTER MAN  (Read 1998 times)

Offline SIMON BAILIE

  • Commander
  • *****
  • Posts: 676
    • View Profile
CRASH WHEN MINDCONTROLLING LOBSTER MAN
« 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.

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9098
    • View Profile
Re: CRASH WHEN MINDCONTROLLING LOBSTER MAN
« Reply #1 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.

Offline SIMON BAILIE

  • Commander
  • *****
  • Posts: 676
    • View Profile
Re: CRASH WHEN MINDCONTROLLING LOBSTER MAN
« Reply #2 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.

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9098
    • View Profile
Re: CRASH WHEN MINDCONTROLLING LOBSTER MAN
« Reply #3 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...

Offline SIMON BAILIE

  • Commander
  • *****
  • Posts: 676
    • View Profile
Re: CRASH WHEN MINDCONTROLLING LOBSTER MAN
« Reply #4 on: October 01, 2023, 10:02:14 pm »
Thanks, the mod works properly now.