OpenXcom Forum

Modding => Help => Topic started by: wcho035 on January 02, 2020, 02:33:28 pm

Title: How do you get missionweight correct. Please provide correct sample.
Post by: wcho035 on January 02, 2020, 02:33:28 pm
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.
Title: Re: How do you get missionweight correct. Please provide correct sample.
Post by: Meridian 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.
Title: Re: How do you get missionweight correct. Please provide correct sample.
Post by: wcho035 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      
Title: Re: How do you get missionweight correct. Please provide correct sample.
Post by: Meridian on January 02, 2020, 03:01:30 pm
in mission script, with "firstMonth: 6", it is correct
Title: Re: How do you get missionweight correct. Please provide correct sample.
Post by: wcho035 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?

Title: Re: How do you get missionweight correct. Please provide correct sample.
Post by: Meridian 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.
Title: Re: How do you get missionweight correct. Please provide correct sample.
Post by: wcho035 on January 02, 2020, 03:18:10 pm
Sorry. Should have been more accurate. My fault. Thank you Meridian as always.