Author Topic: Unexpected February Terror Mission.. and wrong race too!  (Read 3839 times)

Offline robin

  • Commander
  • *****
  • Posts: 1216
  • ULTIMATE ROOKIE
    • View Profile
Unexpected February Terror Mission.. and wrong race too!
« on: October 19, 2015, 03:06:01 pm »
So I deleted the recurringTerror:

  - delete: recurringTerror

I made my own new "terror" mission script, that includes smaller terror missions and conventional terror missions.
As you can see though, the standard terror mission is not scheduled in the beginning months.
Yet at the very beginning of February I get a terror mission.

  - type: alienApocalypse
    executionOdds: 100
    missionWeights:
      0:
        STR_ALIEN_DROP_SMALL: 70
        STR_ALIEN_DROP_MEDIUM: 30
        STR_ALIEN_TERROR: 0
      1:
        STR_ALIEN_DROP_SMALL: 60
        STR_ALIEN_DROP_MEDIUM: 40
        STR_ALIEN_TERROR: 0
      3:
        STR_ALIEN_DROP_SMALL: 50
        STR_ALIEN_DROP_MEDIUM: 50
        STR_ALIEN_TERROR: 0
      ..and so on...
    useTable: false


Adding to that, it uses a race (human faction) that isn't supposed to be used. The standard terror has been modified accordingly:

  - type: STR_ALIEN_TERROR
    raceWeights:
      0:
        STR_ETHEREAL: 0
        STR_FLOATER: 0
        STR_MUTON: 0
        STR_SECTOID: 0
        STR_SNAKEMAN: 0
        #
        STR_ANTHROPOD_OCULANT_1: 30
        STR_ANTHROPOD_OCULANT_2: 0
        STR_FLOATER_SNAKEMAN_1: 70
        STR_FLOATER_SNAKEMAN_2: 0
        STR_MUTON_ETHEREAL_1: 0
        STR_MUTON_ETHEREAL_2: 0
     ...and so on, alway the same races just different values...


It's like the script recurringTerror is still enabled and is picking up races randomly among all the available races.

Anyone had this behavior, or has any idea why terror mission is going wild?

Offline hellrazor

  • Commander
  • *****
  • Posts: 2011
  • Deep Ruleset Digger & Bughunter
    • View Profile
    • Github Account
Re: Unexpected February Terror Mission.. and wrong race too!
« Reply #1 on: October 19, 2015, 03:18:56 pm »
Maybe you remove all Terrormissionscripts for testing.
Maybe it is a leftover hardcoded element?

Offline Hobbes

  • Commander
  • *****
  • Posts: 2101
  • Infiltration subroutine in progress
    • View Profile
Re: Unexpected February Terror Mission.. and wrong race too!
« Reply #2 on: October 19, 2015, 03:22:44 pm »
Adding to that, it uses a race (human faction) that isn't supposed to be used.

Is this race the first entry listed on alienRaces?

Offline new_civilian

  • Commander
  • *****
  • Posts: 725
    • View Profile
Re: Unexpected February Terror Mission.. and wrong race too!
« Reply #3 on: October 19, 2015, 04:38:25 pm »
You have to set all february mission entries to 0:

      2:
        STR_ALIEN_DROP_SMALL: 0
        STR_ANYTHINGELSE: 0
        ...

It is the same for the alien races btw, if you only add a new list-file it will ADD its values to the old files. You have to add EMPTY enties to blank out the original settings.

Not sure If I make sense, my headache is killing me today  :(

Offline robin

  • Commander
  • *****
  • Posts: 1216
  • ULTIMATE ROOKIE
    • View Profile
Re: Unexpected February Terror Mission.. and wrong race too!
« Reply #4 on: October 19, 2015, 07:29:52 pm »
Is this race the first entry listed on alienRaces?
Nope.


Not sure If I make sense, my headache is killing me today  :(
Yeah it makes little sense to me, sorry.
recurringTerror script is deleted. Does the terror mission in *another* script adds its values to the ones of a deleted script (indirectly 'resurrecting' the deleted script)? Doesn't sound right.
Maybe I'm missing something fundamental.


edit:
Maybe the problem is that I'm not overriding the regionWeights. I'll have to check it.
Checked.
Seems to me that the recurringTerror script is still enabled even if deletd.
« Last Edit: October 19, 2015, 09:15:15 pm by robin »

Offline Hobbes

  • Commander
  • *****
  • Posts: 2101
  • Infiltration subroutine in progress
    • View Profile
Re: Unexpected February Terror Mission.. and wrong race too!
« Reply #5 on: October 19, 2015, 09:23:16 pm »
Checked.
Seems to me that the recurringTerror script is still enabled even if deletd.

I just tried removing recurringTerror on Redux and it did not generate any terror mission on the first or the second month. Your ruleset must have a problem. This is how Redux is set for no Terror missions:

Quote
missionScripts:
  - type: gameStart
    missionWeights:
      0:
        STR_ALIEN_RESEARCH: 100
    lastMonth: 0
    targetBaseOdds: 100
    raceWeights:
      0:
        STR_SECTOID: 100
    startDelay: 120
  - type: recon
    firstMonth: 1
  - delete: recurringTerror

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: Unexpected February Terror Mission.. and wrong race too!
« Reply #6 on: October 20, 2015, 01:01:22 am »
delete, don't define as 0.