Author Topic: Alien Retaliation  (Read 2680 times)

Offline animal310

  • Captain
  • ***
  • Posts: 54
    • View Profile
Alien Retaliation
« on: June 29, 2019, 04:48:20 pm »
I’ve created a number of retaliation missions and am trying to use the ‘missionWeights’ command line (as per below) but I get an error ‘end of map not found’. Any idea what the problem could be?

Code: [Select]
alienMissions:
  - type: STR_ALIEN_RETALIATION_1
    missionWeights:
      0: 20
      6: 10
     12: 10
     14:  0
  - type: STR_ALIEN_ RETALIATION_2
    missionWeights:
      0: 20
      6: 20
     12: 10
     14: 10
  - type: STR_ALIEN_ RETALIATION_3
    missionWeights:
      0: 10
      6: 10
     12: 20
     14: 10
  - type: STR_ALIEN_ RETALIATION_4
    missionWeights:
      0:  0
      6: 10
     12: 10
     14: 20
  - type: STR_ALIEN_ RETALIATION_5
    missionWeights:
      0:  0
      6:  0
     12:  0
     14: 10
  - type: STR_ALIEN_RETALIATION_HK
    missionWeights:
      0: 25
      6: 25
     12: 25
     14: 25
  - type: STR_ALIEN_RETALIATION
    missionWeights:
      0: 25
      6: 25
     12: 25
     14: 25

Code: [Select]

