Not working with Drone PilotFixed

I can't figure out how to get it to work.
I've done everything and still SAM/turrets won't attack my drone

{
  "EnableTurretTargeting": true,
  "EnableSAMTargeting": true,
  "DefaultSharingSettings": {
    "Team": false,
    "Friends": false,
    "Clan": false,
    "Allies": false
  }
}​

 

Plugin Drone Settings

{
  "SettingsByDroneType": {
    "BaseDrone": {
      "DefaultProfile": {
        "DamageScale": {
          "Generic": 0.1,
          "Heat": 0.2,
          "Bullet": 0.2,
          "AntiVehicle": 0.25
        }
      },
      "ProfilesRequiringPermission": [
        {
          "PermissionSuffix": "god",
          "DroneProperties": {
            "KillInWater": true,
            "MovementAcceleration": 30.0,
            "AltitudeAcceleration": 20.0,
            "LeanWeight": 0.0
          },
          "DamageScale": {
            "AntiVehicle": 0.1,
            "Arrow": 0.1,
            "Bite": 0.1,
            "Bleeding": 0.1,
            "Blunt": 0.1,
            "Bullet": 0.1,
            "Cold": 0.1,
            "ColdExposure": 0.1,
            "Collision": 0.1,
            "Decay": 0.1,
            "Drowned": 0.1,
            "ElectricShock": 0.1,
            "Explosion": 0.1,
            "Fall": 0.1,
            "Fun_Water": 0.1,
            "Generic": 0.1,
            "Heat": 0.1,
            "Hunger": 0.1,
            "Poison": 0.1,
            "Radiation": 0.1,
            "RadiationExposure": 0.1,
            "Slash": 0.1,
            "Stab": 0.1,
            "Suicide": 0.1,
            "Thirst": 0.1
          }
        }
      ]
    },
    "DroneStorage": {
      "DefaultProfile": {
        "DroneProperties": {
          "MovementAcceleration": 7.5,
          "AltitudeAcceleration": 7.5
        },
        "DamageScale": {
          "Generic": 0.1,
          "Heat": 0.1,
          "Bullet": 0.1,
          "AntiVehicle": 0.1
        }
      },
      "ProfilesRequiringPermission": []
    },
    "DroneTurrets": {
      "DefaultProfile": {
        "DroneProperties": {
          "MovementAcceleration": 5.0,
          "AltitudeAcceleration": 5.0
        },
        "DamageScale": {
          "Generic": 0.1,
          "Heat": 0.1,
          "Bullet": 0.1,
          "AntiVehicle": 0.1,
          "Explosion": 0.75,
          "Blunt": 0.75
        }
      },
      "ProfilesRequiringPermission": []
    },
    "RidableDrones": {
      "DefaultProfile": {
        "DroneProperties": {
          "MovementAcceleration": 7.5,
          "AltitudeAcceleration": 7.5
        },
        "DamageScale": {
          "Generic": 0.1,
          "Heat": 0.1,
          "Bullet": 0.1,
          "AntiVehicle": 0.1
        }
      },
      "ProfilesRequiringPermission": []
    },
    "MegaDrones": {
      "DefaultProfile": {
        "DroneProperties": {
          "KillInWater": false,
          "MovementAcceleration": 20.0,
          "AltitudeAcceleration": 20.0,
          "LeanWeight": 0.1
        },
        "DamageScale": {
          "Generic": 0.1,
          "Heat": 0.05,
          "Bullet": 0.05,
          "AntiVehicle": 0.1,
          "Explosion": 0.1,
          "Blunt": 0.25
        }
      },
      "ProfilesRequiringPermission": []
    }
  }
}

If you own the turret, it won't attack any drone you deployed. That's an intentional feature. I can document that to avoid confusion in the future.

Let me know if you are seeing the issue with other players' turrets or sam sites, or with static sam sites.

I understand that my sam/turrets won't attack my drone ;)

SAM in lauch site does not attack the drone. And neither do turrets at other people' bases.

I see. Could be a conflict. Do you have any plugins that alter turret or Sam Site targeting / authorization? If you tell me which ones, I can test with them.

Also, please make sure you DID NOT grant the targetabledrones.untargetable permission, since that exempts your drones from being targeted.

maybe these two ?

https://umod.org/plugins/sam-site-authorization
samsite.alltarget: true

https://umod.org/plugins/automatic-authorization

 

All plugins on my server.

