You set the RuleSet flag NoHeliDamage.
TruePVE
Better PVE/PVP implementation
Total Downloads: 4,631 - First Release: Mar 25, 2016 - Last Update: Mar 7, 2018
- 5/5, 26 likes
-
Thanks. -
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.)
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": "" } ] }
-
@Maggoot - You need a comma between the RuleSet brackets.
-
Yes i'm stupid
Thank u so much -
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
-
Nevermind - I found the cause and will release an update shortly. -
-
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 -
-
Nevermind, your update did the trick.
-
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! -
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 -
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. -
-
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?
-
"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 -
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??
-
-
Is it possible to exclude twig from being protected?
-