Failed to call hook 'CanBeTargeted' on plugin 'TruePVE v1.2.0' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.TruePVE.CanBeTargeted (BasePlayer target, UnityEngine.MonoBehaviour turret) [0x0008d] in <9ce7c2c30b4346ea93a360b026ebd43b>:0
at Oxide.Plugins.TruePVE.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00d59] in <9ce7c2c30b4346ea93a360b026ebd43b>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <80b90e8213db44b29ec2d4111764172c>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ec05e0208c9149bba43236ca58fea105>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ec05e0208c9149bba43236ca58fea105>:0 NullReferenceException at CanBeTargetedError
{
"Config Version": "1.1.8",
"Default RuleSet": "default",
"Configuration Options": {
"handleDamage": true,
"useZones": true
},
"Mappings": {
"default": "default",
"raid": "raid"
},
"Schedule": {
"enabled": false,
"useRealtime": false,
"broadcast": false,
"entries": []
},
"RuleSets": [
{
"name": "default",
"enabled": true,
"defaultAllowDamage": true,
"flags": "AuthorizedDamage, HeliDamageLocked, HumanNPCDamage, CupboardOwnership, SelfDamage, TwigDamage, LockedBoxesImmortal, LockedDoorsImmortal, TrapsIgnorePlayers, TurretsIgnorePlayers, MiniCopterIsImmuneToCollision, SamSitesIgnorePlayers",
"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"
]
},
{
"name": "raid",
"enabled": false,
"defaultAllowDamage": true,
"flags": "AuthorizedDamage, HeliDamageLocked, HumanNPCDamage, SelfDamage",
"rules": [
"anything can hurt dispensers",
"anything can hurt players",
"heli can hurt anything",
"players can hurt players",
"players can hurt traps",
"players can hurt teslacoil",
"players can hurt doors",
"players can hurt buildings",
"players can hurt deployables",
"players can hurt storages",
"players can hurt barricades",
"players can hurt npcs",
"players can hurt npcscientist",
"players can hurt npcmurderer",
"players can hurt balloons",
"players can hurt minicopter",
"players can hurt samsite",
"players can hurt heli",
"players can hurt horse",
"explosives can hurt players",
"explosives can hurt buildings",
"explosives can hurt deployables",
"explosives can hurt storages",
"traps can hurt players",
"traps can hurt npcs",
"teslacoil can hurt anything",
"teslacoil can hurt players",
"barricades can hurt players",
"highwalls can 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 can hurt players",
"fire can hurt traps",
"fire can hurt teslacoil",
"fire can hurt doors",
"fire can hurt buildings",
"fire can hurt deployables",
"fire can hurt storages",
"anything can hurt resources",
"anything can hurt samsite",
"samsite can hurt minicopter",
"samsite can hurt heli",
"samsite can hurt players",
"samsite can hurt balloons"
]
}
],
"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": "resources",
"members": "ResourceEntity, TreeEntity, OreResourceEntity",
"exclusions": ""
}
]
}
i tried only showing the following
i tried to look for the /oxide/log/truePVE log files but no files are generated. I'm guessing the plugin is not able to start properly
any clue or help is appreciated. to give you background, what i'm trying to do is setup a no PVP / no raid zone in my map. I right now i only have a zone that is no PVP. before i tried using indestructable option in zone manager but it is causing pileup of spawnables because they arenot decaying. so I was thinking maybe TruePVE can help.
what i did is create a zone, use default PVE settings, set as default exclude everything, then map safezone to PVE settings.
Failed to call hook 'CanBeTargeted' on plugin 'TruePVE v1.2.0' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.TruePVE.GetRuleSet (System.Collections.Generic.List`1[T] e0Locations, System.Collections.Generic.List`1[T] e1Locations) [0x0033f] in <9ce7c2c30b4346ea93a360b02
6ebd43b>:0
at Oxide.Plugins.TruePVE.GetRuleSet (BaseEntity e0, BaseEntity e1) [0x00010] in <9ce7c2c30b4346ea93a360b026ebd43b>:0
at Oxide.Plugins.TruePVE.CanBeTargeted (BasePlayer target, UnityEngine.MonoBehaviour turret) [0x00074] in <9ce7c2c30b4346ea93a360b026ebd43b>:0
at Oxide.Plugins.TruePVE.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00d59] in <9ce7c2c30b4346ea93a360b026ebd43b>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <80b90e8213db44b29ec2d4111764172c>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ec05e0208c9149bba43236ca58fea105>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ec05e0208c9149bba43236ca58fea105>:0
Unloaded plugin TruePVE v1.2.0 by nivex Merged post
still errors. i'll try to use it on a blank server.. nivex, would you be able to share a sample config?
what i want is , normal rust rules the rest of the map and one zone for pve only
1.2.1 will have a new default config with modern settings
https://pastebin.com/8XYbe7cc
or you can use it now, save as TruePVE.cs
delete the config file before installing if you want the new config