aliens

Author Topic: Problem with live recovery  (Read 3364 times)

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11464
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Problem with live recovery
« on: January 31, 2016, 02:11:55 am »
I'm writing this topic after several hours of trial and error, and still no idea what's wrong. The problem is with recovering live captives.

I made dozens of new races and they all work fine, except for live cultists of all sorts which just won't be recovered from the battlefield. The problem is, I can't see what's the difference between them and other critters.

Here's an example:

Items:
Code: [Select]
  - type: STR_DISCIPLE_OF_DAGON_CORPSE
    name: STR_CORPSE
    size: 0.4
    weight: 40
    bigSprite: 263
    floorSprite: 230
    invWidth: 2
    invHeight: 3
    costThrow:
      energy: 20
    battleType: 11
    armor: 30
    recover: false
  - type: STR_DISCIPLE_OF_DAGON
    size: 5
    recover: true
    liveAlien: true
    costSell: 8000
    listOrder: 14998

research:
Code: [Select]
  - name: STR_DISCIPLE_OF_DAGON
    cost: 50
    points: 10
    needItem: true
    unlocks:
      - STR_CULT_OF_DAGON
      - STR_CULTIST_INTERROGATED
    getOneFree:
      - STR_ALIEN_INFILTRATION
    listOrder: 15500

(no corpse research, because it's not recoverable - we don't recover human corpses)

armors:
Code: [Select]
  - type: DISCIPLE_OF_DAGON_ARMOR
    spriteInv: inventory_DISCIPLE_OF_DAGON
    spriteSheet: DISCIPLE_OF_DAGON.PCK
    corpseBattle:
      - STR_DISCIPLE_OF_DAGON_CORPSE
    visibilityAtDark: 9
    frontArmor: 5
    sideArmor: 5
    rearArmor: 5
    underArmor: 5
    meleeDodge:
      reactions: 0.2
    meleeDodgeBackPenalty: 0.5
    recovery:
      morale:
        moraleCurrent: -0.2
        bravery: 0.2
    damageModifier:
      - 1.0
      - 1.0
      - 1.0
      - 1.0
      - 1.0
      - 1.0
      - 1.0
      - 1.0
      - 0.4
      - 1.0
    loftempsSet: [ 3 ]

units:
Code: [Select]
  - type: STR_DISCIPLE_OF_DAGON
    race: STR_CULT_OF_DAGON
    rank: STR_LIVE_SOLDIER
    stats:
      tu: 55
      stamina: 60
      health: 35
      bravery: 80
      reactions: 20
      firing: 30
      throwing: 35
      strength: 35
      psiStrength: 35
      psiSkill: 0
      melee: 55
    armor: DISCIPLE_OF_DAGON_ARMOR
    standHeight: 22
    kneelHeight: 14
    value: 28
    deathSound: 41
    energyRecovery: 30
    intelligence: 2
    aggression: 2

Can anyone please explain?

Offline Hobbes

  • Commander
  • *****
  • Posts: 2101
  • Infiltration subroutine in progress
    • View Profile
Re: Problem with live recovery
« Reply #1 on: January 31, 2016, 03:02:54 am »
I think you need this on the corpse entry on items
    recoveryPoints: 1

If you leave this value at default (0) the item is not recovered from the battlefield.

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11464
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Problem with live recovery
« Reply #2 on: January 31, 2016, 01:53:37 pm »
Yes, it helped. Thank you!
« Last Edit: January 31, 2016, 02:01:23 pm by Solarius Scorch »

Offline Nord

  • Commander
  • *****
  • Posts: 1643
  • The Gate is open.
    • View Profile
Re: Problem with live recovery
« Reply #3 on: February 28, 2017, 10:57:30 am »
Help lease, i got same issue, but when i make like so:
Code: [Select]
  - type: STR_DISCIPLE_CORPSE
    weight: 30
    bigSprite: 181
    floorSprite: 181
    invWidth: 2
    invHeight: 3
    battleType: 11
    armor: 26
    recoveryPoints: 1
    recover: false
  - type: STR_DISCIPLE
    size: 0.0
    recover: true
    recoveryPoints: 5
    liveAlien: true
    costSell: 100
    listOrder: 7610
...
  - type: DISCIPLE_ARMOR
    allowInv: true
    spriteSheet: DISCIPLE.PCK
    corpseBattle:
      - STR_DISCIPLE_CORPSE
    frontArmor: 5...
I still got useless corpses recovered. How to gain only live enemys? Or where i making an error?

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8628
    • View Profile
Re: Problem with live recovery
« Reply #4 on: March 03, 2017, 11:06:34 am »
Help please, I got the same issue...
I still got useless corpses recovered. How to gain only live enemies? Or where am I making an error?

Ability to recover only live enemies and not their corpses is an OXCE+ feature:
https://github.com/MeridianOXC/OpenXcom/commit/342896cc129886a5b34b81afed610f2827d1f849

If you're using vanilla, it won't work.
« Last Edit: March 03, 2017, 11:08:47 am by Meridian »

Offline Nord

  • Commander
  • *****
  • Posts: 1643
  • The Gate is open.
    • View Profile
Re: Problem with live recovery
« Reply #5 on: March 04, 2017, 09:02:37 am »
Got it. Thanks.