Author Topic: Double mission site on same coord  (Read 1113 times)

Offline robin

  • Commander
  • *****
  • Posts: 1183
  • ULTIMATE ROOKIE
    • View Profile
    • Email
Double mission site on same coord
« on: October 06, 2021, 11:46:46 pm »
I'm somehow getting double mission sites (on the same coordinates).

Could it be because I set "objective:true" to the escort too? (STR_CRAFT_AIRTRANS is the actual objective-doer of the mission)?
I thought it was correct to do so, but I'm starting to doubt it.

In this example the mission sites last long enough to exist the same time. For other missions (with similar waves setup) the sites happens one after another in rapid succession.

Any idea why this happens?
Thanks.

Offline Nord

  • Commander
  • *****
  • Posts: 1450
  • The Gate is open.
    • View Profile
Re: Double mission site on same coord
« Reply #1 on: October 07, 2021, 08:13:18 am »
You have two(even 3 in fact) ufo with "objective: true".
Objective: true must have only one ufo, one which must land.

Offline The Reaver of Darkness

  • Commander
  • *****
  • Posts: 1493
    • View Profile
Re: Double mission site on same coord
« Reply #2 on: October 07, 2021, 09:59:53 am »
As I understand it, any mission with objective: 3 will create a mission site wherever a UFO with objective: true decides to land. The mission should then be complete, and not spawn anymore waves. If other waves have already spawned before it lands, and they are also set to objective: true, they should also create a mission site wherever they land.

spawnZone: 3 will cause the mission site to be made at a random waypoint selected from missionZone: 3 which, by default, is pinpointed over cities. This gives a high likelihood of missions spawning in exactly the same place. Or perhaps the mission only ever selects one location for the site, and all UFOs belonging to the same mission which create sites land at the same position. I've never played around with it so I don't know.

You can bypass it by using multiple similar missionScripts to spawn multiple similar missions on the same month (in the same region if that's what you want) and have them make sites that aren't in the same place. Also, you can try using spawnZone: 1 or 2 which have large spawn boxes over regions, so that there are thousands of possible locations where they can spawn their mission.

Offline robin

  • Commander
  • *****
  • Posts: 1183
  • ULTIMATE ROOKIE
    • View Profile
    • Email
Re: Double mission site on same coord
« Reply #3 on: October 07, 2021, 09:38:52 pm »
At the time I had to add "objective: true" to the escorts, otherwise the mission site was not spawned.
Here what Hobbes replied back then:


Code: [Select]
alienMissions:
  - type: STR_SKYNET_INTERDICTION
    waves:
      - ufo: STR_HK_TRANSPORT_1
        count: 1
        trajectory: T7
        timer: 15000
        objective: true
      - ufo: STR_HK_FIGHTER_1
        count: 1
        timer: 10
        trajectory: T0
        objective: true
        escort: true

The escort (STR_HK_FIGHTER_1) also requires objective: true for the terror site to appear

I guess this has changed?
In the weekend I'll test without it and report back.


Offline The Reaver of Darkness

  • Commander
  • *****
  • Posts: 1493
    • View Profile
Re: Double mission site on same coord
« Reply #4 on: October 08, 2021, 06:10:11 am »
Maybe the last wave needs it set to true.

Offline robin

  • Commander
  • *****
  • Posts: 1183
  • ULTIMATE ROOKIE
    • View Profile
    • Email
Re: Double mission site on same coord
« Reply #5 on: October 10, 2021, 01:21:03 am »
maybe I'm doing something wrong but...
..example:

Code: [Select]
waves:
- UFO_A
- UFO_B
  objective:true
- UFO_C
  hunterKillerPercentage: 100
  escort:true

in this situation the following happens:
- if UFO_A is defined, UFO_C will escort it.
- if no UFO_A is defined, UFO_C will fly alone.

setting objective:true to UFO_C doesn't change escort behavior, but you get doubled mission site.

so I guess there is no way to escort the mission-carrier UFO?
« Last Edit: October 11, 2021, 10:59:24 pm by robin »

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 7722
    • View Profile
Re: Double mission site on same coord
« Reply #6 on: October 11, 2021, 10:50:12 pm »
you cannot "choose" which UFO will be escorted

if a UFO is marked as an escort... and it is not otherwise occupied (e.g. by hunting)... it will try to escort "someone";
that someone will need to:
1. be from the same alien mission
2. be a normal UFO, i.e. not a hunter-killer
if there are multiple potential UFOs to escort, the oldest one will be chosen


so my guess would be that UFO_B from your example is a hunter-killer (violating pre-requisite 2.)?

if not, prepare a small mod and a small save to demonstrate

Offline robin

  • Commander
  • *****
  • Posts: 1183
  • ULTIMATE ROOKIE
    • View Profile
    • Email
Re: Double mission site on same coord
« Reply #7 on: October 11, 2021, 11:05:07 pm »
UFO_B is a normal UFO, the hunter killer is UFO_C.
Sorry for incomplete info.
Here a complete example:

----------
    waves:
      - ufo: STR_UFO_PROBE
        count: 1
        trajectory: A0
        timer: 9000
      - ufo: STR_UFO_SCOUT  <--
        count: 1
        trajectory: A1
        timer: 10
      - ufo: STR_UFO_PROBE
        count: 1
        trajectory: A0
        timer: 10
        hunterKillerPercentage: 100
        escort: true
      - ufo: STR_UFO_SCOUT
        count: 1
        trajectory: A3
        timer: 10
        objective: true
      - ufo: STR_UFO_PROBE  <--
        count: 1
        trajectory: A3
        timer: 10
        #objective: true
        hunterKillerPercentage: 100
        escort: true
-----------

The last UFO (STR_UFO_PROBE) escorts the second UFO (STR_UFO_SCOUT).
Will check again adn prepare an example in the weekend.
« Last Edit: October 11, 2021, 11:08:05 pm by robin »