Buildings receive damage when damage come from outside the zoneSolved

I have a pve zone that nothing can hurt building/entity. If I rocket a base when i'm in this zone, it will not do any damage.
However, if i'm outside the zone and I rocket a base inside the pve zone, it will do damage. Any idea how to fix this problem?

[
   {
      "name":"default",
      "enabled":true,
      "defaultAllowDamage":true,
      "flags":"HumanNPCDamage",
      "rules":[
         "anything can hurt players"
      ]
   },
   {
      "name":"pve",
      "enabled":true,
      "defaultAllowDamage":true,
      "flags":"HumanNPCDamage, AuthorizedDamage, TwigDamage, CupboardOwnership",
      "rules":[
         "players cannot hurt buildings",
         "players cannot hurt traps",
         "players cannot hurt barricades",
         "players cannot hurt highwalls",
         "players cannot hurt vehicles",
         ......... the list goes on
      ]
   }
]​

i will look into this when i can

Merged post

I can't specifically tell you whats wrong with your config because you didn't provide all of it. it appears this might be due to the AuthorizedDamage flag. this flag allows you to deal damage to entities you built, if you are authorized on the TC associated with it, or if it has no TC at all

however, none of that matters because there's a much simpler approach to this

 

"defaultAllowDamage":true,​

PVE rulesets should always have this setting false, and PVP rulesets should always have this setting true. it is much easier to create rulesets this way because PVE rulesets are intended to block the majority of damage, while PVP rulesets are not. therefore your PVE ruleset should have rules allowing damage rather than rules blocking damage. this will solve your issue. you should do all of this without the AuthorizedDamage flag. once you're satisified with your rules then you can re-add the flag.

Merged post

@renzWTF

PLEASE READ CAREFULY AS I FOUND AN "EXPLOIT".
When you're outside the zone, you can damage entities inside the zone (I already reported this issue, the new one is similar).
People are throwing c4/satchel in the protected zone (ie on a door), then they F1 kill, then they spawn in another zone that allow damage. When the c4/satchel blow, it will break the door. (you can delete my comment so less people see this) 

What I try to achieve and it's working so far is:
- I want people that own the entity to be able to destroy them
- Anyone could be able to destroy twig
- Anyone could be able to destroy entities if they have cupboard ownership
- Entities should be protected by the cupboard radius

This is my config file, I changed defaultAllowDamage to false

Thank you for your work!

{
   "Config Version":"1.2.0",
   "Default RuleSet":"default",
   "Configuration Options":{
      "handleDamage":true,
      "useZones":true
   },
   "Mappings":{
      "default":"default",
      "pve":"pve"
   },
   "Schedule":{
      "enabled":false,
      "useRealtime":false,
      "broadcast":false,
      "entries":[
         
      ]
   },
   "RuleSets":[
      {
         "name":"default",
         "enabled":true,
         "defaultAllowDamage":true,
         "flags":"HumanNPCDamage",
         "rules":[
            "anything can hurt players"
         ]
      },
      {
         "name":"pve",
         "enabled":true,
         "defaultAllowDamage":false,
         "flags":"HumanNPCDamage, AuthorizedDamage, TwigDamage, CupboardOwnership",
         "rules":[
            "players cannot hurt buildings",
            "players cannot hurt traps",
            "players cannot hurt barricades",
            "players cannot hurt highwalls",
            "players cannot hurt vehicles",
            "players cannot hurt pvestuff",
            "players cannot hurt electricity",
            "fire cannot hurt buildings",
            "fire cannot hurt pvestuff",
            "fire cannot hurt electricity",
            "fire cannot hurt traps",
            "fire cannot hurt barricades",
            "fire cannot hurt highwalls",
            "fire cannot hurt vehicles"
         ]
      }
   ],
   "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, SamSite",
         "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, IceFence, barricade.cover.wood",
         "exclusions":""
      },
      {
         "name":"heli",
         "members":"BaseHelicopter",
         "exclusions":""
      },
      {
         "name":"npcs",
         "members":"NPCPlayerApex, BradleyAPC",
         "exclusions":""
      },
      {
         "name":"fire",
         "members":"FireBall",
         "exclusions":""
      },
      {
         "name":"resources",
         "members":"ResourceEntity, TreeEntity, OreResourceEntity",
         "exclusions":""
      },
      {
         "name":"buildings",
         "members":"BuildingBlock, SimpleBuildingBlock, cupboard.tool.deployed, Door, StabilityEntity, ShopFront, BaseLadder",
         "exclusions":""
      },
      {
         "name":"vehicles",
         "members":"_base_car_chassis.entity, 2module_car_spawned.entity, 3module_car_spawned.entity, 4module_car_spawned.entity, car_chassis_2module.entity, car_chassis_3module.entity, car_chassis_4module.entity, 1module_cockpit, 1module_cockpit_armored, 1module_cockpit_with_engine, 1module_engine, 1module_flatbed, 1module_rear_seats, 1module_storage, 2module_flatbed, 2module_fuel_tank, 2module_passengers, randommodular.entity, testridablehorse.prefab, testridablehorse, ridablehorse, rhib, rowboat, hotairballoon, scraptransporthelicopter, minicopter",
         "exclusions":""
      },
      {
         "name":"pvestuff",
         "members":"GraveyardFence, Candle, StaticInstrument, ChineseLantern, StrobeLight, CeilingLight, ceilinglight.deployed, ElectricBattery, AudioAlarm, SolarPanel, ComputerStation, VendingMachine, Composter, WorkBench, workbench3.deployed, workbench2.deployed, workbench1.deployed, NeonSign, xmas.lightstring.deployed, watchtower.wood, LiquidContainer, WaterPurifier, PoweredWaterPurifier, sofa.deployed, RepairBench, ResearchTable, DropBox, BaseVehicule, DecorDeployable, SleepingBag, SpinnerWheel, BaseOven, PlanterBox, Locker, MixingTable, BaseChair, BaseFuelLightSource, hobobarrel.deployed, WaterCatcher, SearchLight, FuelGenerator, ElectricWindmill, Signage, PhotoFrame, HitchTrough, BaseArcadeMachine, BoxStorage, Mailbox, skullspikes.deployed, PaddlingPool, SurvivalFishTrap",
         "exclusions":""
      },
      {
         "name":"electricity",
         "members":"rfreceiver, rfbroadcaster, electric.sprinkler.deployed, elevator, smartalarm, doorcontroller.deployed, igniter.deployed, laserdetector, teslacoil.deployed, xorswitch.entity, hbhfsensor.deployed, electrical.memorycell.deployed, electric.flasherlight.deployed, electrical.branch.deployed, andswitch.entity, electrical.blocker.deployed, button, counter, orswitch.entity, splitter, electric.sirenlight.deployed, electrical.heater, electrical.random.switch.deployed, switch, timer, smartswitch, WaterPump",
         "exclusions":""
      }
   ]
}

