aliens

Author Topic: [FIXED] Vanilla civllians spawning, why? [OXC]  (Read 1372 times)

Offline robin

  • Commander
  • *****
  • Posts: 1213
  • ULTIMATE ROOKIE
    • View Profile
[FIXED] Vanilla civllians spawning, why? [OXC]
« on: February 19, 2023, 10:14:23 am »
Vanilla civilians are spawning but they should not.

Could it be because there aren't enough civilian spawn points on the map, so to fill the "16" quota it spawns regular civilians?

terrains:
  - &WAREFACTORY_SMALL
    name: WAREFACTORY_SMALL
    civilianTypes:
      - STR_CIV_SCIENTIST_M
      - STR_CIV_SCIENTIST_F
    mapDataSets: *mapDataSetsWarehouse
    [...]
  - name: WAREFACTORY_LARGE
    refNode: *WAREFACTORY_SMALL
    script: WAREFACTORY_LARGE
       
alienDeployments:
  - &STR_DROP_MISSION_LARGE
    type: STR_DROP_MISSION_LARGE
    [...]
    civilians: 16
    [...]
  - type: STR_DROP_MISSION_LARGE_INDUSTRIAL
    refNode: *STR_DROP_MISSION_LARGE
    terrains:
      - WAREHOUSE_LARGE
      - WAREFACTORY_LARGE
      - WAREMTL_LARGE
« Last Edit: March 11, 2023, 07:17:21 pm by Meridian »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8616
    • View Profile
Re: Vanilla civllians spawning, why?
« Reply #1 on: February 19, 2023, 11:00:44 am »
Probably a bug/sideeffect of using refNode.

I'll check.

Offline robin

  • Commander
  • *****
  • Posts: 1213
  • ULTIMATE ROOKIE
    • View Profile
Re: Vanilla civllians spawning, why?
« Reply #2 on: February 19, 2023, 12:05:05 pm »
Thanks
I noticed that in language strings, terrains have "MAP_" added to them, so "WAREFACTORY_SMALL" --> "MAP_WAREFACTORY_SMALL".
Maybe this screws the refNode?
Just a wild guess, I don't know it works.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8616
    • View Profile
Re: Vanilla civllians spawning, why?
« Reply #3 on: February 19, 2023, 12:11:31 pm »
I noticed that in language strings, terrains have "MAP_" added to them, so "WAREFACTORY_SMALL" --> "MAP_WAREFACTORY_SMALL".
Maybe this screws the refNode?

No, it's something else, related to source code, hard to explain.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8616
    • View Profile
Re: Vanilla civllians spawning, why?
« Reply #4 on: February 20, 2023, 10:07:26 am »
Found the issue.
It's not even related to refNode, just a quirk in loading civilianTypes.

Reported to OXC devs.

Offline robin

  • Commander
  • *****
  • Posts: 1213
  • ULTIMATE ROOKIE
    • View Profile
Re: Vanilla civllians spawning, why?
« Reply #5 on: February 20, 2023, 11:02:23 pm »
Thank you a lot.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8616
    • View Profile