Problems with road signs & bases without cabinet

Hello,

unfortunately I have two questions / problems. I do not get on and need help.

I have this config that allows PvE with PvP zones. In a PvE zone you can do everything. Now to the actual problem, on the entire map you can not mine road signs, I have already read a thread where someone trolled, but that did not help me. I even entered the file there with me and it does not work.

I also do not understand where I have to enter what ? Can someone maybe provide me with a solution ? Is there a list with the commands ? I have 80 players on the server and now this no longer works.

Furthermore another problem, if a house is set without a cabinet, you can not do any damage. Is it possible to set it so that a house without a cabinet gets damage even in a PvE zone ?

Do you see an overview of the commands? I'm very sorry if the questions have already been asked a few times, my english is not so good and I can't find a solution.

It would be nice if someone would just adapt my file, or send me directly the right things to insert. I have so far used nextgenPVE and am a little overwhelmed that there is no UI in the plugin and you have to set everything in a file. I hope for quick help.

I have sent my code below with.

Thanks in advance

Translated with http://www.DeepL.com/Translator (free version)

{
  "Config Version": "2.0.0",
  "Default RuleSet": "default",
  "Configuration Options": {
    "handleDamage": true,
    "useZones": true
  },
  "Mappings": {
    "default": "default",
    "3": "pvp",
	"5": "pvp",
	"2": "pvp",
	"6": "pvp",
	"7": "pvp",
	"8": "pvp",
	"10": "pvp",
	"11": "pvp",
	"13": "pvp",
	"14": "pvp",
	"100": "pvp"
  },
  "Schedule": {
    "enabled": false,
    "useRealtime": false,
    "broadcast": false,
    "entries": []
  },
  "RuleSets": [
    {
      "name": "default",
      "enabled": true,
      "defaultAllowDamage": false,
      "flags": "HumanNPCDamage, LockedBoxesImmortal, LockedDoorsImmortal",
      "rules": [
        "anything can hurt dispensers",
        "heli can hurt anything",
		"players cannot hurt players",
        "players cannot hurt traps",
        "players cannot hurt teslacoil",
        "players cannot hurt doors",
        "players cannot hurt buildings",
        "players cannot hurt deployables",
        "players cannot hurt storages",
        "players cannot hurt barricades",
        "players cannot hurt balloons",
        "players cannot hurt minicopter",
        "players cannot hurt samsite",
        "players can hurt npcs",
        "players can hurt npcscientist",
        "players can hurt heli",
        "players can hurt horse",
        "players can hurt npcmurderer",
        "explosives cannot hurt players",
		"explosives cannot hurt buildings",
		"explosives cannot hurt deployables",
		"explosives cannot hurt storages",
		"traps cannot hurt players",
        "traps can hurt npcs",
        "teslacoil can hurt anything",
        "teslacoil cannot hurt players",
        "barricades cannot hurt players",
        "highwalls cannot hurt players",
        "npcs can hurt players",
        "npcs can hurt npcs",
        "npcs can hurt npcmurderer",
        "npcs can hurt npcscientist",
        "npcscientist can hurt npcs",
        "npcscientist can hurt players",
        "npcscientist can hurt npcmurderer",
        "npcmurderer can hurt npcs",
        "npcmurderer can hurt players",
        "npcmurderer can hurt npcscientist",
        "fire cannot hurt players",
        "fire cannot hurt traps",
        "fire cannot hurt teslacoil",
        "fire cannot hurt doors",
        "fire cannot hurt buildings",
        "fire cannot hurt deployables",
        "fire cannot hurt storages",
        "fire can hurt npcs",
        "fire can hurt npcmurderer",
        "fire can hurt npcscientist",
        "anything can hurt resources",
        "anything can hurt samsite",
        "samsite can hurt minicopter",
        "samsite can hurt players",
        "samsite can hurt heli",
        "samsite can hurt balloons",
		"mini can hurt mini",
		"minicopter can hurt minicopter"
      ]
    },
    {
      "name": "pvp",
      "enabled": true,
      "defaultAllowDamage": true,
      "flags": "HumanNPCDamage, LockedBoxesImmortal, LockedDoorsImmortal",
      "rules": []
    }

  ],
  "Allow Killing Sleepers": false,
  "Entity Groups": [
    {
      "name": "deployables",
      "members": "mining.pumpjack, mining.quarry, mining.pumpjack, mining_quarry, miningquarry_static, pumpjack-static, small_refinery_static, furnace_static, refinery_small_deployed, planter.large.deployed, planter.small.deployed, furnace.large, furnace, generator.wind.scrap, electric.windmill.small, water_catcher_large, water_catcher_small, waterpurifier.deployed, waterstorage, waterbarrel, watchtower.wood, composter, water.catcher.small, water.catcher.large, water.barrel, large.furnace, vendingmachine.deployed",
      "exclusions": ""
    },
    {
      "name": "dispensers",
      "members": "BaseCorpse, HelicopterDebris",
      "exclusions": ""
    },
    {
      "name": "minicopter",
      "members": "minicopter, minicopter.entity, scraptransporthelicopter",
      "exclusions": ""
    },
    {
      "name": "balloons",
      "members": "hotairballoon",
      "exclusions": ""
    },
    {
      "name": "samsite",
      "members": "sam_site_turret_deployed",
      "exclusions": "sam_static, samsite_static"
    },
    {
      "name": "explosives",
      "members": "explosive.satchel, explosive.timed, ammo.rocket.smoke, ammo.rocket.basic, ammo.rocket.hv, ammo.rocket.smoke, ammo.rocket.fire, ammo.rifle.incendiary, ammo.rifle.explosive, grenade.f1, grenade.beancan, ammo.grenadelauncher.he, ammo.shotgun.fire, arrow.fire, surveycharge",
      "exclusions": ""
    },
    {
      "name": "players",
      "members": "BasePlayer",
      "exclusions": ""
    },
    {
      "name": "traps",
      "members": "AutoTurret, BearTrap, FlameTurret, Landmine, GunTrap, ReactiveTarget, spikes.floor",
      "exclusions": ""
    },
    {
      "name": "teslacoil",
      "members": "TeslaCoil, teslacoil.deployed",
      "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": "heli",
      "members": "BaseHelicopter",
      "exclusions": ""
    },
    {
      "name": "doors",
      "members": "door.hinged.toptier, door.hinged.wood, door.hinged.metal, door.double.hinged.metal, door.double.hinged.toptier, door.double.hinged.wood, door.hinged.garage_a, floor.ladder.hatch",
      "exclusions": ""
    },
    {
      "name": "buildings",
      "members": "wall, wall.frame, wall.half, wall.low, wall.doorway, wall.frame.shopfront, wall.frame.shopfront.metal, wall.window, foundation, foundation, foundation.steps, foundation.triangle, floor.frame, floor.grill, floor, floor.triangle, wall.frame.garagedoor, wall.frame.fence, wall.frame.cell, wall.window.bars, shutter.metal.embrasure, shutter.wood.a, wall.window.glass.reinforced, wall.window.bars.toptier, wall.window.bars, wall.window.bars.metal, wall.window.bars.wood",
      "exclusions": ""
    },
    {
      "name": "horse",
      "members": "ridablehorse.entity, horse.entity, testridablehorse",
      "exclusions": ""
    },
    {
      "name": "npcs",
      "members": "NPCPlayerApex, BradleyAPC",
      "exclusions": ""
    },
    {
      "name": "npcscientist",
      "members": "ScientistNPC, scientist, ALLScientist",
      "exclusions": ""
    },
    {
      "name": "npcmurderer",
      "members": "Murderer, NPCMurderer, scarecrow",
      "exclusions": ""
    },
    {
      "name": "fire",
      "members": "FireBall, fireball_small, fireball_small_arrow, fireball_small_shotgun, flamethrower_fireball, flameturret_fireball, oilfireball2, oilfireballsmall",
      "exclusions": ""
    },
    {
      "name": "storages",
      "members": "box.wooden.large, woodbox_deployed, fridge.deployed, locker.deployed, cupboard.tool.deployed",
      "exclusions": ""
    },
     "name": "roadsigns",
     "members": "roadsign, roadsign1, roadsign2, roadsign3, roadsign4, roadsign5, roadsign6",
     "exclusions": "roadsign, roadsign1, roadsign2, roadsign3, roadsign4, roadsign5, roadsign6"
    {
      "name": "resources",
      "members": "ResourceEntity, TreeEntity, OreResourceEntity",
      "exclusions": ""
    }
  ]
}

