TruePVE

Better PVE/PVP implementation

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

5/5, 26 likes
  1. I would assume the "mypvpzone" needs to be the Zone ID?
     
  2. Sure does.
     
  3. Thank you very much sir, appreciated! Glad to see this mod still going strong! :D
     
  4. Excuse me, I'm trying to re-set this all up now. But I'm not 100% sure how everything changed. Can you give me a bit of insight into how to set it up so that PVE is during the day and PVP is during the night? We JUST got it working on the previous version, and then you go and change the whole thing on me! GRRR hahaha
     
  5. Ive modified the zonemanager.cs with the code given in the info and ive created a zone its id is 31943911 and its name is Island.
    I tried making my config
    "Mappings":{
    "default":"default",
    "Island":"exclude"
    }
    and tried replacing Island with the id but doesnt seem to work.

    Im trying to make a PVP area for my server.
    Any help would be much appreciated.
    Attached my config file from server.
     

    Attached Files:

  6. The "Island" needs to be the zone ID for it to work.
    [DOUBLEPOST=1489107135][/DOUBLEPOST]
    The scheduling works essentially the same as the previous config, except the time, ruleset and message have all been rolled into one string instead of being in separate blocks.
     
  7. Works great now. Thank you very much
     
  8. @Bill Murray 2 - To elaborate a bit, the RuleSets are basically compressed versions of the "containers" from the previous version. The "links" that used to exist were the "rules" that are there now. So whereas before you had some container named "players" with a link to "players": false, now you have an Entity Group named "players", and you write a rule "players cannot hurt players"... It's similar functionally, but less complex overall.
     
  9. ignignokt84 updated TruePVE with a new update entry:

    0.7.1

     
  10. ignignokt84 updated TruePVE with a new update entry:

    0.7.2

     
  11. heyy can you give me example for the scheduler? i'm a bit confused atm :| it's been returning "
    TruePVE v0.7.2: Failed to load config file (is the config file corrupt?) (After parsing a value an unexpected character was encountered: ". Path 'Schedule.entries[0]', line 19, position 5.)
    Failed to call hook 'OnServerInitialized' on plugin 'TruePVE v0.7.2' (InvalidOperationException: Operation is not valid due to the current state of the object)"

    how do i handle to turn on PVP on the whole server?

    EDIT : welp it turns out to make the whole server accept the rules i need to make a new ruleset :)

    but this error keeps popping up : Failed to call hook 'OnServerInitialized' on plugin 'TruePVE v0.7.2' (InvalidOperationException: Operation is not valid due to the current state of the object)

    can you help me plz? xD
     
    Last edited by a moderator: Mar 10, 2017
  12. Hi I see that the authDamage is now gone. How do I allow building damage I can't destroy my wrongfully placed house. :(
     
  13. As I;m testing in a pvp zone (using explosives timed on buildingblocks although not sure if its specific to one type of item, entity) this is spamming my rcon.......... and I am sooooo confused on this new config.

    (00:39:29) | Failed to call hook 'OnEntityTakeDamage' on plugin 'TruePVE v0.7.2' (InvalidOperationException: Operation is not valid due to the current state of the object)
     
    Last edited by a moderator: Mar 10, 2017
  14. AuthorizedDamage << ------- copy and paste this into brlow code (Note bold function that is where it goes.


    {
    "name": "default", << ---------- this is name of Global Ruleset.
    "enabled": true,
    "defaultAllowDamage": false,
    "flags": "NoHeliDamage, HumanNPCDamage, LockedBoxesImmortal, LockedDoorsImmortal, AdminsHurtSleepers, AuthorizedDamage",
    "rules": [
    "anything can hurt dispensers",
    "anything can hurt players",
    "players cannot hurt players",
    "anything can hurt traps",
    "traps cannot hurt players", << ------------- NOT SURE HOW TO HANDLE ALL OF THIS YET. LOL
    "players can hurt barricades",
    "barricades cannot hurt players",
    "highwalls cannot hurt players",
    "anything can hurt heli"
    ]
    },
     
  15. still not working :( I also noticed that when reloading the plugin it reset the JSON file back to normal.
     
    Last edited by a moderator: Mar 10, 2017
  16. if it reset back to normal. something in the config was wrong.

    I'm sure that whatever changes u made didn't get saved because of that, and that's why it isn't working.

    AdminsHurtSleepers, AuthorizedDamage << ------- I forgot to put a space inbetween the , and AuthorizedDamage

    that would reset ur config. but not throw an error.
     
  17. yeah this happens to me too.. it seems if your code is not perfect(cannot be compiled) the code will reset to its original form.. so yea... make sure to copy paste your code first and check for , or }{ sign
     
  18. Can you upload your json? It sounds like the config loading failed...
    [DOUBLEPOST=1489148326][/DOUBLEPOST]
    As Krazy J mentioned (and also it states in the overview), authDamage was moved to the AuthorizedDamage flag. If it is resetting your config to default, then your config was invalid. I recommend running it through a json validator first, and that'll at least point out any formatting errors.
    [DOUBLEPOST=1489148367][/DOUBLEPOST]
    Looking into this now. Could you upload your json as well?
     
  19. I just noticed that you can only Demolish your building with hammer but with guns or sticks to destroy your building doesnt work. Is this how it supposed to work?
     
  20. What tier building are you trying to destroy? Using AuthorizedDamage I assume?