Author Topic: How do you get missionweight correct. Please provide correct sample.  (Read 1536 times)

wcho035

  • Guest
Hi, I wish to have missionweight by certain alien races starting later in the year.

This is my original format.

    missionWeights:
      6:
        STR_ALIEN_RESEARCHSECTOID: 33
        STR_ALIEN_RESEARCHSNAKEMAN: 33
        STR_ALIEN_RESEARCHFLOATER: 34
      9:
        STR_ALIEN_RESEARCHSECTOID: 33
        STR_ALIEN_RESEARCHSNAKEMAN: 23
        STR_ALIEN_RESEARCHFLOATER: 24
        STR_ALIEN_RESEARCHMUTON: 20
      15:
        STR_ALIEN_RESEARCHSECTOID: 23
        STR_ALIEN_RESEARCHSNAKEMAN: 23
        STR_ALIEN_RESEARCHFLOATER: 24
        STR_ALIEN_RESEARCHMUTON: 20
        STR_ALIEN_RESEARCHETHEREAL: 10   

It is incorrect.

Can a correct sample be provided?

Alien race initially start at Month 6, then 9 and lastly 15

Thank you.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8598
    • View Profile
Re: How do you get missionweight correct. Please provide correct sample.
« Reply #1 on: January 02, 2020, 02:41:03 pm »
There's not enough information provided.

We don't know if these mission weights are defined in regions ruleset, or alien mission ruleset, or mission scripts ruleset or somewhere else.

wcho035

  • Guest
Re: How do you get missionweight correct. Please provide correct sample.
« Reply #2 on: January 02, 2020, 02:50:09 pm »
Hi Meridian, they are from missionscript.

I should have provided the full details, sorry.

  - type: reconResearch
    missionWeights:
      6:
        STR_ALIEN_RESEARCHSECTOID: 33
        STR_ALIEN_RESEARCHSNAKEMAN: 33
        STR_ALIEN_RESEARCHFLOATER: 34
      9:
        STR_ALIEN_RESEARCHSECTOID: 33
        STR_ALIEN_RESEARCHSNAKEMAN: 23
        STR_ALIEN_RESEARCHFLOATER: 24
        STR_ALIEN_RESEARCHMUTON: 20
      15:
        STR_ALIEN_RESEARCHSECTOID: 23
        STR_ALIEN_RESEARCHSNAKEMAN: 23
        STR_ALIEN_RESEARCHFLOATER: 24
        STR_ALIEN_RESEARCHMUTON: 20
        STR_ALIEN_RESEARCHETHEREAL: 10         
    firstMonth: 6
    varName: continueResearch
    maxRuns: -1
    executionOdds: 60      

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8598
    • View Profile
Re: How do you get missionweight correct. Please provide correct sample.
« Reply #3 on: January 02, 2020, 03:01:30 pm »
in mission script, with "firstMonth: 6", it is correct

wcho035

  • Guest
Re: How do you get missionweight correct. Please provide correct sample.
« Reply #4 on: January 02, 2020, 03:14:10 pm »
The missionweight syntax legal but incorrect.

What is the correct format? If I want muton to appear in month 9 and ETHEREAL in month 15?  With cumulative weight distribution for the other races changed as well? Base of month and appearance?

Can a correct version be provided for missionweight?


Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8598
    • View Profile
Re: How do you get missionweight correct. Please provide correct sample.
« Reply #5 on: January 02, 2020, 03:16:37 pm »
Your example is correct.

I didn't know it was from mission script and that you defined firstMonth, when I said it was incorrect.
« Last Edit: January 02, 2020, 03:24:54 pm by Meridian »

wcho035

  • Guest
Re: How do you get missionweight correct. Please provide correct sample.
« Reply #6 on: January 02, 2020, 03:18:10 pm »
Sorry. Should have been more accurate. My fault. Thank you Meridian as always.