Author Topic: New terror missions are not spawning?  (Read 1346 times)

Offline The Martian

  • Commander
  • *****
  • Posts: 754
  • "It implores you to listen to its arguments..."
    • View Profile
New terror missions are not spawning?
« on: June 20, 2023, 09:48:36 pm »
The "Maps From The Deep" map pack's first release is now available on the forum 'HERE'.

Unfortunately I seem to have made a mistake when setting up some of the new terror missions in alienMissions: and their mission sets do not appear to be being spawned.

What I tried to do was create several entries that each had executionOdds: of triggering and were prevented from activating more than one per month using the conditionals: and label: variables.

For whatever reason only the base game's original shipTerror and recurringTerror mission sets seem to be activating.


I'll post the code currently being used to this thread, the .rul files themselves can be downloaded here: Maps_From_The_Deep_V0-56.zip

Here is what is currently setup:
Spoiler:
Code: [Select]
missionScripts:

# [=] Delete default Mission Scripts [=]
  - delete: shipTerror
  - delete: recurringTerror






# [=] Cruise Ship & Cargo Ship [=] (Terror Mission)
  - type: shipTerror
    conditionals: [-1]
    label: 2
    missionWeights:
      0:
        STR_ALIEN_SHIP_ATTACK: 100
    regionWeights:
      0:
        SHIPPING_LANES: 100
    avoidRepeats: 5
    varName: shippingLanes
    useTable: false
    firstMonth: 3
    executionOdds: 30 # (Was 60)
    startDelay: 0


# [=] Warship & Oil Tanker [=] (Terror Mission)
  - type: otherShipTerror
    conditionals: [-1, -2]
    label: 8
    missionWeights:
      0:
        STR_MFTD_ALIEN_TERROR_MISSION_OTHER_SHIPS: 100
    regionWeights:
      0:
        SHIPPING_LANES: 100
    avoidRepeats: 5
    varName: shippingLanes
    useTable: false
    firstMonth: 3
    executionOdds: 30 # (Was 60)
    startDelay: 0


# [=] Surface Base + (Ocean Labs / Small Ocean Lab / Underwater Base) [=] (Terror Mission)
  - type: surfaceBaseTerror
    conditionals: [-1, -2, -8]
    label: 9
    missionWeights:
      0:
        STR_MFTD_ALIEN_TERROR_MISSION_SURFACE_BASE: 100
    regionWeights:
      0:
        SHIPPING_LANES: 100
    avoidRepeats: 5
    varName: shippingLanes
    useTable: false
    firstMonth: 3
    executionOdds: 30 # (Was 60)
    startDelay: 0


# [=] Warehouse (Arms & Volatile) [=] (Terror Mission)
  - type: WarehouseTerror
    conditionals: [-1, -2, -8, -9]
    label: 10
    missionWeights:
      0:
        STR_MFTD_ALIEN_TERROR_MISSION_WAREHOUSE: 100
    regionWeights:
      0:
        STR_NORTH_ATLANTIC: 10
        STR_SOUTH_ATLANTIC: 10
        STR_NORTH_PACIFIC: 10
        STR_SOUTH_PACIFIC: 10
        STR_MEDITERRANEAN: 10
        STR_SOUTH_CHINA_SEA: 10
        STR_INDIAN_OCEAN: 10
        STR_THE_EAST_SEA: 10
        STR_NORTH_SEA: 10
        STR_CARRIBEAN: 10
    avoidRepeats: 5
    varName: shippingLanes
    useTable: false
    firstMonth: 3
    executionOdds: 30 # (Was 60)
    startDelay: 0


# [=] Offshore Rig [=] (Terror Mission)
  - type: OffshoreRigTerror
    conditionals: [-1, -2, -8, -9, -10]
    label: 11
    missionWeights:
      0:
        STR_MFTD_ALIEN_TERROR_MISSION_OFFSHORE_RIG: 100
    regionWeights:
      0:
        SHIPPING_LANES: 100
    avoidRepeats: 5
    varName: shippingLanes
    useTable: false
    firstMonth: 3
    executionOdds: 20 # (Was 60)
    startDelay: 0