01 "Advert Messages" (3.0.2) by LaserHydra (0.01s) - AdvertMessages.cs
02 "Airstrike" (0.3.6) by k1lly0u (0.17s) - Airstrike.cs
03 "Always Day" (1.0.1) by Orange (0.31s) - AlwaysDay.cs
04 "Arkan" (1.0.18) by Antidote (1.60s) - Arkan.cs
05 "Automatic Authorization" (1.3.0) by k1lly0u/Arainrr (1.04s) - AutomaticAuthorization.cs
06 "Backpacks" (3.6.0) by LaserHydra (36.05s) - Backpacks.cs
07 "Better Chat" (5.2.6) by LaserHydra (0.09s) - BetterChat.cs
08 "Blueprint Manager" (1.1.6) by Orange (0.41s) - BlueprintManager.cs
09 "Bradley Guards" (1.1.4) by Krungh Crow (26.37s) - BradleyGuards.cs
10 "BradleyTiers" (1.0.5) by Krungh Crow (4.92s) - BradleyTiers.cs
11 "Building Grades" (1.0.4) by Default/Arainrr (0.01s) - BuildingGrades.cs
12 "Coloured Chat" (2.2.7) by collect_vood (0.03s) - ColouredChat.cs
13 "Compound Options" (1.1.7) by FastBurst (2.08s) - CompoundOptions.cs
14 "ConnectMessages" (0.1.1) by Mroczny (0.00s) - ConnectMessages.cs
15 "Convert Status" (1.0.8) by Orange (0.08s) - ConvertStatus.cs
16 "Copy Paste" (4.1.27) by misticos (0.75s) - CopyPaste.cs
17 "Craft Multiplier" (1.4.1) by Arainrr (0.03s) - CraftMultiplier.cs
18 "Crafting Controller" (3.2.2) by Whispers88 (0.56s) - CraftingController.cs
19 "Dangerous Treasures" (2.2.0) by nivex (28.09s) - DangerousTreasures.cs
20 "Death Notes" (6.3.5) by LaserHydra (8.13s) - DeathNotes.cs
21 "Drone Pilot" (1.0.4) by k1lly0u (5.76s) - DronePilot.cs
22 "Drone Settings" (1.1.0) by WhiteThunder (0.31s) - DroneSettings.cs
23 "Entity Reducer" (2.1.0) by Arainrr (19.64s) - EntityReducer.cs
24 "Event Randomizer" (0.3.4) by mvrb (2.99s) - EventRandomizer.cs
25 "Extended Recycler" (1.1.0) by Orange (0.51s) - ExtendedRecycler.cs
26 "FancyDrop" (2.9.4) by FastBurst (7.79s) - FancyDrop.cs
27 "Furnace Splitter" (2.3.2) by FastBurst (4.85s) - FurnaceSplitter.cs
28 "Gathering Manager" (2.2.75) by Mughisi (0.26s) - GatherManager.cs
29 "Guarded Crate" (1.5.3) by Bazz3l (9.06s) - GuardedCrate.cs
30 "HeliControl" (1.4.0) by Shady (6.29s) - HeliControl.cs
31 "Image Library" (2.0.58) by Absolut & K1lly0u (1.23s) - ImageLibrary.cs
32 "Instant Mixing Table" (1.0.0) by MJSU (0.00s) - InstantMixingTable.cs
33 "Inventory Viewer" (4.0.4) by Whispers88 (0.00s) - InventoryViewer.cs
34 "Item Skin Randomizer" (1.5.4) by Orange (0.03s) - ItemSkinRandomizer.cs
35 "Kits" (4.0.12) by k1lly0u (1.27s) - Kits.cs
36 "Custom Auto Kits" (1.2.5) by Absolut/Arainrr (0.02s) - CustomAutoKits.cs
37 "Laptop Crate Hack" (1.1.5) by TheSurgeon/Arainrr (0.31s) - LaptopCrateHack.cs
38 "Lock Master" (1.1.7) by FastBurst (4.51s) - LockMaster.cs
39 "Magic Air Strike Panel" (1.0.3) by MJSU (0.41s) - MagicAirStrikePanel.cs
40 "Magic Airdrop Panel" (1.0.1) by MJSU (0.34s) - MagicAirdropPanel.cs
41 "Magic Bradley Panel" (1.0.1) by MJSU (0.34s) - MagicBradleyPanel.cs
42 "Magic Cargo Ship Panel" (1.0.1) by MJSU (0.33s) - MagicCargoShipPanel.cs
43 "Magic Ch47 Panel" (1.0.1) by MJSU (0.34s) - MagicCh47Panel.cs
44 "Magic Coordinates Panel" (1.0.3) by MJSU (0.63s) - MagicCoordinatesPanel.cs
45 "Magic Crash Panel" (1.0.1) by MJSU (0.34s) - MagicCrashPanel.cs
46 "Magic Dangerous Treasures Panel" (1.0.3) by MJSU (0.63s) - MagicDangerousTreasuresPanel.cs
47 "Magic Heli Panel" (1.0.2) by MJSU (0.56s) - MagicHeliPanel.cs
48 "Magic Loot" (1.0.4) by collect_vood & Norn (13.85s) - MagicLoot.cs
49 "Magic Message Panel" (1.2.1) by MJSU (0.24s) - MagicMessagePanel.cs
50 "Magic Oil Rig Panel" (1.0.1) by MJSU (0.60s) - MagicOilRigPanel.cs
51 "Magic Panel" (1.0.6) by MJSU (0.50s) - MagicPanel.cs
52 "Magic Players Panel" (1.0.2) by MJSU (0.00s) - MagicPlayersPanel.cs
53 "Magic Radiation Panel" (1.0.1) by MJSU (0.65s) - MagicRadiationPanel.cs
54 "Magic Rain Of Fire Panel" (1.0.1) by MJSU (0.41s) - MagicRainOfFirePanel.cs
55 "Magic Sleepers Panel" (1.0.2) by MJSU (0.01s) - MagicSleepersPanel.cs
56 "Metabolism" (2.6.1) by Wulf/lukespragg (1.24s) - Metabolism.cs
57 "Mini-Copter Options" (2.0.7) by Pho3niX90 (12.68s) - MiniCopterOptions.cs
58 "NTeleportation" (1.6.4) by nivex (0.55s) - NTeleportation.cs
59 "No Give Notices" (0.3.0) by Wulf (0.00s) - NoGiveNotices.cs
60 "NoWorkbench" (0.1.51) by k1lly0u (0.00s) - NoWorkbench.cs
61 "PermissionsManager" (2.0.5) by Steenamaroo (0.05s) - PermissionsManager.cs
62 "PlayerAdministration" (1.6.7) by ThibmoRozier (0.07s) - PlayerAdministration.cs
63 "Quick Smelt" (5.1.3) by Iv Misticos (2.31s) - QuickSmelt.cs
64 "Quick Sort" (1.5.2) by [email protected] (21.42s) - QuickSort.cs
65 "Rad Town Loot" (1.1.5) by Krungh Crow (0.41s) - RadTownLoot.cs
66 "Raidable Bases" (2.1.3) by nivex (17.42s) - RaidableBases.cs
67 "RainOfFire" (0.2.52) by emu / k1lly0u (1.10s) - RainOfFire.cs
68 "Recycler Speed" (2.0.0) by Ryz0r/yetzt (0.00s) - RecyclerSpeed.cs
69 "Remover Tool" (4.3.29) by Reneb/Fuji/Arainrr (0.02s) - RemoverTool.cs
70 "RocketFail" (1.0.2) by bmgjet (0.01s) - RocketFail.cs
71 "SAMSiteAuth" (2.3.3) by haggbart (0.01s) - SAMSiteAuth.cs
72 "Scrap Raid Protection" (1.2.4) by mr01sam (122.65s) - ScrapRaidProtection.cs
73 "SimpleKDR" (2.0.3) by David (0.14s) - SimpleKDR.cs
74 "Spawn Mini" (2.11.0) by SpooksAU (4.54s) - SpawnMini.cs
75 "Stack Modifier" (1.0.5) by Khan (27.85s) - StackModifier.cs
76 "Targetable Drones" (1.0.0) by WhiteThunder (1.00s) - TargetableDrones.cs
77 "Timed Execute" (0.7.4) by PaiN & misticos (0.07s) - TimedExecute.cs
78 "Vanish" (1.5.5) by Whispers88 (0.06s) - Vanish.cs
79 "WelcomePanel" (2.1.4) by David (0.04s) - WelcomePanel.cs
80 "ZLevelsRemastered" (3.0.0) by Default (5.93s) - ZLevelsRemastered.cs

