TruePVE

Better PVE/PVP implementation

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

5/5, 26 likes
  1. someone said they were removing something with a hammer? that's all the info I got. I haven't tested it yet.
     

    Attached Files:

  2. Any chance it was in one of your PVP zones?
    [DOUBLEPOST=1488762247][/DOUBLEPOST]There's a potential point of failure that I suspect this exception is coming from - could you try adding empty data entries for your pvp zones in your json like below and let me know if you continue to see errors?
    Code:
      "data": {
        "1932484": {},
        "48690131": {},
        "79316008": {},
        "4277451": {},
        "default": {
     
  3. two of those zones are out in the water for arenas, and the other other I added after that was mentioned to me. but ill add {} for the zones.
    [DOUBLEPOST=1488766598][/DOUBLEPOST]this is the way it looks now that I put in the {}, removed the zone mappings I had set.

    from this:
    "data": {
    "1932484": {},
    "48690131": {},
    "79316008": {},
    "4277451": {},
    "default": {}

    },


    To this:
    "data": {
    "default": "default"
    },
     

    Attached Files:

    Last edited by a moderator: Mar 6, 2017
  4. Looks like you transposed the changes between "data" and "mappings" - try the attached json and see if that works for you :)
     

    Attached Files:

  5. this is what I meant:

    From this:
    "mappings": {
    "default": "default",
    "1932484": "1932484",
    "48690131": "48690131",
    "79316008": "79316008",
    "4277451": "4277451"

    To this:
    "mappings": {
    "default": "default",

    sorry
     
  6. Hi folks, just wondering - here's what I'm trying to do: Please tell me if a) this is possible, and b) how on earth would I do it.

    I would like to have PVE enabled SERVER WIDE during the daytime hours of Rust.

    During the Night Cycle - I would like PVP enabled SERVER WIDE.

    I've tried copying the "default" several times and changing it to "pvp" but to no avail. Am I missing something?
    [DOUBLEPOST=1488853798][/DOUBLEPOST]This is what I got - it looks like in theory it should work, but it doesn't. Any ideas?
     

    Attached Files:

    Last edited by a moderator: Mar 7, 2017
  7. From a quick glance, you have the config setting useRealtime set to true - if you're wanting day/night cycles of game-time, you should set this to false. Besides that, it should work just fine.

    On a side note regarding the rules for "pvp" - if you basically want to allow default Rust PVP then you don't need any rules at all in your "pvp" section in "data", you can just leave it as "pvp": {} and it will skip all processing (the empty curly brackets are important). TruePVE is designed around blocking damage, so extra rules to allow damage is only necessary when you turn off damage as a default (like the default ruleset does), and then want to override that for certain entities.
     
  8. Ok, so you're saying put my PVP rules section to just "pvp": {} and that should conform to normal Rust rules in regards to PVP and raiding? And yes, I didn't see the realtime timer. Thanks, I'll check that out. Much appreciated for your rapid reply.

    I've updated the JSON file - does that look better?

    On a separate note - Out of curiosity - Is there a way that you could add some sort of... |"Notification" That fits in with the InfoPanel plugin or something, that just sort of says "PVP TIME" or "PVE TIME" - something along those lines? That way a player who joins in the middle of the day might be able to see - Ok, it's PVE or it's PVP time. Is that doable?
     

    Attached Files:

    Last edited by a moderator: Mar 7, 2017
  9. Yes, exactly.
    Technically it's possible to inject a custom panel into InfoPanel, but that's not something I had planned on doing in TruePVE. But I'll probe a bit and see what might be involved.
     
  10. And the updated JSON looks good?
     
  11. Sure does.
     
  12. Thank you so much. I greatly appreciate your time.
     
  13. @ignignokt84 I finally know what's causing these errors.

    This error spams RCON when getting cut by the barricades and high walls in a ZONE, which are undefined

    (02:32:49) | Failed to call hook 'OnEntityTakeDamage' on plugin 'TruePVE v0.6.7' (KeyNotFoundException: The given key was not present in the dictionary.)

    This error spams RCON when barricades and high walls get damaged. They do take damage, but other things don't. Walls, foundations, doors, etc etc.

    (02:20:34) | Failed to call hook 'OnEntityTakeDamage' on plugin 'TruePVE v0.6.7' (KeyNotFoundException: The given key was not present in the dictionary.)

    I put my .json down below. Which I have adjusted in different ways to see if it could be a setting or something. but I can't figure it out.

    Empty Zones seem to have worked in the past and putting {} (like below) in the line for each zone seems to mess it up:

    "mappings": {
    "default": {}
    "1932484": {},
    "48690131": {},
    "79316008": {},
    "4277451": {}
    },


    This way is the only way I used to have it work, below:

    "mappings": {
    "default": "default",
    "1932484": "1932484",
    "48690131": "48690131",
    "79316008": "79316008",
    "4277451": "4277451"
    },


    Also, barricades seem to take damage outside of ZONES. and can't figure out why, I have changed settings back and forth and still seem to be taking damage.

    In or out of zones, player does not take damage from barricades, highwalls.


    This is all seemed to work seamlessly in previous versions. I don't exactly know what is wrong. I've tried everything I can.







     

    Attached Files:

  14. Ok, I took care of the damage to barricades. I didn't realize that a setting was on true. and I finally understand what you meant by putting empty data entries in the data portion of the .json.

    Even with those entries, while in a zone. I still get errors spamming RCON.

    I have fixed damage on both sides of the zone, EXCEPT for when shooting at doors, walls, foundations, etc will not damage by bullet. I put 2 c4, door blew off.

    so, looks like damage is working, but why not bullets?
     
  15. Did you look at the json I uploaded here: TruePVE | Page 25 | Oxide ? It should do what you want, and might point to what your current config is missing. That config should also take care of the KeyNotFoundException you keep seeing.

    Regarding the bullet damage - what tier doors/walls/etc? Some tiers don't take bullet damage (sheet metal, armored)...
     
  16. I think I tried the .json you posted. I can try again with it.

    Yeah, I didn't know the higher tiers didn't take damage naturely

    EDIT: I just tried it again, and it seems to stop the spamming, but I don't exactly know what I was doing wrong to make the rcon get spammed with those errors so I can stop it if it happens again.
     
    Last edited by a moderator: Mar 7, 2017
  17. Okay, so I just tried this on my server - and lo and behold - no PVP was possible - during day or night. Any idea what's wrong?
    [DOUBLEPOST=1488929131][/DOUBLEPOST]It seemed to work - but the schedule didn't seem to work - is there a trick to getting it to work with teh ingame clock?
    [DOUBLEPOST=1488929687][/DOUBLEPOST]Interestingly enough, there is a way that it works - if I let the server run on its own, the schedule will not change ANYTHING. But - my schedule is set up to be 19:00 for PVP and 08:00. If the schedule goes all by itself, it will not change from PVE to PVP - UNLESS I reload the plugin. And it won't change from PVP to PVE unless I reload the plugin. Am I missing something?
     
  18. Nope, I'm seeing the same behavior on my side - I'm doing some debugging now.
     
  19. Ok, so I'm not just going crazy?
     
  20. Well that there is an entirely different question! :)