We've moved! Join us as we continue development on our new site at umod.org!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

TruePVE

Better PVE/PVP implementation

Total Downloads: 3,978 - First Release: Mar 25, 2016 - Last Update: Mar 7, 2018

5/5, 26 likes
  1. so im confused im trying to make my server a pvp day and pve night and i have a 15 min night and 30 min day can someone help me get this setup please
     
  2. I tried to use this due to requiring it for DynamicPVP and it resulted in twig not taking damage.
     
  3. an error message is displayed every few seconds (it started after the last update):

    Failed to call hook 'OnEntityTakeDamage' on plugin 'TruePVE v0.8.9' (KeyNotFoundException: The given key was not present in the dictionary.) at System.Collections.Generic.Dictionary`2[Oxide.Plugins.TruePVE+Option,System.Boolean].get_Item (Option key) [0x00000] in <filename unknown>:0 at Oxide.Plugins.TruePVE.OnEntityTakeDamage (.BaseCombatEntity entity, .HitInfo hitinfo) [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

    PS
    also other plugins stopped :)

    just now start without this (and DynamicPVP and ZoneManager) - all ok
     
    Last edited by a moderator: May 29, 2018
  4. When it says "Assuming the code is set up on the zone manager side of things" what does this mean? What do I have to set up?
     
  5. Failed to call hook 'OnEntityTakeDamage' on plugin 'TruePVE v0.8.9' (InvalidOperationException: Sequence contains no matching element)
    at System.Linq.Enumerable.First[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x00011] in <839a3cb835c04d14aeb58d83bb7bc4bd>:0
    at Oxide.Plugins.TruePVE+TruePVEData.HasEmptyMapping (System.String key) [0x00084] in <7da932a837864fe6ab9343154e735fea>:0
    at Oxide.Plugins.TruePVE.CheckExclusion (System.Collections.Generic.List`1[T] e0Locations, System.Collections.Generic.List`1[T] e1Locations) [0x000fb] in <7da932a837864fe6ab9343154e735fea>:0
    at Oxide.Plugins.TruePVE.AllowDamage (BaseEntity entity, HitInfo hitinfo) [0x001f0] in <7da932a837864fe6ab9343154e735fea>:0
    at Oxide.Plugins.TruePVE.HandleDamage (BaseCombatEntity entity, HitInfo hitinfo) [0x00000] in <7da932a837864fe6ab9343154e735fea>:0
    at Oxide.Plugins.TruePVE.OnEntityTakeDamage (BaseCombatEntity entity, HitInfo hitinfo) [0x00018] in <7da932a837864fe6ab9343154e735fea>:0
    at Oxide.Plugins.TruePVE.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x006ba] in <7da932a837864fe6ab9343154e735fea>:0
    at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <09b255f9a88d4ffda4779759134e116d>:0
    at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ba44835247a74c58bf6cabef8b441b56>:0
    at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ba44835247a74c58bf6cabef8b441b56>:0
     
  6. so i want to be able to automatically make my server pvp for 24 hours befor the wipe then wans its wiped back to pve for another mont how do i do this
     
  7. so my animals and scientists dont move or do anything how do i fix this.
     
  8. which config file do i set
    set server.pve = false

    I have looked through sever configs and oxide configs and havnt found this line
     
  9. How to make a turret could damage the walls of straw?
     
  10. I believe that needs to be set in-game. Hit f1 and type server.pve false
    Don't quote me on that though but it's better than no response.
    [DOUBLEPOST=1531445725][/DOUBLEPOST]Is PVP turned off with this plugin?
     
  11. Is there a way to have traps activate on the player that placed them with this plugin? Traps wont activate on players that placed the trap...
     
  12. how do i schedule pvp 1 month ahead. Also im to thick to understand this config if someone has one i could download that would be amazing.
     
    Last edited by a moderator: Jul 17, 2018
  13. TruePVE isn't able to catch player damage inflicted upon patrolhelicopters, when enabling tpve.trace it throws me an NRE error

    Code:
    09:47 [Error] Failed to call hook 'OnEntityTakeDamage' on plugin 'TruePVE v0.8.9' (NullReferenceException: Object reference not set to an instance of an object)
      at Oxide.Plugins.TruePVE.AllowDamage (BaseEntity entity, HitInfo hitinfo) [0x0018d] in <192dd8da68ee48b4929c5f3132edee59>:0
      at Oxide.Plugins.TruePVE.HandleDamage (BaseCombatEntity entity, HitInfo hitinfo) [0x00000] in <192dd8da68ee48b4929c5f3132edee59>:0
      at Oxide.Plugins.TruePVE.OnEntityTakeDamage (BaseCombatEntity entity, HitInfo hitinfo) [0x00018] in <192dd8da68ee48b4929c5f3132edee59>:0
      at Oxide.Plugins.TruePVE.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x006ba] in <192dd8da68ee48b4929c5f3132edee59>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <4de2a9f5b1eb4f0ea3c4c9778603446d>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <bfa4e457157d4e089ab91719c5b1288b>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <bfa4e457157d4e089ab91719c5b1288b>:0
    09:47 [Error] Failed to call hook 'OnEntityTakeDamage' on plugin 'TruePVE v0.8.9' (NullReferenceException: Object reference not set to an instance of an object)
      at Oxide.Plugins.TruePVE.AllowDamage (BaseEntity entity, HitInfo hitinfo) [0x0018d] in <192dd8da68ee48b4929c5f3132edee59>:0
      at Oxide.Plugins.TruePVE.HandleDamage (BaseCombatEntity entity, HitInfo hitinfo) [0x00000] in <192dd8da68ee48b4929c5f3132edee59>:0
      at Oxide.Plugins.TruePVE.OnEntityTakeDamage (BaseCombatEntity entity, HitInfo hitinfo) [0x00018] in <192dd8da68ee48b4929c5f3132edee59>:0
      at Oxide.Plugins.TruePVE.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x006ba] in <192dd8da68ee48b4929c5f3132edee59>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <4de2a9f5b1eb4f0ea3c4c9778603446d>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <bfa4e457157d4e089ab91719c5b1288b>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <bfa4e457157d4e089ab91719c5b1288b>:0 
    This is my config:
    Code:
    {
      "Config Version": "0.8.9",
      "Default RuleSet": "default",
      "Configuration Options": {
        "handleDamage": true,
        "useZones": false
      },
      "Mappings": {
        "default": "default",
        "pvp": "exclude"
      },
      "Schedule": {
        "enabled": true,
        "useRealtime": true,
        "broadcast": true,
        "entries": [
          "*.23:00 default RaidProtector enabled! Explosives and rockets don't damage buildings, you can still take pvp damage.",
          "*.12:00 pvp RaidProtector disabled! Buildings now take explosive damage. Have fun!"
        ]
      },
      "RuleSets": [
        {
          "name": "default",
          "enabled": true,
          "defaultAllowDamage": false,
          "flags": "HumanNPCDamage",
          "rules": [
            "players can hurt players",
            "anything can hurt dispensers",
            "heli can hurt anything",
            "players cannot hurt heli",
            "players can hurt npcs",
            "anything can hurt traps",
            "traps can hurt players",
            "players cannot hurt barricades",
            "players cannot hurt highwalls",
            "barricades can hurt players",
            "highwalls can hurt players",
            "anything can hurt npcs",
            "fire can hurt players",
            "anything can hurt resources",
            "anything can hurt players"
          ]
        }
      ],
      "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, BradleyAPC",
          "exclusions": ""
        },
        {
          "name": "npcs",
          "members": "NPCPlayerApex, NPCMurderer, murderer, NPCScientist, scientist",
          "exclusions": ""
        },
        {
          "name": "fire",
          "members": "FireBall, Fireball_small, flamethrower_fireball, flame",
          "exclusions": ""
        },
        {
          "name": "resources",
          "members": "ResourceEntity, TreeEntity, OreResourceEntity",
          "exclusions": ""
        }
      ]
    }
    Code:
    ==  STARTING TRACE  ==
    ==  09:42:12.41197  ==
    ======================
     From: BasePlayer, player
     To: BaseHelicopter, patrolhelicopter
       No shared locations (empty location) - no exclusions
     No exclusion found - looking up RuleSet...
     Using RuleSet "default"
     No match in pre-checks; evaluating RuleSet rules...
      Initator EntityGroup matches: players
      Target EntityGroup matches: heli
       Evaluating Rules...
        Checking direct initiator->target rules...
         Evaluating "players->heli"...
          Match found; allow damage? False
     
    Last edited by a moderator: Jul 20, 2018
  14. When making a raidable base, it throws so many errors in the console when someone is raiding that it lags the shit out of the entire server.

    Failed to call hook 'OnEntityTakeDamage' on plugin 'TruePVE v0.8.9' (InvalidOperationException: Sequence contains no matching element) at System.Linq.Enumerable.First[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x00011] in <839a3cb835c04d14aeb58d83bb7bc4bd>:0 at Oxide.Plugins.TruePVE+TruePVEData.HasEmptyMapping (System.String key) [0x00084] in <e1c9c3f7657b421cb22ab425662e3b18>:0 at Oxide.Plugins.TruePVE.CheckExclusion (System.Collections.Generic.List`1[T] e0Locations, System.Collections.Generic.List`1[T] e1Locations) [0x000fb] in <e1c9c3f7657b421cb22ab425662e3b18>:0 at Oxide.Plugins.TruePVE.AllowDamage (BaseEntity entity, HitInfo hitinfo) [0x001f0] in <e1c9c3f7657b421cb22ab425662e3b18>:0 at Oxide.Plugins.TruePVE.HandleDamage (BaseCombatEntity entity, HitInfo hitinfo) [0x00000] in <e1c9c3f7657b421cb22ab425662e3b18>:0 at Oxide.Plugins.TruePVE.OnEntityTakeDamage (BaseCombatEntity entity, HitInfo hitinfo) [0x00018] in <e1c9c3f7657b421cb22ab425662e3b18>:0 at Oxide.Plugins.TruePVE.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x006ba] in <e1c9c3f7657b421cb22ab425662e3b18>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <4de2a9f5b1eb4f0ea3c4c9778603446d>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <bfa4e457157d4e089ab91719c5b1288b>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <bfa4e457157d4e089ab91719c5b1288b>:0
    Failed to call hook 'OnEntityTakeDamage' on plugin 'TruePVE v0.8.9' (InvalidOperationException: Sequence contains no matching element) at System.Linq.Enumerable.First[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x00011] in <839a3cb835c04d14aeb58d83bb7bc4bd>:0 at Oxide.Plugins.TruePVE+TruePVEData.HasEmptyMapping (System.String key) [0x00084] in <e1c9c3f7657b421cb22ab425662e3b18>:0 at Oxide.Plugins.TruePVE.CheckExclusion (System.Collections.Generic.List`1[T] e0Locations, System.Collections.Generic.List`1[T] e1Locations) [0x000fb] in <e1c9c3f7657b421cb22ab425662e3b18>:0 at Oxide.Plugins.TruePVE.AllowDamage (BaseEntity entity, HitInfo hitinfo) [0x001f0] in <e1c9c3f7657b421cb22ab425662e3b18>:0 at Oxide.Plugins.TruePVE.HandleDamage (BaseCombatEntity entity, HitInfo hitinfo) [0x00000] in <e1c9c3f7657b421cb22ab425662e3b18>:0 at Oxide.Plugins.TruePVE.OnEntityTakeDamage (BaseCombatEntity entity, HitInfo hitinfo) [0x00018] in <e1c9c3f7657b421cb22ab425662e3b18>:0 at Oxide.Plugins.TruePVE.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x006ba] in <e1c9c3f7657b421cb22ab425662e3b18>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <4de2a9f5b1eb4f0ea3c4c9778603446d>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <bfa4e457157d4e089ab91719c5b1288b>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <bfa4e457157d4e089ab91719c5b1288b>:0
    Failed to call hook 'OnEntityTakeDamage' on plugin 'TruePVE v0.8.9' (InvalidOperationException: Sequence contains no matching element) at System.Linq.Enumerable.First[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x00011] in <839a3cb835c04d14aeb58d83bb7bc4bd>:0 at Oxide.Plugins.TruePVE+TruePVEData.HasEmptyMapping (System.String key) [0x00084] in <e1c9c3f7657b421cb22ab425662e3b18>:0 at Oxide.Plugins.TruePVE.CheckExclusion (System.Collections.Generic.List`1[T] e0Locations, System.Collections.Generic.List`1[T] e1Locations) [0x000fb] in <e1c9c3f7657b421cb22ab425662e3b18>:0 at Oxide.Plugins.TruePVE.AllowDamage (BaseEntity entity, HitInfo hitinfo) [0x001f0] in <e1c9c3f7657b421cb22ab425662e3b18>:0 at Oxide.Plugins.TruePVE.HandleDamage (BaseCombatEntity entity, HitInfo hitinfo) [0x00000] in <e1c9c3f7657b421cb22ab425662e3b18>:0 at Oxide.Plugins.TruePVE.OnEntityTakeDamage (BaseCombatEntity entity, HitInfo hitinfo) [0x00018] in <e1c9c3f7657b421cb22ab425662e3b18>:0 at Oxide.Plugins.TruePVE.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x006ba] in <e1c9c3f7657b421cb22ab425662e3b18>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <4de2a9f5b1eb4f0ea3c4c9778603446d>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <bfa4e457157d4e089ab91719c5b1288b>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <bfa4e457157d4e089ab91719c5b1288b>:0
    Failed to call hook 'OnEntityTakeDamage' on plugin 'TruePVE v0.8.9' (InvalidOperationException: Sequence contains no matching element) at System.Linq.Enumerable.First[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x00011] in <839a3cb835c04d14aeb58d83bb7bc4bd>:0 at Oxide.Plugins.TruePVE+TruePVEData.HasEmptyMapping (System.String key) [0x00084] in <e1c9c3f7657b421cb22ab425662e3b18>:0 at Oxide.Plugins.TruePVE.CheckExclusion (System.Collections.Generic.List`1[T] e0Locations, System.Collections.Generic.List`1[T] e1Locations) [0x000fb] in <e1c9c3f7657b421cb22ab425662e3b18>:0 at Oxide.Plugins.TruePVE.AllowDamage (BaseEntity entity, HitInfo hitinfo) [0x001f0] in <e1c9c3f7657b421cb22ab425662e3b18>:0 at Oxide.Plugins.TruePVE.HandleDamage (BaseCombatEntity entity, HitInfo hitinfo) [0x00000] in <e1c9c3f7657b421cb22ab425662e3b18>:0 at Oxide.Plugins.TruePVE.OnEntityTakeDamage (BaseCombatEntity entity, HitInfo hitinfo) [0x00018] in <e1c9c3f7657b421cb22ab425662e3b18>:0 at Oxide.Plugins.TruePVE.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x006ba] in <e1c9c3f7657b421cb22ab425662e3b18>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <4de2a9f5b1eb4f0ea3c4c9778603446d>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <bfa4e457157d4e089ab91719c5b1288b>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <bfa4e457157d4e089ab91719c5b1288b>:0
     
  15. [EDIT]

    Issue is resolved so removed comment.
     
    Last edited by a moderator: Aug 19, 2018
  16. Hello ignignokt84 iam getting this warning
    Calling hook OnEntityTakeDamage resulted in a conflict between the following plugins: TruePVE - False (Boolean), Vanish (True (Boolean))

    Thank you for your help.
     
  17. Howdy! In our server, when we shoot scientists, we also take damage. I believe it's a PvE punishment of sorts. How can we remove this?
     
  18. Do you have server.pve set to true?
     
  19. Figured that out last night.. Thank you for replying!!
     
    Diesel 42o likes this.