TruePVE

Better PVE/PVP implementation

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

5/5, 26 likes
  1. I actually have NoDecay installed and by default it's set to decay, however, it doesn't. I guess TruePVE is blocking the decay? Not sure though..
     
  2. I guess you could always install TwigsDecay then.......Not sure why twig still doesn't decay for u?.....all I use is NoDecay and use multiplier
    for twig, it decays just fine. I have no Exceptions/RuleSets for it.....it just happens.....not sure.

    Good luck to you!
     
  3. Cheers for the suggestion. I think it may be actually due to stability being turned off. I'll definitely give TwigsDecay a go.
     
  4. TruePVE is hard-coded to allow decay, so it shouldn't be interfering with decay at all.
     
  5. I just noticed I'm getting this during server boot
    Code:
    (13:13:03) | Failed to call hook 'OnEntityTakeDamage' on plugin 'TruePVE v0.8.5' (KeyNotFoundException: The given key was not present in the dictionary.)(13:13:03) | at System.Collections.Generic.Dictionary`2[Oxide.Plugins.TruePVE+Option,System.Boolean].get_Item (Option key) [0x00000] in <filename unknown>:0at Oxide.Plugins.TruePVE.OnEntityTakeDamage (.BaseCombatEntity entity, .HitInfo hitinfo) [0x00000] in <filename unknown>:0at Oxide.Plugins.TruePVE.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0
     
  6. Please check your config - it may be invalid or corrupted. That failure indicates that your config is missing the entry for handleDamage.
     
  7. Okay. I'll have to wait on that. Both my servers are crashing so I'm trying to get that sorted out. It must be corrupted since I haven't made any changes to it since the last update.
     
  8. Is it possible to allow animals to kill sleepers? How would I do this exactly?

    I assume I would create a new Entity Group something like this:-
    Code:
          "name": "animals",
          "members": "wolves, bears, chickens, horses, boars",
          "exclusions": ""
        },
    ...and then create a RuleSet that said:-
    Code:
            "animals can hurt players",
    
    But I'm unsure of the exact "members" - what would they be?

    Thanks.
     
  9. Animals should be allowed to kill sleepers by default. The only exceptions are if you have defined the ProtectedSleepers flag, or if another plugin is blocking the damage.
     
  10. The ProtectedSleepers flag isn't set and I've just gone through all the config files for the plugins that might affect players in some way but there's no reference to sleepers in any of them. I've attached my TruePVE.json config just in case there's something I've done wrong - hopefully there is and you'll spot it right away.

    Other than that, I spawned some wolves near a sleeper and they ran to him and surrounded him but didn't kill him.

    Thanks for a great plugin, and if I can't get this issue resolved it's not *that* big a deal, although it would be nice to get it working. AutoPurge has an option to kill sleepers when buildings are purged, so the sleeper population should start to come down (currently 318).
     

    Attached Files:

  11. I don't see any issue in your config - I would recommend disabling plugins one at a time (and reenabling them afterwards) until sleepers take damage. The configs might not reference sleepers, but the plugin for said config could still have some impact, even if not explicitly intended as a "feature".
     
  12. Did the rule set name change for "CupboardOwnership"? this isnt working anymore, use it to protect bases within TC range.. HELP!
     
  13. The CupboardOwnership rule does not work, does this need to be changed to foundations with the new building 3.0?
     
  14. Probably. I haven't kept up on Rust for a few weeks, so I wasn't even aware there were building mechanics changes. I'll have to research.
     
  15. ignignokt84 updated TruePVE with a new update entry:

    0.8.6

     
  16. ......disregard
     
    Last edited by a moderator: Dec 8, 2017
  17. So I tried it with your update, am I still using "CupboardOwnership"? still not working. I cannot destroy a base without a TC, I would like bases to take damage without a TC
     
  18. ignignokt84 updated TruePVE with a new update entry:

    0.8.7

     
  19. Having an issue with the config when trying to set schedule entries:

    Config:

    Code:
    {
      "Config Version": "0.8.7",
      "Default RuleSet": "default",
      "Configuration Options": {
        "handleDamage": true,
        "useZones": true
      },
      "Mappings": {
        "default": "default",
        "pvp": "pvp"
      },
      "Schedule": {
        "enabled": true,
        "useRealtime": false,
        "broadcast": true,
        "entries": [
        "*.07:00 default PvE mode ON",
        "*.20:00 pvp PvP mode ON."]
      },
      "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 can hurt players",
            "anything can hurt resources"
          ]
        },
        {
          "name": "pvp",
          "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 can 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": ""
        }
      ]
    }
    Error:

    Code:
    (01:09:07) | Unloaded plugin TruePVE v0.8.7 by ignignokt84
    (01:09:07) | Failed to call hook 'OnServerInitialized' on plugin 'TruePVE v0.8.7' (NullReferenceException: Object reference not set to an instance of an object)
      at Oxide.Plugins.TruePVE+Schedule.ClockUpdate (System.String& currentRuleSet, System.String& message) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.TruePVE.TimerLoop (Boolean firstRun) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.TruePVE.OnServerInitialized () [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
    (01:09:07) | Loaded plugin TruePVE v0.8.7 by ignignokt84