official-antistasi-community / A3-Antistasi

Antistasi Community Version - work in progress - Discord https://discord.com/invite/TYDwCRKnKX
https://antistasi.de
Other
225 stars 156 forks source link

[Bug]: No SpecOps to hunt in SpecOps assination missions #2778

Open ante185 opened 1 year ago

ante185 commented 1 year ago

Describe the bug

SpecOps are either just not being spawned in the areas they are supposed to spawn in, and/or the assassination mission does not proc a squad to spawn. When the time runs out to achieve it the mission is counted as a success.

How to reproduce

Get an assassination mission from Petros (Dynamically/requested) Arrive to the AO - look around for way too long Get frustrated - enter spectator mode and find that the only enemies within miles are the ones guarding the nearby resources

Version

3.2.0

Have you altered the code?

Yes

What i have changed

Checking yes because i am playing with custom templates: the sf equipment is all filled in and in the worst case that really should only cause naked spec ops, not non-existing ones.

Map

Altis

What server?

LAN Hosted

Time bug occured (Server time/UTC)

No response

Mods

<?xml version="1.0" encoding="utf-8"?>
<html>
  <!--Created by Arma 3 Launcher: https://arma3.com these instructions are not very clear what they ask for ngl-->
  <head>
    <meta name="arma:Type" content="preset" />
    <meta name="arma:PresetName" content="RHS" />
    <meta name="generator" content="Arma 3 Launcher - https://arma3.com" />
    <title>Arma 3</title>
    <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet" type="text/css" />
    <style>
body {
    margin: 0;
    padding: 0;
    color: #fff;
    background: #000;   
}

body, th, td {
    font: 95%/1.3 Roboto, Segoe UI, Tahoma, Arial, Helvetica, sans-serif;
}

td {
    padding: 3px 30px 3px 0;
}

h1 {
    padding: 20px 20px 0 20px;
    color: white;
    font-weight: 200;
    font-family: segoe ui;
    font-size: 3em;
    margin: 0;
}

em {
    font-variant: italic;
    color:silver;
}

.before-list {
    padding: 5px 20px 10px 20px;
}

.mod-list {
    background: #222222;
    padding: 20px;
}

.dlc-list {
    background: #222222;
    padding: 20px;
}

.footer {
    padding: 20px;
    color:gray;
}

.whups {
    color:gray;
}

a {
    color: #D18F21;
    text-decoration: underline;
}

a:hover {
    color:#F1AF41;
    text-decoration: none;
}

.from-steam {
    color: #449EBD;
}
.from-local {
    color: gray;
}

