Bradley not running over NPCs and scientistsSolved
Sorry  ni... for messing your  threads.

ok checked this out,
it is definatly truePVE blocking bradley
killing   scarecrow & scientist..... from contact damage. (running over)

load  it in & they  don't die,   unload it and they do die.

But absolutly nothing has changed in the config from last month ot this month other that plugin updates..

I suspect the
   "name": "npcs",
      "members": "NPCPlayerApex, BradleyAPC",
      "exclusions": ""
​

 

but it was not changed , when it suddenly stopped working a month or 2 months ago

{
  "Config Version": "1.2.0",
  "Default RuleSet": "default",
  "Configuration Options": {
    "handleDamage": true,
    "useZones": true
  },
  "Mappings": {
    "default": "default",
    "raiding": "raiding"
  },
  "Schedule": {
    "enabled": false,
    "useRealtime": false,
    "broadcast": true,
    "entries": [
      "16:00 raiding Raiding & PVP enabled!",
      "18:00 default PvE only enabled!"
    ]
  },
  "RuleSets": [
    {
      "name": "default",
      "enabled": true,
      "defaultAllowDamage": false,
      "flags": "HumanNPCDamage, LockedBoxesImmortal, LockedDoorsImmortal, TrapsIgnorePlayers, TurretsIgnorePlayers",
      "rules": [
        "samsites_FP can hurt balloons",
        "samsites_PLR cannot hurt balloons",
        "samsites_LOR can hurt balloons",
        "anything can hurt npcs",
        "players cannot hurt heli",
        "players can hurt NPC_heli",
        "samsites_FP can hurt heli",
        "samsites_PLR cannot hurt heli",
        "samsites_LOR can hurt heli",
        "teslacoils cannot hurt players",
        "anything can hurt dispensers",
        "anything can hurt players",
        "anything can hurt traps",
        "anything can hurt resources",
        "players can hurt barricades",
        "players cannot hurt players",
        "traps cannot hurt players",
        "barricades cannot hurt players",
        "highwalls cannot hurt players",
        "fire cannot hurt players"
      ]
    },
{
      "name": "raiding",
      "enabled": true,
      "defaultAllowDamage": true,
      "flags": "AuthorizedDamage, HumanNPCDamage",
      "rules": [
        "anything can hurt dispensers",
        "anything can hurt players",
        "players can hurt players",
        "anything can hurt traps",
        "traps can hurt players",
        "players can hurt barricades",
        "barricades can hurt players",
        "highwalls can hurt players",
        "anything can hurt heli",
        "anything can hurt npcs",
        "fire cannot hurt players",
        "anything can hurt resources"
      ]
    }
  ],
  "Allow Killing Sleepers": false,
  "Entity Groups": [
    {
      "name": "dispensers",
      "members": "BaseCorpse, HelicopterDebris",
      "exclusions": ""
    },
    {
      "name": "players",
      "members": "BasePlayer",
      "exclusions": ""
    },
    {
      "name": "traps",
      "members": "AutoTurret, BearTrap, FlameTurret, Landmine, GunTrap, ReactiveTarget, spikes.floor, TeslaCoil, teslacoil.deployed, electric.teslacoil",
      "exclusions": ""
    },
    {
      "name": "barricades",
      "members": "Barricade",
      "exclusions": ""
    },
    {
      "name": "highwalls",
      "members": "wall.external.high.stone, wall.external.high.wood, gates.external.high.wood, gates.external.high.wood",
      "exclusions": ""
    },
    {
   "name": "samsites_FP",
      "members": "sam_static, samrocket",
      "exclusions": ""
    },
    {
      "name": "samsites_PLR",
      "members": "sam_site_turret_deployed",
      "exclusions": ""
    },
    {
      "name": "samsites_LOR",
      "members": "ammo.rocket.smoke",
      "exclusions": ""
    },
    {
      "name": "heli",
      "members": "scraptransporthelicopter, minicopter.entity",
      "exclusions": ""
    },
    {
      "name": "NPC_heli",
      "members": "BaseHelicopter, CH47Helicopter",
      "exclusions": ""
    },
    {
      "name": "balloons",
      "members": "hotairballoon",
      "exclusions": ""
    },
    {
      "name": "npcs",
      "members": "NPCPlayerApex, BradleyAPC",
      "exclusions": ""
    },
    {
      "name": "teslacoils",
      "members": "TeslaCoil, teslacoil.deployed",
      "exclusions": ""
    },
    {
      "name": "fire",
      "members": "FireBall",
      "exclusions": ""
    },
    {
      "name": "resources",
      "members": "ResourceEntity, TreeEntity, OreResourceEntity",
      "exclusions": ""
    }
  ]
}

​
what color are these scarecrows on adminradar?
what color are these scientists on adminradar?

Merged post

also, please run a trace while it happens using tpve.trace in console and paste the trace file here
I spawned them in.....
using following command

spawn scarecrow
spawn scientist

BOTH die when true pve is NOT loaded and they are run over

load true PVE in and they dont die

Merged post

ok to answer your question ,  I loaded in admin radar

both yellows & blues get killed with TruePVE when its unloaded
I can confirm that it has nothing to do with the update, as this happens in 1.1.95 and 1.1.8 as well which dates back 7 months

======================
==  STARTING TRACE  ==
==  21:04:32.90619  ==
======================
 From: BradleyAPC, bradleyapc
 To: Scientist, scientist
   No shared locations (empty location) - no exclusions
 No exclusion found - looking up RuleSet...
 Using RuleSet "default"
 No match in pre-checks; evaluating RuleSet rules...
  Initator EntityGroup matches: npcs
  Target EntityGroup matches: none
   Evaluating Rules...
    Checking direct initiator->target rules...
    No direct match rules found; continuing...
     Evaluating "npcs->any"...
      No match found
    No matching initiator->any rules found; continuing...
    No matching any->target rules found; returning default value: False​

This is why they're not taking damage

"defaultAllowDamage": false,​

and it returns false. so it needs a rule, but I found a bug while making a rule for this so I'm checking that out
you can test it easily with "tank commander"
and I just found a bug when using that specific rule. OnEntityTakeDamage.NullReferenceException spam

Merged post

I did test it, and I found that it happens because there's no rule to allow it, and defaultAllowDamage is false

Merged post

I also updated my above answer since it does not solve the problem yet
ah......ok...
look.... thanks for all your help on this
ill keep monitoring the thread....
and let you get on with it....
  Initator EntityGroup matches: npcs
  Target EntityGroup matches: none

so one issue is the target entitygroup should also be npcs. trying to figure out why it's not



Merged post

Found the solution:

    {
      "name": "npcs",
      "members": "Scientist, ScientistNPC, Murderer, NPCMurderer, HumanNPC, NPCPlayerApex, NPCPlayer, HTNPlayer, BradleyAPC",
      "exclusions": ""
    },

Here's the problem:

NPCPlayerApex, Scientist, ScientistNPC, Murderer, NPCMurderer, HumanNPC and NPCPlayerApex are all sub-types that inherit NPCPlayer.

But you cannot just list NPCPlayer to cover all 6 sub-types because it compares strings instead of types. So this is why some rules do not work when they should. The only way is to create an entity group and use the /tpve_prod command on each entity and add the type or prefab name. You don't need to add both.

I'll try to find a way to change this in a future update

well we live and learn........

again tanks for your help....

Merged post

yep.. that fixed it... and some other stuff,

This is gonna make a lot of people happly
Locked automatically