alienMissions:
  - type: STR_ALIEN_RESEARCH
    waves:
      - ufo: STR_SMALL_SCOUT
        count: 1
        trajectory: P0
        timer: 9000
      - ufo: STR_MEDIUM_SCOUT
        count: 1
        trajectory: P2
        timer: 7800
      - ufo: STR_EXCAVATOR
        count: 1
        trajectory: P2
        timer: 1000
      - ufo: STR_LARGE_SCOUT
        count: 2
        trajectory: P4
        timer: 9000
      - ufo: STR_LAB_SHIP
        count: 1
        trajectory: P4
        timer: 9000
  - type: STR_ALIEN_HARVEST
    waves:
      - ufo: STR_SMALL_SCOUT
        count: 1
        trajectory: P0
        timer: 7800
      - ufo: STR_SMALL_SCOUT
        count: 1
        trajectory: P2
        timer: 7800
      - ufo: STR_MEDIUM_SCOUT
        count: 1
        trajectory: P2
        timer: 6000
      - ufo: STR_LARGE_SCOUT
        count: 1
        trajectory: P0
        timer: 7800
      - ufo: STR_LARGE_SCOUT
        count: 1
        trajectory: P3
        timer: 9000
      - ufo: STR_HARVESTER
        count: 1
        trajectory: P4
        timer: 3000
      - ufo: STR_HARVESTER
        count: 1
        trajectory: P4
        timer: 750
      - ufo: STR_LAB_SHIP
        count: 1
        trajectory: P2
        timer: 1500
  - type: STR_ALIEN_BASE
    objective: 2
    spawnZone: 4 #Mission zone for alien bases
    waves:
      - ufo: STR_SMALL_SCOUT
        count: 1
        trajectory: P1
        timer: 13500
      - ufo: STR_MEDIUM_SCOUT
        count: 1
        trajectory: P5
        timer: 15000
      - ufo: STR_SENTRY_SHIP
        count: 1
        trajectory: P5
        timer: 60
      - ufo: STR_EXCAVATOR
        count: 1
        trajectory: P5
        timer: 60
      - ufo: STR_EXCAVATOR
        count: 1
        trajectory: P5
        timer: 60
      - ufo: STR_SUPPLY_SHIP
        count: 2
        trajectory: P5
        timer: 60
      - ufo: STR_BATTLESHIP
        count: 1
        trajectory: P6
        timer: 60
  - type: STR_ALIEN_TERROR
    objective: 3
    spawnZone: 3 #Mission zone for terror missions
    waves:
      - ufo: STR_LARGE_SCOUT
        count: 1
        trajectory: P1
        timer: 9600
      - ufo: STR_FIGHTER_SHIP
        count: 1
        trajectory: P1
        timer: 15000
      - ufo: STR_TERROR_SHIP
        count: 1
        trajectory: P0
        timer: 12000
      - ufo: STR_TERROR_SHIP
        count: 1
        trajectory: P7
        timer: 9000
        objective: true
  - type: STR_ALIEN_RETALIATION_1
    points: 0
    objective: 4
    spawnUfo: STR_MEDIUM_SCOUT # Spawned for the final retaliation run
    operationType: 0
    raceWeights: # In the case of a shootdown, race comes from the UFO that triggered the mission.
      0:
        STR_SECTOID: 20
        STR_SNAKEMAN: 20
        STR_ETHEREAL: 20
        STR_MUTON: 20
        STR_FLOATER: 20
    waves:
      - ufo: STR_SMALL_SCOUT
        count: 1
        trajectory: P8
        timer: 3000
      - ufo: STR_MEDIUM_SCOUT
        count: 2
        trajectory: P8
        timer: 3000
        hunterKillerPercentage: 50
        huntMode: 2
        huntSpeed: 100
        missilePower: 2
        radarRange: 1018
      - ufo: STR_LARGE_SCOUT
        count: 3
        trajectory: P8
        timer: 3000
        hunterKillerPercentage: 50
        huntMode: 2
        huntSpeed: 100
        missilePower: 3
        radarRange: 1018
      - ufo: STR_MEDIUM_SCOUT
        count: 2
        trajectory: P8
        timer: 3000
        hunterKillerPercentage: 50
        huntMode: 2
        huntSpeed: 100
        missilePower: 2
        radarRange: 1018
  - type: STR_ALIEN_ RETALIATION_2
    points: 0
    objective: 4
    spawnUfo: STR_LARGE_SCOUT # Spawned for the final retaliation run
    operationType: 0
    raceWeights: # In the case of a shootdown, race comes from the UFO that triggered the mission.
      0:
        STR_SECTOID: 20
        STR_SNAKEMAN: 20
        STR_ETHEREAL: 20
        STR_MUTON: 20
        STR_FLOATER: 20
    waves:
      - ufo: STR_SMALL_SCOUT
        count: 1
        trajectory: P8
        timer: 3000
      - ufo: STR_FIGHTER_SHIP
        count: 2
        trajectory: P8
        timer: 3000
        hunterKillerPercentage: 50
        huntMode: 2
        huntSpeed: 100
        radarRange: 1344
      - ufo: STR_SENTRY_SHIP
        count: 3
        trajectory: P8
        timer: 3000
        hunterKillerPercentage: 50
        huntMode: 2
        huntSpeed: 100
        missilePower: 4
        radarRange: 1018
      - ufo: STR_LARGE_SCOUT
        count: 2
        trajectory: P8
        timer: 3000
        hunterKillerPercentage: 50
        huntMode: 2
        huntSpeed: 100
        missilePower: 3
        radarRange: 1018
  - type: STR_ALIEN_ RETALIATION_3
    points: 0
    objective: 4
    spawnUfo: STR_SENTRY_SHIP # Spawned for the final retaliation run
    operationType: 0
    raceWeights: # In the case of a shootdown, race comes from the UFO that triggered the mission.
      0:
        STR_SECTOID: 20
        STR_SNAKEMAN: 20
        STR_ETHEREAL: 20
        STR_MUTON: 20
        STR_FLOATER: 20
    waves:
      - ufo: STR_SMALL_SCOUT
        count: 1
        trajectory: P8
        timer: 3000
      - ufo: STR_MEDIUM_SCOUT
        count: 2
        trajectory: P8
        timer: 3000
        hunterKillerPercentage: 50
        huntMode: 2
        huntSpeed: 100
        missilePower: 2
        radarRange: 1018
      - ufo: STR_LARGE_SCOUT
        count: 3
        trajectory: P8
        timer: 3000
        hunterKillerPercentage: 50
        huntMode: 2
        huntSpeed: 100
        missilePower: 3
        radarRange: 1018
      - ufo: STR_SENTRY_SHIP
        count: 2
        trajectory: P8
        timer: 3000
        hunterKillerPercentage: 50
        huntMode: 2
        huntSpeed: 100
        missilePower: 4
        radarRange: 1018
  - type: STR_ALIEN_ RETALIATION_4
    points: 0
    objective: 4
    spawnUfo: STR_TERROR_SHIP  # Spawned for the final retaliation run
    operationType: 0
    raceWeights: # In the case of a shootdown, race comes from the UFO that triggered the mission.
      0:
        STR_SECTOID: 20
        STR_SNAKEMAN: 20
        STR_ETHEREAL: 20
        STR_MUTON: 20
        STR_FLOATER: 20
    waves:
      - ufo: STR_SMALL_SCOUT
        count: 1
        trajectory: P8
        timer: 3000
      - ufo: STR_FIGHTER_SHIP
        count: 2
        trajectory: P8
        timer: 3000
        hunterKillerPercentage: 50
        huntMode: 2
        huntSpeed: 100
        radarRange: 1344
      - ufo: STR_SENTRY_SHIP
        count: 3
        trajectory: P8
        timer: 3000
        hunterKillerPercentage: 50
        huntMode: 2
        huntSpeed: 100
        missilePower: 4
        radarRange: 1018
      - ufo: STR_TERROR_SHIP
        count: 2
        trajectory: P8
        timer: 3000
        hunterKillerPercentage: 50
        huntMode: 2
        huntSpeed: 100
        missilePower: 6
        radarRange: 1344
  - type: STR_ALIEN_ RETALIATION_5
    points: 0
    objective: 4
    spawnUfo: STR_BATTLESHIP # Spawned for the final retaliation run
    operationType: 0
    raceWeights: # In the case of a shootdown, race comes from the UFO that triggered the mission.
      0:
        STR_SECTOID: 20
        STR_SNAKEMAN: 20
        STR_ETHEREAL: 20
        STR_MUTON: 20
        STR_FLOATER: 20
    waves:
      - ufo: STR_LARGE_SCOUT
        count: 1
        trajectory: P8
        timer: 3000
        hunterKillerPercentage: 50
        huntMode: 2
        huntSpeed: 100
        missilePower: 3
        radarRange: 1018
      - ufo: STR_FIGHTER_SHIP
        count: 2
        trajectory: P8
        timer: 3000
        hunterKillerPercentage: 50
        huntMode: 2
        huntSpeed: 100
        radarRange: 1344
      - ufo: STR_TERROR_SHIP
        count: 3
        trajectory: P8
        timer: 3000
        hunterKillerPercentage: 50
        huntMode: 2
        huntSpeed: 100
        missilePower: 6
        radarRange: 1344
      - ufo: STR_BATTLESHIP
        count: 2
        trajectory: P8
        timer: 3000
        hunterKillerPercentage: 50
        huntMode: 2
        huntSpeed: 100
        missilePower: 8
        radarRange: 1344
  - type: STR_ALIEN_RETALIATION_HK
    points: 0
    objective: 4
    spawnUfo: STR_BATTLESHIP # Spawned for the final retaliation run
    operationType: 0
    raceWeights: # In the case of a shootdown, race comes from the UFO that triggered the mission.
      0:
        STR_SECTOID: 20
        STR_SNAKEMAN: 20
        STR_ETHEREAL: 20
        STR_MUTON: 20
        STR_FLOATER: 20
    waves:
      - ufo: STR_SMALL_SCOUT
        count: 1
        trajectory: P8
        timer: 3000
      - ufo: STR_MEDIUM_SCOUT
        count: 2
        trajectory: P8
        timer: 3000
        hunterKillerPercentage: 50
        huntMode: 2
        huntSpeed: 100
        missilePower: 1
        radarRange: 1018
      - ufo: STR_LARGE_SCOUT
        count: 3
        trajectory: P8
        timer: 3000
        hunterKillerPercentage: 50
        huntMode: 2
        huntSpeed: 100
        missilePower: 2
        radarRange: 1018
      - ufo: STR_BATTLESHIP
        count: 2
        trajectory: P8
        timer: 3000
        hunterKillerPercentage: 50
        huntMode: 2
        huntSpeed: 100
        radarRange: 1344
  - type: STR_ALIEN_RETALIATION
    objective: 4
    spawnUfo: STR_BATTLESHIP #Spawned for the final retaliation run
    operationType: 0
    raceWeights: # In the case of a shootdown, race comes from the UFO that triggered the mission.
      0:
        STR_SECTOID: 20
        STR_SNAKEMAN: 20
        STR_ETHEREAL: 20
        STR_MUTON: 20
        STR_FLOATER: 20
    waves:
      - ufo: STR_SMALL_SCOUT
        count: 1
        trajectory: P8
        timer: 3000
      - ufo: STR_FIGHTER_SHIP
        count: 2
        trajectory: P8
        timer: 3000
        hunterKillerPercentage: 50
        huntMode: 2
        huntSpeed: 100
        radarRange: 1344
      - ufo: STR_SENTRY_SHIP
        count: 3
        trajectory: P8
        timer: 3000
        hunterKillerPercentage: 50
        huntMode: 2
        huntSpeed: 100
        missilePower: 4
        radarRange: 1018
      - ufo: STR_BATTLESHIP
        count: 2
        trajectory: P8
        timer: 3000
        hunterKillerPercentage: 50
        huntMode: 2
        huntSpeed: 100
        radarRange: 1344

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9091
    • View Profile