</style>
  </head>
  <body>
    <h1>Arma 3  - Preset <strong>RHS</strong></h1>
    <p class="before-list">
      <em>To import this preset, drag this file onto the Launcher window. Or click the MODS tab, then PRESET in the top right, then IMPORT at the bottom, and finally select this file.</em>
    </p>
    <div class="mod-list">
      <table>
        <tr data-type="ModContainer">
          <td data-type="DisplayName">CBA_A3</td>
          <td>
            <span class="from-steam">Steam</span>
          </td>
          <td>
            <a href="https://steamcommunity.com/sharedfiles/filedetails/?id=450814997" data-type="Link">https://steamcommunity.com/sharedfiles/filedetails/?id=450814997</a>
          </td>
        </tr>
        <tr data-type="ModContainer">
          <td data-type="DisplayName">RHSAFRF</td>
          <td>
            <span class="from-steam">Steam</span>
          </td>
          <td>
            <a href="https://steamcommunity.com/sharedfiles/filedetails/?id=843425103" data-type="Link">https://steamcommunity.com/sharedfiles/filedetails/?id=843425103</a>
          </td>
        </tr>
        <tr data-type="ModContainer">
          <td data-type="DisplayName">RHSUSAF</td>
          <td>
            <span class="from-steam">Steam</span>
          </td>
          <td>
            <a href="https://steamcommunity.com/sharedfiles/filedetails/?id=843577117" data-type="Link">https://steamcommunity.com/sharedfiles/filedetails/?id=843577117</a>
          </td>
        </tr>
        <tr data-type="ModContainer">
          <td data-type="DisplayName">Enhanced Movement</td>
          <td>
            <span class="from-steam">Steam</span>
          </td>
          <td>
            <a href="https://steamcommunity.com/sharedfiles/filedetails/?id=333310405" data-type="Link">https://steamcommunity.com/sharedfiles/filedetails/?id=333310405</a>
          </td>
        </tr>
        <tr data-type="ModContainer">
          <td data-type="DisplayName">RHSGREF</td>
          <td>
            <span class="from-steam">Steam</span>
          </td>
          <td>
            <a href="https://steamcommunity.com/sharedfiles/filedetails/?id=843593391" data-type="Link">https://steamcommunity.com/sharedfiles/filedetails/?id=843593391</a>
          </td>
        </tr>
        <tr data-type="ModContainer">
          <td data-type="DisplayName">RHSSAF</td>
          <td>
            <span class="from-steam">Steam</span>
          </td>
          <td>
            <a href="https://steamcommunity.com/sharedfiles/filedetails/?id=843632231" data-type="Link">https://steamcommunity.com/sharedfiles/filedetails/?id=843632231</a>
          </td>
        </tr>
        <tr data-type="ModContainer">
          <td data-type="DisplayName">Antistasi - The Mod</td>
          <td>
            <span class="from-steam">Steam</span>
          </td>
          <td>
            <a href="https://steamcommunity.com/sharedfiles/filedetails/?id=2867537125" data-type="Link">https://steamcommunity.com/sharedfiles/filedetails/?id=2867537125</a>
          </td>
        </tr>
        <tr data-type="ModContainer">
          <td data-type="DisplayName">A3 Antistasi Extender example</td>
          <td>
            <span class="from-local">Local</span>
          </td>
          <td>
            <span class="whups" data-type="Link" data-meta="local:A3 Antistasi Extender example|test|https://github.com/HakonRydland/A3AExtender">
              <a href="https://github.com/HakonRydland/A3AExtender">https://github.com/HakonRydland/A3AExtender</a>
            </span>
          </td>
        </tr>
        <tr data-type="ModContainer">
          <td data-type="DisplayName">DUI - Squad Radar</td>
          <td>
            <span class="from-steam">Steam</span>
          </td>
          <td>
            <a href="https://steamcommunity.com/sharedfiles/filedetails/?id=1638341685" data-type="Link">https://steamcommunity.com/sharedfiles/filedetails/?id=1638341685</a>
          </td>
        </tr>
        <tr data-type="ModContainer">
          <td data-type="DisplayName">Enhanced Movement Rework</td>
          <td>
            <span class="from-steam">Steam</span>
          </td>
          <td>
            <a href="https://steamcommunity.com/sharedfiles/filedetails/?id=2034363662" data-type="Link">https://steamcommunity.com/sharedfiles/filedetails/?id=2034363662</a>
          </td>
        </tr>
        <tr data-type="ModContainer">
          <td data-type="DisplayName">ACE - No medical [Updated]</td>
          <td>
            <span class="from-steam">Steam</span>
          </td>
          <td>
            <a href="https://steamcommunity.com/sharedfiles/filedetails/?id=1377912885" data-type="Link">https://steamcommunity.com/sharedfiles/filedetails/?id=1377912885</a>
          </td>
        </tr>
        <tr data-type="ModContainer">
          <td data-type="DisplayName">ACE Compat - RHS AFRF</td>
          <td>
            <span class="from-steam">Steam</span>
          </td>
          <td>
            <a href="https://steamcommunity.com/sharedfiles/filedetails/?id=773131200" data-type="Link">https://steamcommunity.com/sharedfiles/filedetails/?id=773131200</a>
          </td>
        </tr>
        <tr data-type="ModContainer">
          <td data-type="DisplayName">ACE Compat - RHS USAF</td>
          <td>
            <span class="from-steam">Steam</span>
          </td>
          <td>
            <a href="https://steamcommunity.com/sharedfiles/filedetails/?id=773125288" data-type="Link">https://steamcommunity.com/sharedfiles/filedetails/?id=773125288</a>
          </td>
        </tr>
        <tr data-type="ModContainer">
          <td data-type="DisplayName">ACE Compat - RHS: GREF</td>
          <td>
            <span class="from-steam">Steam</span>
          </td>
          <td>
            <a href="https://steamcommunity.com/sharedfiles/filedetails/?id=884966711" data-type="Link">https://steamcommunity.com/sharedfiles/filedetails/?id=884966711</a>
          </td>
        </tr>
        <tr data-type="ModContainer">
          <td data-type="DisplayName">ACE Compat - RHS: SAF</td>
          <td>
            <span class="from-steam">Steam</span>
          </td>
          <td>
            <a href="https://steamcommunity.com/sharedfiles/filedetails/?id=2174495332" data-type="Link">https://steamcommunity.com/sharedfiles/filedetails/?id=2174495332</a>
          </td>
        </tr>
      </table>
    </div>
    <div class="dlc-list">
      <table />
    </div>
    <div class="footer">
      <span>Created by Arma 3 Launcher by Bohemia Interactive.</span>
    </div>
  </body>
</html>

Additional context

No response

jaj22 commented 1 year ago

IIRC this happens when the specops marker is within ~1km of a rebel marker when spawned. It's a bit tricky to completely fix because the spawning decision & timing is entirely separate from the mission, although the vast majority of situations would be solved by not including currently-unspawnable specops markers when selecting the mission.

Alternatively we could flip the specops markers to rebel when HQ is moved near or a marker within 1km is captured, but I think it's supposed to be doing that already...

jaj22 commented 1 year ago

Huh, it does already check the 1km rebel marker case when requesting the mission. The only holes I can see:

  1. You flip a marker nearby after the mission starts but before you spawn in the specops marker.
  2. The other enemy faction kills the specops and are closer to the marker.

Seems fairly unlikely although we can probably work around both. Force-spawning the specops marker for the mission duration for #1, triggering mission completion regardless of side switch for #2.

jaj22 commented 1 year ago

Ugh, misreading this shit again. Need more sleep to deal with this one.

It's worse than I thought anyway. There's currently no way of detecting whether a spawned specops marker already has specops on it or not. That information is entirely transient. Might be best to just finish rewriting the garrison system first.