Hi,
you cannot destroy roadsigns, because you added them as member AND excluded them at the same time.

You will need to remove them from the "exclusions". By the way, the roadsign section is missing the parentheses.

{
      "name": "roadsigns",
      "members": "roadsign1, roadsign2, roadsign3, roadsign4, roadsign5, roadsign6, roadsign7, roadsign8, roadsign9",
      "exclusions": ""
    }​
"rules": [
        "anything can hurt roadsigns",
......

Thank you, that helped and worked well !! :)

Remains only the problem with the bases, things that are built without Cupboard, that these can also get damage. For example, by weapons. The normal decay is on.

"flags": "HumanNPCDamage, LockedBoxesImmortal, LockedDoorsImmortal",

to

"flags": "AuthorizedDamage, HumanNPCDamage, LockedBoxesImmortal, LockedDoorsImmortal",

 

also this config is a mess and needs cleaned up. many of those rules are redundant and not needed. 

Hello Nivex,

thank you for your feedback. I can imagine that this configuration is a mess. Unfortunately we had to help ourselves somehow. Since we have changed everything on the fly, because otherwise a PvP chaos would have broken out.

Unfortunately, I do not know myself with it, can not explain the individual flags. Because I have not found a list with the settings. Is there a web generator, or can you somehow set things differently with a UI ? It's pretty hard if you don't understand the plugin properly especially with the flags or something like that. (Unfortunately we don't even know what kind of commands there are. For example anything can hurt dispensers) Can you find these commands somewhere ?

I'm sorry, I've dealt with this extensively but I can't find any solutions. Would be great if there would be something like a Ui on the server, or a web generator.

Thanks for your help so far, at least everything works so far.

Only alone ZombieHorde gets no damage, there no one can help me by chance? You can kill them but not mine them....

Greetings

    {
      "name": "dispensers",
      "members": "BaseCorpse, HelicopterDebris, PlayerCorpse, NPCPlayerCorpse, HorseCorpse",
      "exclusions": ""
    },​

change your dispensers entity group to match this and it will fix the zombie problem

all of this is explained in detail in the documentation, and many examples are provided in many support threads to get a grasp on how rules are created. you must add your entities to an entity group, specify the members, and then create a rule that utilizes them.

so if you want to allow players to damage roadsigns then you would create the rule:

players can hurt roadsigns

for this rule you would need both entity groups for players and roadsigns in order for the rule to be valid (it must know what types `players` and `roadsigns` are referenced to in game)

you already have the players entity group, so you don't need it:

    {
      "name": "players",
      "members": "BasePlayer",
      "exclusions": ""
    },​

BasePlayer is a member of the players entity group and is the type the plugin will look for when trying to discern what players is. you can find member types by looking at the entity and then typing /tpve_prod. it will give you the entity type and the shortname of the entity. you only need one of these names in order for it to work.

then you need the roadsigns entity group:

    {
      "name": "roadsigns",
      "members": "LootContainer",
      "exclusions": ""
    },​

as you can see, I am using the type instead of 9 shortnames

one issue off the bat is:

FireBall, fireball_small, fireball_small_arrow, fireball_small_shotgun​

this is redundant as fireball_small, fireball_small_arrow, and fireball_small_shotgun all inherit the type FireBall. so therefore FireBall is the only member needed here, and will work for all 3 of those shortnames.

both type and shortname are case sensitive and must be written exactly as they are shown. BasePlayer must be written as BasePlayer, not baseplayer. scraptransporthelicopter must be written as ScrapTransportHelicopter, etc. also known as camel case. if you don't type it properly, then the rule will not work properly.

the difference between type and shortname is that shortname inherits a type. inherit is the general definition of the word. this does come with limitations! type, for example, cannot be used to cover all npc players even though all npc players inherit BasePlayer. this is due to limitations by Oxide (Reflection not allowed for Type.GetType, etc, where I cannot use Type.GetType("NPCMurderer").Name == player.GetType().Name otherwise it would be much easier to make rules). therefore you must use their type using /tpve_prod. maybe @Wulf could add a helper for us to use instead? :)