Thanks, I'll try those two plugins and the cvar out after work. In the meantime feel free to temporarily unload those plugins and change the cvar to see if the drones become targetable, to help narrow it down.

Glancing at the code of both plugins, I don't suspect either of causing the issue. The cvar raises an eyebrow, but from what I remember, the vanilla behavior when using that cvar will target drones. Do you recall if drones were being targeted prior to installing this plugin? If not, then the cause is almost certainly another plugin you already had.

Plugins removed, server restarted and still the same problem.

I didn't have a drone on the server before, until I added the Targetable Drones plugin

targetabledrones.untargetable - revoked for all groups :)

I suggest unloading Targetable Drones, making sure samsite.alltarget is 1, and then fly a drone above a sam site. If no other plugins are interfering, then the sam site should target it, without predicting its movement. If that's going well, then load the Targetable Drones plugin and see if the Sam Site will still attack the drone. If it no longer targets it, I may have some ideas.

I just looked at the code and will recap the requirements.

  • The drone must be above the Sam site to be targeted.
  • The drone must not have been deployed by the same player who deployed the Sam Site.
  • The player who deployed the drone must not have the untargetable permission.
  • The drone must not be on the ground.
  • The drone must not be a delivery drone.
  • The drone must be remote controlled from a Computer Station or hovering via the Drone Hover plugin.
I have not tested with the Drone Pilot plugin which I see you have installed, so it may not be compatible at the moment. If you have so far been testing with that plugin, please try remote-controlling a drone with a computer station instead to see if is targeted then.

Merged post

I just released an update which adds compatibility with the Drone Pilot plugin. Let me know if that resolves the issue for you.

As a word of disclaimer, while I extensively design and test my 12 current and many upcoming drone plugins to work with each other, I put no effort into designing them to be compatible with Drone Pilot, since the author of that plugin intended for it to be a temporary measure until Drones were released. As it so happens, drones were already remote controlalble via computer stations in the same game update (where the Drone Pilot code was largely copied from), so I generally consider that plugin obsolete. I realize it does offer a somewhat unique experience for flying drones, but my hope is that some of my future plugins can help accomodate different flying styles in some way (for example, Ridable Drones now allows piloting via a chair).