# [=] Trench Base + (Ocean Labs / Small Ocean Lab / Underwater Base) [=] (Terror Mission)
  - type: oceanTrenchBaseTerror
    conditionals: [-1, -2, -8, -9, -10, -11]
    label: 12
    missionWeights:
      0:
        STR_MFTD_ALIEN_TERROR_MISSION_TRENCHUPPERBASE: 100
    regionWeights:
      0:
        SHIPPING_LANES: 100
    avoidRepeats: 5
    varName: shippingLanes
    useTable: false
    firstMonth: 3
    executionOdds: 30 # (Was 60)
    startDelay: 0





# [=] Island & Port Terror Mission [=]
  - type: recurringTerror
    conditionals: [-1, -2, -8, -9, -10, -11, -12]
    missionWeights:
      0:
        STR_ALIEN_SURFACE_ATTACK: 100
    regionWeights:
      0:
        STR_NORTH_ATLANTIC: 10
        STR_SOUTH_ATLANTIC: 10
        STR_NORTH_PACIFIC: 10
        STR_SOUTH_PACIFIC: 10
        STR_MEDITERRANEAN: 10
        STR_SOUTH_CHINA_SEA: 10
        STR_INDIAN_OCEAN: 10
        STR_THE_EAST_SEA: 10
        STR_NORTH_SEA: 10
        STR_CARRIBEAN: 10
    useTable: false
    startDelay: 150


Should I have done it more like this instead:
Spoiler:
Code: [Select]
missionScripts:

# [=] Delete default Mission Scripts [=]
  - delete: shipTerror
  - delete: recurringTerror


# [=] Cruise Ship & Cargo Ship [=] (Terror Mission)
  - type: shipTerror
    conditionals: [-1]
    label: 2
    missionWeights:
      0:
        STR_ALIEN_SHIP_ATTACK: 50
        STR_MFTD_ALIEN_TERROR_MISSION_OTHER_SHIPS: 50 # Warship & Oil Tanker
        STR_MFTD_ALIEN_TERROR_MISSION_SURFACE_BASE: 50 # Surface Base + (Ocean Labs / Small Ocean Lab / Underwater Base)
        STR_MFTD_ALIEN_TERROR_MISSION_OFFSHORE_RIG: 50 # Offshore Rig
        STR_MFTD_ALIEN_TERROR_MISSION_TRENCHUPPERBASE: 50 # Trench Base + (Ocean Labs / Small Ocean Lab / Underwater Base)
    regionWeights:
      0:
        SHIPPING_LANES: 100
    avoidRepeats: 5
    varName: shippingLanes
    useTable: false
    firstMonth: 3
    executionOdds: 60
    startDelay: 0


# [=] Island & Port Terror Mission [=]
  - type: recurringTerror
    conditionals: [-1, -2]
    missionWeights:
      0:
        STR_ALIEN_SURFACE_ATTACK: 50
        STR_MFTD_ALIEN_TERROR_MISSION_WAREHOUSE: 50 # Warehouse (Arms & Volatile)
    regionWeights:
      0:
        STR_NORTH_ATLANTIC: 10
        STR_SOUTH_ATLANTIC: 10
        STR_NORTH_PACIFIC: 10
        STR_SOUTH_PACIFIC: 10
        STR_MEDITERRANEAN: 10
        STR_SOUTH_CHINA_SEA: 10
        STR_INDIAN_OCEAN: 10
        STR_THE_EAST_SEA: 10
        STR_NORTH_SEA: 10
        STR_CARRIBEAN: 10
    useTable: false
    startDelay: 150

Offline The Martian

  • Commander
  • *****
  • Posts: 754
  • "It implores you to listen to its arguments..."
    • View Profile
Re: New terror missions are not spawning?
« Reply #1 on: June 21, 2023, 06:19:47 pm »
I've changed the missionScripts: to use the second method from my previous post.

When testing this the STR_MFTD_ALIEN_TERROR_MISSION_WAREHOUSE mission was called once followed by three STR_ALIEN_SURFACE_ATTACK missions.


So I think it is working now.


If anyone could share some advice on configuring the settings so that the randomly selected mission in missionWeights: varies more often I would appreciate it.

At the moment I have them all set to 50 as I thought that would give them an equal chance of being selected but it seems to be favoring the STR_ALIEN_SURFACE_ATTACK mission when I'm testing it.