Merged post

also, i've already modified this exact config minus a couple rule changes from can to cannot

but i've taken care of those here: https://pastebin.com/kPa3DCBx
nivex

the difference between type and shortname is that shortname inherits a type. inherit is the general definition of the word. this does come with limitations! type, for example, cannot be used to cover all npc players even though all npc players inherit BasePlayer. this is due to limitations by Oxide (Reflection not allowed for Type.GetType, etc, where I cannot use Type.GetType("NPCMurderer").Name == player.GetType().Name otherwise it would be much easier to make rules). therefore you must use their type using /tpve_prod. maybe @Wulf could add a helper for us to use instead? :)

Pretty sure you can just check if they are an NPC or not, and if they have a valid Steam ID or not?

I can't check because its a string variable, not a variable of BasePlayer, etc

Hello,

thank you very much for your effort. I will implement the things and thank you for your help!

Toliman had already helped me a lot too.

The config was from another user, here in the forum. Have this but now also edited.

It might just be easier if there is a list of commands, or settings. (Would be for beginners perhaps easier to understand)

Thank you very much for everything!

I have no plans to make it any easier because I've already rewritten the entire default configuration file to make things much easier for everyone to have a proper config from the start.

I provided you a configuration file at the bottom of my last post...  https://pastebin.com/kPa3DCBx