TruePVE

Better PVE/PVP implementation

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

5/5, 26 likes
  1. Building Block for Rust | Oxide
     
  2. Hey, I'm not sure if building blocking is going to solve your problems here. To be honest, this seems more like a bandaid. Garry's original plan was to actually do away with cupboards in the long run and move to an ownership method. However, I think what the overall solution would be is to try and find a way, as was mentioned in an earlier post, to be able to damage any of the twig structures within your cupboard influence. Maybe add a radius flag or something, not sure. But players definitely need an option to get rid of the twig structures being built to raid them instead of just sitting there and watching it happen.
     
  3. This is already possible if you use the AuthorizedDamage flag

    AuthorizedDamage
    - Allows players to damage entities they own or have cupboard authorization over
     
  4. But if they don't own it, I've seen players have trouble destroying it even if it's in their cupboard radius.
    [DOUBLEPOST=1494183355][/DOUBLEPOST]
    Here's my ruleset - notice that Authorized Damage is the first one. Yet players cannot seem to destroy the twig structures that other people create.

    "name": "default",
    "enabled": true,
    "defaultAllowDamage": false,
    "flags": "AuthorizedDamage, LootableCorpses, HumanNPCDamage, LockedBoxesImmortal, LockedDoorsImmortal, LootableSleepers",
    "rules": [
    "anything can hurt dispensers",
    "heli can hurt players",
    "anything can hurt players",
    "players cannot hurt players",
    "anything can hurt traps",
    "traps can hurt players",
    "players cannot hurt barricades",
    "barricades can hurt players",
    "highwalls can hurt players",
    "anything can hurt heli"
     
  5. So I got one issue.Apparently certain types of ammo can somehow cause damage to structures.I am talking about Incendiary and Explosive bullets.Fireballs have killed one player today and caused structural damage to one base.What can I do to prevent this in my PvE server?
     
  6. I had this issue as well, this post answered it for me..

    TruePVE | Page 35 | Oxide
     
  7. uhm thanks but did it keep affecting structures tho?
     
  8. I never realized the issue with structures so never tested it, but it did solve the issue with player damage.
     
  9. I tested structures and it seems this covers it.At least incendiary bullets don`t do any damage anymore.Gotta try to identify all possible loopholes.

    Thanks a lot for this, saved me hours of trouble.Regards for Isle of Refuge.
     
  10. The cupboard check looks to see if the entire entity is within the cupboard influence. I have noticed some issues destroying twig foundations because they can extend down far enough to be partially outside of the cupboard bubble. If you have cupboards at the perimeter of your structure, then twigs shouldn't be able to be built close enough to be a threat - but you're probably better off using Building Blocker for Rust | Oxide that Diesel 42o mentioned in order to prevent it altogether.
     
  11. hey @ignignokt84,

    Been getting this lately again. Im sure its due to people hitting the building in the town with a zone. but I can never catch it to see what exactly it is. so not sure what is causing that.
    Code:
    (17:32:42) | Failed to call hook 'OnEntityTakeDamage' on plugin 'TruePVE v0.7.14' (NullReferenceException: Object reference not set to an instance of an object)
    (17:32:42) | 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
    Thanks
     
  12. I am getting TONS of messages from the plugin just now.
    Code:
    (01:56:41) | Failed to call hook 'CanBeTargeted' on plugin 'TruePVE v0.7.13' (InvalidCastException: Cannot cast from source type to destination type.)
    (01:56:41) | 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
     
  13. Wulf

    Wulf Community Admin

    Sounds like you're using an Oxide build from a couple weeks ago. That isn't an issue in the past few Oxide releases.
     
  14. No worries.Just updated everything (waited on game update too) and no more of these messages.
     
  15. Could you please upload your json? And can you let me know what the name is of the zone that the building is in?
     
  16. Igni, can you provide any help please?

    I am trying to set TruePVE and Zones Manager so that my PVE server has a PVP arena.However, I am just not able to catch everything I need to do. This is what I did in my TruePVE config.Whenever I do this tho, config reverts to default and erases the other zone and its ruleset.

    Is it too much if you guide me through this process? Amount of up-to-date information on setting this up equals almost 0.
     

    Attached Files:

  17. Whenever the json reverts it's almost always because the json format is invalid. In your case you have extra commas at lines 36 and 46. You can use an online json validator (I use The JSON Validator) to check whether the format is correct before attempting to use it and it should point out any issues (or at least tell you where the issues are).

    There should be some details on setting up PVP zones if you look backwards in this thread. The FAQ page also has a super-basic example of PVP zones, but it's been on my to-do list to add a better "customized PVP zone" configuration in the FAQ - so I should be able to throw one together in the next few days.
    [DOUBLEPOST=1494802765][/DOUBLEPOST]@▀▄ V ▄▀ - I also noticed that your mappings are incorrect - the zone ID needs to map to the ruleset name, but you have "pvp" mapped to the zone ID. You basically would need to swap those around in order to have the mapping work:
    Code:
    "80244759": "pvp" // in mappings (instead of "pvp": "80244759")
    "name": "pvp" // ruleset (instead of "name": "80244759")
    Also, if you want default Rust PVP, you can specify the mapping "exclude" instead of the ruleset, and then you don't need to have any custom damage handling ruleset:
    Code:
    "80244759": "exclude" // mapping, and no ruleset needed
     
    Last edited by a moderator: May 14, 2017
  18. I have checked this thread and ZoneManager as well (found some old files on page 20 or so), but I am always missing something.I read that something needs to be changed in ZoneManager plugin file, but I couldn`t find what is it.

    Now that file had several mistakes other than commas.I made one in mappings as well.Rulesets? Am I supposed to add ruleset in the way I did? Will my rules and flags in that ruleset really enable basic PVP in the specified zone?

    Just not really able to put this up on my own.I think I can set it from TruePVE and set zones correctly with ZoneManager in-game, but the problem arises when I need to edit whatever needs to be edited in ZoneManager.Would be glad if you can put something up for us, total noobs, on how to set it step by step.
    [DOUBLEPOST=1494803013][/DOUBLEPOST]Oh, looks like we posted at the same time lol Yeah, I can actually fix json on my own now, but what`s next?
     
  19. The ZoneManager integration details are at the bottom of the plugin description. There's a block of code there that you literally copy/paste into the ZoneManager.cs file (unfortunately I can't give a specific line number to place it since the ZoneManager file changes with each updated version).
    [DOUBLEPOST=1494803277][/DOUBLEPOST]Looks like with the "current" version of ZoneManager (2.4.12), you would insert that block of code at line 2011.
     
  20. bool CreateOrUpdateZone(string ZoneID, string[] args, Vector3 position = default(Vector3))

    Could this be the one?