TruePVE

Better PVE/PVP implementation

Total Downloads: 4,637 - First Release: Mar 25, 2016 - Last Update: Mar 7, 2018

5/5, 26 likes
  1. I did have the flag AuthorizedDamage set, and I've double and triple checked. Yet I still have this issue; you still cannot damage a building you own. Any suggestions?
     
  2. post your config here please. lets see it.
     
  3. Code:
    {
      "Config Version": "0.7.15",
      "Default RuleSet": "default",
      "Configuration Options": {
        "handleDamage": true,
        "handleLooting": true,
        "useZones": true
      },
      "Mappings": {
        "default": "default"
      },
      "Schedule": {
        "enabled": false,
        "useRealtime": false,
        "broadcast": false,
        "entries": []
      },
      "RuleSets": [
        {
          "name": "default",
          "enabled": true,
          "defaultAllowDamage": false,
          "flags": "HumanNPCDamage, LockedBoxesImmortal, LockedDoorsImmortal, AuthorizedDamage, LootableCorpses, HeliDamageLocked",
          "rules": [
            "anything can hurt dispensers",
            "anything can hurt players",
            "players cannot hurt players",
            "anything can hurt traps",
            "traps cannot hurt players",
            "players can hurt barricades",
            "barricades cannot hurt players",
            "highwalls cannot hurt players",
            "anything can hurt heli"
          ]
        }
      ],
      "Entity Groups": [
        {
          "name": "dispensers",
          "members": "TreeEntity, BaseResource, BaseCorpse, HelicopterDebris",
          "exclusions": ""
        },
        {
          "name": "players",
          "members": "BasePlayer",
          "exclusions": ""
        },
        {
          "name": "traps",
          "members": "AutoTurret, BearTrap, FlameTurret, Landmine, GunTrap, ReactiveTarget, spikes.floor",
          "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": ""
        }
      ]
    }
    It's effectively default, except adding a couple of flags, I've also tried it completely default adding ONLY the "AuthorizedDamage" flag.

    Edit: Also, is there a way for Admins to override the ruleset? (i.e. admin damage buildings not owned by them)
     
  4. Having the Flag AuthorizedDamage should work, I don't see anything out of the ordinary that looks wrong.
    If the buildings were protected before the flag was inserted, means the plugin is working so putting that flag in should allow you to damage your own build.

    Admin, have the ability to kill an entity with "ent kill" just bind a key with bind <key> "ent kill" using f1 console. if you don't know already.

    everytime you make a change to the config of a plugin, you have to reload it for the changes to take affect. again you might have already done this. reload TruePVE in rcon console.

    also depending on what flags you have set might interfere with damaging some stuff. IE Boxes being immortal, but I'm not sure, . I have never tested it.
    some grades seem inpenetrable to some weapons and ammo. as far as a few tests I've done with AuthorizedDamage.





    Code:
    {
       "Config Version": "0.7.15",
       "Default RuleSet": "default",
       "Configuration Options": {
         "handleDamage": true,
         "handleLooting": true,
         "useZones": true
       },
       "Mappings": {
         "default": "default"
       },
       "Schedule": {
         "enabled": false,
         "useRealtime": false,
         "broadcast": false,
         "entries": []
       },
       "RuleSets": [
         {
           "name": "default",
           "enabled": true,
           "defaultAllowDamage": false,
           "flags": "AuthorizedDamage, HumanNPCDamage, LockedBoxesImmortal, LockedDoorsImmortal, LootableCorpses, HeliDamageLocked",
           "rules": [
             "anything can hurt dispensers",
             "anything can hurt players",
             "players cannot hurt players",
             "anything can hurt traps",
             "traps cannot hurt players",
             "players can hurt barricades",
             "barricades cannot hurt players",
             "highwalls cannot hurt players",
             "anything can hurt heli"
           ]
         }
       ],
       "Entity Groups": [
         {
           "name": "dispensers",
           "members": "TreeEntity, BaseResource, BaseCorpse, HelicopterDebris",
           "exclusions": ""
         },
         {
           "name": "players",
           "members": "BasePlayer",
           "exclusions": ""
         },
         {
           "name": "traps",
           "members": "AutoTurret, BearTrap, FlameTurret, Landmine, GunTrap, ReactiveTarget, spikes.floor",
           "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": ""
         }
       ]
    }
     
  5. Well that's been solved, onto problem two! I had NOT been 'reloading' the plugin (though I did attempt restarting the server), so thank you!

    NOW, however, if I attempt to add a PvP zone, then the plugin will revert the ENTIRE config file back to a default.

    I'm not 100% clear on the instruction for adding a zone to mapping. The Zone I want to add has the ID of 5, so I've done it like so;

    Code:
    "Mappings": {
      "default": "default",
      "5": "exclude" // exclude zone from TruePVE handling
    }
    Is this correct?
     
  6. that is not correct. In the line for the zone, just like it is for the default ruleset. you have to define the "zone" and the "ruleset"

    so it would be like this:

    "default": "default",
    "zoneid": "zoneruleset"



    rulesets: you have create the second ruleset for the zone. like below. pay attention to commas and brackets. misplace one of those. it will default to the default config.
    {
    "name": "default",
    "enabled": true,
    "defaultAllowDamage": false,
    "flags": "AuthorizedDamage, HumanNPCDamage, LockedBoxesImmortal, LockedDoorsImmortal, LootableCorpses, HeliDamageLocked",
    "rules": [
    "anything can hurt dispensers",
    "anything can hurt players",
    "players cannot hurt players",
    "anything can hurt traps",
    "traps cannot hurt players",
    "players can hurt barricades",
    "barricades cannot hurt players",
    "highwalls cannot hurt players",
    "anything can hurt heli"
    ]
    },
    {
    "name": "zoneruleset",
    "enabled": true,
    "defaultAllowDamage": true,
    "flags": "AuthorizedDamage, HumanNPCDamage, LockedBoxesImmortal, LockedDoorsImmortal, LootableCorpses, HeliDamageLocked",
    "rules": [
    "anything can hurt dispensers",
    "anything can hurt players",
    "players cannot hurt players",
    "anything can hurt traps",
    "traps cannot hurt players",
    "players can hurt barricades",
    "barricades cannot hurt players",
    "highwalls cannot hurt players",
    "anything can hurt heli"
    ]
    }
     
  7. If your config is reverting to default, then you likely have a syntax issue - meaning you're missing a comma, quote, bracket, etc. or you have an extra one somewhere. You can check the syntax at a number of online json validators.
    That will work fine assuming that you wish the zone to have default Rust PVP behavior. If you wish to have more advanced behavior or utilize any of TruePVE flags in the zone, then you need to do what Krazy J said and create a new ruleset.
     

  8. good morning, @ignignokt84,

    I was wondering if you had any more information on the "rocket turret" situation ? :)

    Also, I don't know why I keep getting spammed by these?
    I know I keep posting but it keeps happening. It is almost always caught when im not in game and am looking at rcon so not sure what causes it most times.

    Code:
    (19:37:07) | Calling hook CanBeTargeted resulted in a conflict between the following plugins: Vanish - False (Boolean), TruePVE (False (Boolean))(03:40:11) | Failed to call hook 'OnEntityTakeDamage' on plugin 'TruePVE v0.7.15' (NullReferenceException: Object reference not set to an instance of an object)
     
    Last edited by a moderator: May 27, 2017
  9. Nope, I don't. I haven't followed up on it yet.
     
  10. Tbh if you only read the conversation between me and Igni from last week or so, you`ll figure out everything.
     
  11. ok. Ya, whenever you get a free moment. That would be awesome. Hopefully can get them together. :) if not, TurretsIgnorePlayers it is! lol
     
  12. That was taken directly from the FAQ on this page. Allowing ZoneManager to create seperate zones that default to vanilla rust, which is what I wanted.

    I DID finally get it to work (thanks for all the help!), I copied/pasted it directly from the FAQ but it was missing a comma on the FAQ, I added it and it's working just fine now! Most of the server is completely PvE, but some sections (a PvP Arena, admin made raid bases, etc.) are all vanilla rust / PvP.

    The final thing I'd like to be able to do; though I'm not sure if it can be done; is shut off TruePvE entirely on a specific day. Namely, the day before the wipe (i.e., first Wednesday of every month). I usually like to make that a 'free for all' day.
     
    Last edited by a moderator: May 28, 2017
  13. That is accomplished via schedules.

    I have a server that is setup that way. starts on Tues and ends on Thursday. (manually have to turn it on before the set pvp time starts and ends)
    I also have a weekend raid server that pvp is on during the weekend. (runs automatically all month.)

    read the overview. see if you can get it to work. if you can't I'm always glad to assist.
     
  14. Need some help. i miss the old True or false.
    All i need is for traps to hurt player.
    I have it set for traps to hurt player
    but they dont hurt player.

    "name": "default",
    "enabled": true,
    "defaultAllowDamage": false,
    "flags": "NoHeliDamage, HumanNPCDamage, LockedBoxesImmortal, LockedDoorsImmortal, AdminsHurtSleepers",
    "rules": [
    "anything can hurt dispensers",
    "anything can hurt players",
    "players cannot hurt players",
    "anything cannot hurt traps",
    "traps can hurt players",
    "players cannot hurt barricades",
    "barricades can hurt players",
    "highwalls can hurt players",
    "anything can hurt heli"
     
  15. depends on what traps you have set in the Entity Group for "traps"

    can you post that too ?
     
  16. TruePVE.json
     

    Attached Files:

    Last edited by a moderator: May 28, 2017
  17. this is where the problem is:

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

    it should be this:

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

    try that and let me know
     
  18. Ok. Thanks. I'll give it a shot. Off for tonight. Will try tomorrow. Thanks for your help.
     
  19. Np. Anytime.
     
  20. Worked. thanks