your first report is exactly the same as your second report. in both instances the attacker is in a pvp zone when the damage happens. how the attacker got there is irrelevant

also, your zone is not in the config. it needs to be in the config. 

Yes it's what I thought, just wanted to let you know, since this can be a big issue for pve server using this.
Those are the plugins I use:

AdminPanel
AdminRadar
AdvertMessages
AlphaLoot
Arkan
AutomaticAuthorization
BetterChat
BetterChatMute
BetterChatMuteVoice
BlueprintManager
ChestStacks
ChinookCrateToBag
Clans
ClanTags
CleanTeam
CopyPaste
DeathNotes
FurnaceSplitter
GatherManager
ImageLibrary
Inbound
MagicPanel
MagicPlayersPanel
MaxCupboardAuths
NoGiveNotice
NPCDropGun
PlayerAdministration
PreventLooting
QuickSmelt
QuickSort
RecyclerSpeed
SaveAnnouncer
ServerArmour
ServerInfo
SignArtist
StashWarning
TimeOfDay
TruPVE
UIScaleManager
UnburnableMeat
Vanish
Welcomer
ZoneManager
ZonePVxInfo

this is an issue with your config not being setup correctly

your zone is not in the config. you must map the zone if you want TruePVE to control it

"pve":"pve"​

this must be wrong. it must be zonename or zoneid then pve. you must use what you set it up as in zone manager. post the data file

TruePVE is already controlling it, people can't damage other players base, its just that specific "exploit" that work. I have trolls on my server abusing this.

Are you saying if I change my id from "pve", to "my_pve_zone" and change the mapping, this exploit will be resolved?

this is my zone config:

{
  "definitions": [
    {
      "Name": "pve",
      "Radius": 20.0,
      "Radiation": 0.0,
      "Comfort": 0.0,
      "Temperature": 0.0,
      "SafeZone": false,
      "Location": "725 0 1340",
      "Size": "730 1000 1700",
      "Rotation": "0 90 0",
      "Id": "pve",
      "ParentID": null,
      "EnterMessage": "",
      "LeaveMessage": "",
      "Permission": null,
      "EjectSpawns": null,
      "Enabled": true,
      "Flags": "None"
    }
  ]
}
​

yes. I don't know why you have everything labeled as pve. change it

Merged post

ok just tried your config myself and it is most definitely not working correctly, even with my suggestions

Merged post

so i've looked into this for you. the issue is the plugin was not designed to work the way you are intending to use it. its intended that default be PVE, and any PVP be added via mapping. not the other way around. it has never functioned this way.

but that's ok, because I'll add support for this. no reason it shouldn't be able to work both ways.

Merged post

one last thing. I don't think you need TruePVE for what you want. set "SafeZone": true, in that file above and uninstall TruePVE.

I want to let player do damage against each other, but no damage against each other buildings. For example if someone build an arena in the pve zone, they shoul be able to kill each other. Looking at SafeZone flag it does not allow you to do that, and looking at the plugin help page this flag seems to cause all sort of problems. Thx for the help

Locked automatically