TruePVE

Better PVE/PVP implementation

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

5/5, 26 likes
  1. You set the RuleSet flag NoHeliDamage.
     
  2. Thank You Very Much!......I new it had to be something really simple.

    Thanks.
     
  3. Hi there,
    I think I'm too stupid.
    I'd like to add another RuleSet to use in the zones, but with my code the config does not work anymore.

    Code:
    TruePVE v0.8.4: Failed to load config file (is the config file corrupt?) (After parsing a value an unexpected character was encountered: {. Path 'RuleSets[0]', line 49, position 3.)
    I've tried putting or removing brackets several times, but it makes no difference.
    where is my mistake?


    Code:
    {
      "Config Version": "0.8.4",
      "Default RuleSet": "default",
      "Configuration Options": {
        "handleDamage": true,
        "useZones": true
      },
      "Mappings": {
        "default": "default",
        "114": "zone",
        "115": "zone",
        "116": "zone",
        "117": "zone",
        "118": "zone",
        "119": "zone",
        "120": "zone",
        "121": "zone",
        "122": "zone",
        "123": "zone",
        "124": "zone"
      },
      "Schedule": {
        "enabled": false,
        "useRealtime": false,
        "broadcast": false,
        "entries": []
      },
      "RuleSets": [
        {
          "name": "default",
          "enabled": true,
          "defaultAllowDamage": false,
          "flags": "HumanNPCDamage, LockedBoxesImmortal, LockedDoorsImmortal",
          "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",
            "anything can hurt npcs",
            "fire cannot hurt players",
            "anything can hurt resources"
          ]
        }
        {
          "name": "zone",
          "enabled": true,
          "defaultAllowDamage": false,
          "flags": "HumanNPCDamage, LockedBoxesImmortal, LockedDoorsImmortal",
          "rules": [
            "anything can hurt dispensers",
            "anything can hurt players",
            "players can hurt players",
            "anything can hurt traps",
            "traps cannot hurt players",
            "players can hurt barricades",
            "barricades can hurt players",
            "highwalls can hurt players",
            "anything can hurt heli",
            "anything can hurt npcs",
            "fire can hurt players",
            "anything can hurt resources"
          ]
        }
      ],
      "Entity Groups": [
        {
          "name": "dispensers",
          "members": "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": ""
        },
        {
          "name": "npcs",
          "members": "NPCPlayerApex, BradleyAPC",
          "exclusions": ""
        },
        {
          "name": "fire",
          "members": "FireBall",
          "exclusions": ""
        },
        {
          "name": "resources",
          "members": "ResourceEntity, TreeEntity, OreResourceEntity",
          "exclusions": ""
        }
      ]
    }
    
     
  4. @Maggoot - You need a comma between the RuleSet brackets.
     
  5. OMG...
    Yes i'm stupid :D
    Thank u so much
     
  6. console spam.. please help .....

    Code:
    (22:20:58) | Failed to call hook 'CanBeTargeted' on plugin 'TruePVE v0.8.4' (InvalidOperationException: Operation is not valid due to the current state of the object)
    (22:20:58) | at System.Linq.Enumerable.First[RuleSet] (IEnumerable`1 source) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.TruePVE.GetRuleSet (System.Collections.Generic.List`1 e0Locations, System.Collections.Generic.List`1 e1Locations) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.TruePVE.GetRuleSet (.BaseEntity e0, .BaseEntity e1) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.TruePVE.CanBeTargeted (.BaseCombatEntity target, System.Object turret) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.TruePVE.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0
     
  7. Can you upload your config?

    Nevermind - I found the cause and will release an update shortly.
     
  8. ignignokt84 updated TruePVE with a new update entry:

    0.8.5

     
  9. i use zone manager also, when i put in my map exceptions... that's the spam i get. Maybe I did something wrong, but not sure. I just updated to this version yesterday to try and stop people from flame raiding in pve.

    I try to add this to the new .json file and it wigs out lol

    },
    "Mappings": {
    "default": "default",
    "67831358": "exclude",
    "52517964": "exclude",
    "92080359": "exclude",
    "79778781": "exclude"
    },
     

    Attached Files:

    Last edited by a moderator: Nov 10, 2017
  10. Nevermind, your update did the trick.
     
  11. I have a feeling I have asked this once before...but, Is there any way for Auto-Turrets to engage Heli?

    Whether it be this plugin or possibly some other?

    Thanks!
     
  12. How do I add a ruleset to the .cs so players cannot loot other players/sleepers outside of my pvp zones? And... where do i put it?


    like this maybe?

    defaultRuleSet.AddRule(players.name + " cannot loot " + players.name); // players cannot loot other players

    Then add...
    "handleLooting": true,
    back into the .json

    EDIT: Was looking at version 0.7.22 and the current version.... loot handling was taken out... can i just add those bits back in and have it work or is it more complicated than that?
     
    Last edited by a moderator: Nov 11, 2017
  13. From what I have been told in the past, is never, adjust, add, remove, modify, any data inside the .cs file.......
    Adding, removing, modifying RuleSets should only be done in the Config./.Json file.....

    In regards to prevent looting, and with Loot Handling being removed from TruePvE, I simply just added Prevent Looting For Rust, Plugin.
     
  14. I will look into that thank you
     
  15. I just noticed on my PvE server that the "murderers" are protected. Also I use the plugin PilotEject and the pilot is protected as well. Not too much of an issue there since the pilot is till lootable, but figured it was worth a mention. Am I missing a setting somewhere? Would it be in the exclusions under players?
     
  16. I am pretty sure you need to add "murderers" to Entity Groups....under npcs in config.Json file.....so it would look like this:

    "Entity Groups":

    "name": "npcs",
    "members": "NPCPlayerApex, BradleyAPC, NPCMurderer, murderer",
    "exclusions": ""

    I think.

    In regards to the PilotEject Plugin?......Not to sure about that one.......maybe add NPCPilot, pilot after murderer in npcs group?
     
    Last edited by a moderator: Nov 15, 2017
  17. i should be able to turn it off and back on by,server manager and or the f1 with admin commands. i cant ??? is this just my server? or the way the plug in works??
     
  18. That did the trick. The PilotEject Dev took care of the plugin on his end.
     
  19. Is it possible to exclude twig from being protected?
     
  20. You could always install NoDecay Plugin, and allow Twig to decay.....accelerate rate of decay if preferred.