Author Topic: [Solved] [BUG] Manufactured soldier names  (Read 373 times)

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 7799
    • View Profile
[Solved] [BUG] Manufactured soldier names
« on: September 06, 2022, 06:35:41 pm »
Quote from: Kato
X-Piratez, OXCE 7.7
When trying to manufacture a Theban clone, they got national names from the nam file. But they must not get personal names since "spawnedSoldier/name" is defined in manufacture rules (STR_THEBAN_ASSAULT_CLONE project).

To reproduce this, please turn the mod attached on. It contains national names and modified manufacture rules (added "spawnedSoldier/nationality"). Setting nationality for clones is necessary, because they must have Theban flag in the personal file ("Soldiers" screen). So fix needed here: when both name and nationality are defined in manufacture, soldier must come with that pre-set name ("Клон-штурмовик" in this case).

Mod with national names:
https://drive.google.com/file/d/1vomxrjp8oBOuq7Sww35kZ3psOHAcK9cQ/view?usp=sharing

Save file with started manufacture (5 clones at base 404):
https://drive.google.com/file/d/1TbeDcWigaTyT-0_pnMBQNgrfc8IxqnPN/view?usp=sharing
« Last Edit: September 08, 2022, 08:20:58 pm by Meridian »

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 7799
    • View Profile
Re: [BUG] Manufactured soldier names
« Reply #1 on: September 07, 2022, 12:06:34 pm »
Define the name under:

Code: [Select]
spawnedPersonName:

instead of

Code: [Select]
spawnedSoldier:


For example:

Code: [Select]
manufacture:
  - name: STR_THEBAN_ASSAULT_CLONE
    spawnedPersonName: Клон-штурмовик
    spawnedSoldier:
        nationality: 20
        rank: 1
        armor: STR_PEASANT_ARMOR_BIOAQUA_EVA_UC
        initialStats:
          tu: 70
          stamina: 100
          health: 45
          bravery: 90
...