Re: Alien Retaliation
« Reply #1 on: June 29, 2019, 05:03:17 pm »
Wrong indentation.

Try this:

Code: [Select]
alienMissions:
  - type: STR_ALIEN_RETALIATION_1
    missionWeights:
      0: 20
      6: 10
      12: 10
      14:  0
  - type: STR_ALIEN_RETALIATION_2
    missionWeights:
      0: 20
      6: 20
      12: 10
      14: 10
  - type: STR_ALIEN_RETALIATION_3
    missionWeights:
      0: 10
      6: 10
      12: 20
      14: 10
  - type: STR_ALIEN_RETALIATION_4
    missionWeights:
      0:  0
      6: 10
      12: 10
      14: 20
  - type: STR_ALIEN_RETALIATION_5
    missionWeights:
      0:  0
      6:  0
      12:  0
      14: 10
  - type: STR_ALIEN_RETALIATION_HK
    missionWeights:
      0: 25
      6: 25
      12: 25
      14: 25
  - type: STR_ALIEN_RETALIATION
    missionWeights:
      0: 25
      6: 25
      12: 25
      14: 25

Offline animal310

  • Captain
  • ***
  • Posts: 54
    • View Profile
Re: Alien Retaliation
« Reply #2 on: June 29, 2019, 05:21:04 pm »
Thanks Meridian, works now, much appreciated.