You can simply copy the default one and just change the name. Then you can customize it however you want. More details and explanations about rule creation and configuration are in the plugin overview, as well as in various thread posts.
Yes. For that behavior, you should be able to change the default ruleset to something like below. This will prevent players and player-placed objects from hurting other players. If you only wish to prevent direct player-player damage (guns, spears, bows, etc), then you only need the first rule and can remove the others. As I mentioned above, there are more details on rule definitions in the plugin overview and in various thread posts.
Code:{ "name": "default", "enabled": true, "defaultAllowDamage": true, "flags": "None", "rules": [ "players cannot hurt players", "traps cannot hurt players", "barricades cannot hurt players", "highwalls cannot hurt players" ] }
TruePVE
Better PVE/PVP implementation
Total Downloads: 4,637 - First Release: Mar 25, 2016 - Last Update: Mar 7, 2018
- 5/5, 26 likes
-
Wulf Community Admin
"The `.' operator cannot be applied to operand of type `Newtonsoft.Json.JsonSerializerSettings'"
For those having this issue, it is due to an update to Newtonsoft.Json to version 8.x in Rust that is conflicting with what some plugins are expecting. Oxide builds with Newtonsoft.Json 6.x for compatibility with other games, but we're looking into a way to resolve that this time and going forward to avoid other potential compatibility issues.
A temporary "fix" is provided in this thread that involves downgrading the version of Newtonsoft.Json that comes with Rust to the one that Oxide compiles with. Keep in mind that this may cause unforeseen issues with Rust, so do so at your own risk.
Install location: RustDedicated_Data/Managed/Newtonsoft.Json.dll
If you are using a host that does not allow uploading or modifying DLL files under the Managed folder, you'd need to contain them or wait for a new build of Oxide that remedies this.
Please refrain from posting the error more, we're aware of it.Attached Files:
-
-
Thx for this "patch" in this short time! Works fine
-
-
-
"Mappings": {
"default": "default"
There is no exclusion parameter. Although under "Entity Groups", there is an exclusion value:
"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": ""
Maybe here is where I would input the zone id? I'll just have to play around with it, see what happens.
Thanks for a jumping off point at least, to get me started. Appreciate it. -
},
"Mappings": {
"default": "default",
"164873289": "exclude"
}, -
Have A PvP Area on a TruePvE server. Pain in rear end, but got it?
Thanks again for the help!.........Now if I can only figure out how you prevent looting on this TruePvE plugin..... -
Well......I was able to figure out how to disable players being looted.
But now I am having a hell of a time figuring out why animals can't be harvested?
All lootable containers are the same way. Cannot be looted. Odd.
So, more over...lootable crates and players are both link to the same command file,
allowing or not allowing the ability to loot? That seems very odd to me.
Shouldn't a player loot and container loot be separate from one another?
Or maybe it's not TruePVE Plugin that's causing that particular issue? Not sure.
Any thoughts would be appreciated. Thanks.Last edited by a moderator: Jul 30, 2017 -
Hi do you know something from the plugin: Zones Manager? if so can u help me?
I want to set a zone like a squere.. how do i put that as a command in the chat? EX. from x: -1138 z:-477 To x: -2111 z:-237 and the y: must be as high as possible. How do i set that to a command in chat??
so its gonna be a really big invisible box around that place.
Hope u can tell me how..
Regards, Joey -
hello, @ignignokt84 is it possible to modify TruePvE that we can use BotSpawn on our PvE server, the issue is that Bots are invulnerable and players cant kill the bots, other way it works and bots can kill players.
regards dIM -
Code:// add to Entity Groups { "name": "npcs", "members": "NPCPlayer", "exclusions": "" } // add new rule(s) to RuleSets "anything can hurt npcs" // allow anything to hurt the NPCs "players can hurt npcs" // allow only players to hurt the NPCs
-
ok i found my mistake i have "defaultAllowDamage": false, now i do it to true and change some new rules for me.
thx for your helpLast edited by a moderator: Aug 1, 2017 -
-
This method isn't working. I've tried multiple times.
Even restarted the server. Nothing.
I've tried both rules together, both rules separated, nothing is working.
Only way to kill them is to turn DefaultAllowDamage: true but I don't want to have to create a rule for everything on the server. So, heres my config setup
Code:{ "name": "default", "enabled": true, "defaultAllowDamage": false, "flags": "AuthorizedDamage, NoHeliDamage, HumanNPCDamage, LockedBoxesImmortal, LockedDoorsImmortal, AdminsHurtSleepers, TurretsIgnorePlayers, AuthorizedLooting, CupboardOwnership", "rules": [ "anything can hurt dispensers", "players cannot hurt players", "anything can hurt npcs", "players can hurt npcs", "nothing can hurt traps", "nothing can hurt barricades", "barricades can hurt players", "highwalls can hurt players", "anything can hurt heli" ] }, { "name": "npcs", "members": "NPCPlayer", "exclusions": "" },
-
EDIT:
@ignignokt84 ,
Ok, so I added NPCPlayerApex along with NPCPlayer in the group, It worked.
I then took out NPCPlayer, and it still works.Last edited by a moderator: Aug 1, 2017 -
@ignignokt84 Do you need anything done at BotSpawn.cs end, or is everything sorted?
-
For those that maybe interested in using BotSpawn and are currently using TruePvE...
Checkout thread below for possible extra help for allowing both plugins to work together.
BotSpawn | Page 6 | Oxide
Per: =BBUK=
Steenamaroo -
@ignignokt84
Not sure what caused this, I was typing in the BotSpawn Thread when I saw it.
Code:(12:09:50) | [Oxide] 12:11 [Error] Failed to call hook 'OnEntityTakeDamage' on plugin 'TruePVE v0.7.21' (NullReferenceException: Object reference not set to an instance of an object) (12:09:51) | [Oxide] 12:11 [Stacktrace] at Oxide.Plugins.TruePVE+TruePVEData.ResolveEntityGroups (.BaseEntity entity) [0x00000] in <filename unknown>:0 at Oxide.Plugins.TruePVE.EvaluateRules (.BaseCombatEntity entity, .HitInfo hitinfo, Oxide.Plugins.RuleSet ruleSet) [0x00000] in <filename unknown>:0 at Oxide.Plugins.TruePVE.AllowDamage (.BaseCombatEntity entity, .HitInfo hitinfo) [0x00000] in <filename unknown>:0 at Oxide.Plugins.TruePVE.HandleDamage (.BaseCombatEntity entity, .HitInfo hitinfo) [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 (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 (12:10:04) | [Oxide] 12:11 [Error] Failed to call hook 'OnEntityTakeDamage' on plugin 'TruePVE v0.7.21' (NullReferenceException: Object reference not set to an instance of an object) (12:10:04) | [Oxide] 12:11 [Stacktrace] at Oxide.Plugins.TruePVE+TruePVEData.ResolveEntityGroups (.BaseEntity entity) [0x00000] in <filename unknown>:0 at Oxide.Plugins.TruePVE.EvaluateRules (.BaseCombatEntity entity, .HitInfo hitinfo, Oxide.Plugins.RuleSet ruleSet) [0x00000] in <filename unknown>:0 at Oxide.Plugins.TruePVE.AllowDamage (.BaseCombatEntity entity, .HitInfo hitinfo) [0x00000] in <filename unknown>:0 at Oxide.Plugins.TruePVE.HandleDamage (.BaseCombatEntity entity, .HitInfo hitinfo) [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 (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