Author Topic: [Solved] Retaliation run trajectory issue  (Read 1351 times)

Offline mutantlord

  • Colonel
  • ****
  • Posts: 136
    • View Profile
[Solved] Retaliation run trajectory issue
« on: March 01, 2023, 02:27:32 pm »
Hi, I am trying to help a player who has come across of this bug. The Author is stumped on how to fix the bug.

Please see the original error log attached.

The Mod the Disconnected Future uses a TFTD type region for its spawns.

So it is using only zone 0 in the region LANDSPAWNS

The Alienmission is as follow, from the code snippet.

Code: [Select]

  - type: STR_FACTION_RETALIATIONWEST
    points: 0
    objective: 4
    multiUfoRetaliation: true
    spawnZone: 0
    spawnUfo: STR_CONQUERORBATTLESHIPRAIDER3
    raceWeights: # In the case of a shootdown, race comes from the UFO that triggered the mission.
      0:
        STR_WILDWEST_REGIMENT: 100
    waves:
      - ufo: STR_ENEMYSKYBUSRAIDER2
        count: 1
        trajectory: P27
        timer: 3000
        interruptPercentage: 5
      - ufo: STR_CONQUERORBATTLESHIPRAIDER2
        count: 1
        trajectory: P20
        timer: 5000
        objective: true
        interruptPercentage: 20
      - ufo: STR_ENEMYMIG192
        count: 1
        trajectory: P21
        timer: 3500
        hunterKillerPercentage: 70
        huntMode: 2
        huntBehavior: 2
        escort: true
        interruptPercentage: 1
      - ufo: STR_ENEMYQ5FANTAN2
        count: 1
        trajectory: P21
        timer: 4600
        hunterKillerPercentage: 70
        huntMode: 2
        huntBehavior: 2
        escort: true
        interruptPercentage: 1



The Ufo trajectories for those above,

Code: [Select]

  - id: P20
    groundTimer: 3000
    waypoints:
      - [0, 4, 100]
      - [0, 3, 74]
      - [0, 1, 28]
      - [0, 1, 47]
      - [0, 2, 100]
  - id: P21
    groundTimer: 4000
    waypoints:
      - [0, 4, 100]
      - [0, 2, 76]
      - [0, 2, 20]
      - [0, 1, 44]
      - [0, 1, 20]
      - [0, 2, 32]
      - [0, 1, 65]
      - [0, 1, 100]
  - id: P27
    groundTimer: 9000
    waypoints:
      - [0, 4, 100]
      - [0, 3, 60]
      - [0, 2, 30]
      - [0, 1, 20]
      - [0, 0, 100]

99% of the cases, the out of zone error doesn't occurred. This is a rare one. I am out of explanation as to why it happened.

Link to the latest version of the mod

https://www.mediafire.com/file/pykamqf29w4wpnj/Disconnected_Future_Latest.zip
« Last Edit: March 11, 2023, 07:22:33 pm by Meridian »

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9084
    • View Profile
Re: Unexplainable Region issue
« Reply #1 on: March 01, 2023, 08:14:47 pm »
The retaliation UFO (spawnUfo: STR_CONQUERORBATTLESHIPRAIDER3) always uses a trajectory called "__RETALIATION_ASSAULT_RUN".

And that trajectory uses zone 5.

Offline mutantlord

  • Colonel
  • ****
  • Posts: 136
    • View Profile
Re: Unexplainable Region bug
« Reply #2 on: March 03, 2023, 06:43:49 pm »
Thanks for the reply and solution. Much appreciated. I will update the author.
Sorry for the late reply.

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9084
    • View Profile
Re: Unexplainable Region bug
« Reply #3 on: March 03, 2023, 09:52:54 pm »
You can stop pretending you're not the author.

It was kinda fun at the beginning, but it's getting repetitive.