TruePVE

Better PVE/PVP implementation

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

5/5, 26 likes

  1. it doesn't matter where I make changes for the config, as I explained in a earlier post< it seems the rulesets and entitygroups linked to each zone (RaidableZones" in particular) doesn't matter how its set up

    I have gotten

    OnPlayerAttack
    OnEntityTakeDamage

    and I thought there was one more. but cant remember what it was lol
     

    Attached Files:

  2. There are some issues with your config - in particular, I think the empty "players" entity group is causing the console spam.

    Try the attached config and see if it does what you want. I didn't modify your "save" RuleSet since I don't know what you are trying to do with this (plus it's disabled).
     

    Attached Files:

  3. ok, ill try it. the :"save" is a default save of the original.. not used. :) What other problems do you see in my config ? lol im sure there is some.


    EDIT: with your config loaded. Still get the errors. I see what corrections you made. still didn''t help while in zone.

    Code:
    (19:10:28) | Failed to call hook 'OnPlayerAttack' on plugin 'TruePVE v0.7.6' (InvalidOperationException: Operation is not valid due to the current state of the object)
    (19:10:28) | Failed to call hook 'OnEntityTakeDamage' on plugin 'TruePVE v0.7.6' (InvalidOperationException: Operation is not valid due to the current state of the object)
    (19:10:41) | [Better Chat] [Platinum Rep] [Commissioner] Lady Grey: you got me
    (19:10:46) | [Better Chat] [Platinum Rep] [Commissioner] Lady Grey: i'm bleeding
    (19:11:42) | Unloaded plugin TruePVE v0.7.6 by ignignokt84
    (19:11:42) | Loaded plugin TruePVE v0.7.6 by ignignokt84
    (19:11:59) | [Better Chat] [Platinum Rep] [Commissioner] Lady Grey: yeah
    (19:12:08) | Failed to call hook 'OnPlayerAttack' on plugin 'TruePVE v0.7.6' (InvalidOperationException: Operation is not valid due to the current state of the object)
    (19:12:08) | Failed to call hook 'OnEntityTakeDamage' on plugin 'TruePVE v0.7.6' (InvalidOperationException: Operation is not valid due to the current state of the object)
    (19:12:52) | [TwigsDecay] TwigsDecay: Decayed 3 blocks (0 destroyed), 0 barricades (0 destroyed) and 0 gates (0 destroyed) and 0 ladders (0 destroyed)
    (19:12:52) | Calling 'OnTick' on 'TwigsDecay v2.0.2' took 742ms
    (19:12:52) | [Better Chat] [Platinum Rep] [Commissioner] Lady Grey: i think i'm about to be kicked
    (19:13:13) | [Better Chat] [Platinum Rep] [Commissioner] Lady Grey: oh crap, I still have that empty spot in my inventory!!!
    (19:13:23) | [ServerVar( ServerAdmin = true )] giving Lady Grey 1 x Heavy Plate Helmet
    (19:13:43) | [Better Chat] [Platinum Rep] [Commissioner] Lady Grey: ok
    (19:13:50) | Failed to call hook 'OnPlayerAttack' on plugin 'TruePVE v0.7.6' (InvalidOperationException: Operation is not valid due to the current state of the object)
    (19:13:51) | Failed to call hook 'OnEntityTakeDamage' on plugin 'TruePVE v0.7.6' (InvalidOperationException: Operation is not valid due to the current state of the object)
     
    Last edited by a moderator: Mar 15, 2017
  4. ignignokt84 updated TruePVE with a new update entry:

    0.7.7


    [DOUBLEPOST=1489584303][/DOUBLEPOST]@Krazy J - Sorry, I forgot to upload 0.7.7 after I sent you the json yesterday. It should take care of your issues.
     
  5. the download is the .json fyi @ignignokt84
     
  6. ignignokt84 updated TruePVE with a new update entry:

    0.7.8


    [DOUBLEPOST=1489588886][/DOUBLEPOST]
    Thanks - I don't know how that happened... Also 14 downloads and you're the first who said anything!
     
  7. lol. well I guess they'll find out.

    what does this mean ?
    (07:38:51) | Unloaded plugin TruePVE v0.7.6 by ignignokt84

    (07:38:51) | Loaded plugin TruePVE v0.7.8 by ignignokt84

    (07:38:51) | Failed to call hook 'OnServerInitialized' on plugin 'TruePVE v0.7.8' (InvalidOperationException: Operation is not valid due to the current state of the object)


    I think I had the schedule enabled on the config I had, trying to set it to realtime... but it gave me an error like that last night and never switched.
     
  8. Are you using the config I uploaded last night? This could be thrown if there is some bad data in the config. It's not an error I see locally though.
    [DOUBLEPOST=1489589392][/DOUBLEPOST]
    How are you trying to configure the schedule?
     
  9. Enabled: "true"
    RealTime: "true"
    Broadcast: "true"

    "*3.12:00 default PVE enabled!" << --------- 3 because today is Wednesday.
    "*3.18:00 pvp PVP time!"

    I just reloaded the same config without the scheduling and it loaded just fine.
     
  10. @ignignokt84 : Any chance of adding a JSON bool to allow twig destroy?
     
  11. For realtime, you only need to use "3.12:00" for the time. The asterisk is a wildcard meant for daily events - for example, "*.12:00", which would be fired daily at 12:00.
    [DOUBLEPOST=1489590342][/DOUBLEPOST]
    You can use the "AuthorizedDamage" flag to allow players to damage what they own or have build access to. Would that work for you?
     
  12. Possibly. Let me play with that. Wanted option for all players to destroy twig.. so if they ran across and old bear stand or something they could get rid of it.
    [DOUBLEPOST=1489590996][/DOUBLEPOST]Are you referring to
    Code:
    "defaultAllowDamage": false,
     
  13. I'm referring to adding an entry to the flags list for your RuleSet - like below:
    Code:
    "flags": "HumanNPCDamage, LockedBoxesImmortal, LockedDoorsImmortal, AuthorizedDamage",
     

  14. I didn't actually have the asterisk.. I copied and pasted the example to show u what I had, but forgot to take it out. lol

    my servers time is 9 hours ahead of me for some reason but I don't know how realtine works. Im guessing it checks the server time ? and starts it or does it do totally different ?

    can u add months into it too ? lol I want it automatic.. switching configs or confgi settings is a pain. sometimes.

    on the raid zones: They work perfectly now Foundations are not damageable and heli does damage bases. but...... I might just give it a rule that heli cannot damage foundations instead, I don't want people fighting the heli from in the zone..... lol cause they will
     
  15. It uses the server time to schedule, so if your server is 9 hours ahead of you then you may want to adjust your schedule accordingly.
    Months is a little too broad to use for scheduling, so I have no plans to use it.
    Yeah that's a good idea - the flag NoHeliDamage disables heli damage against most entities, but you can also set NoHeliDamagePlayer to prevent players from taking damage. To prevent players from shooting down the heli you just need a rule "players cannot hurt heli" in your pvp/raid zone RuleSets. :)

    Note: The "heli" RuleSet is really only meant to be used for heli receiving damage. Detecting heli damage towards other entities is more complex, so you should use the flags for those.
     
  16. That's what I'll do.. Players cant hurt heli and put the flag in for NoHeliDamagePlayer. that will stop it both ways.


    Are you good with GUI's ? why I'm asking is because ...... to make it easier to use and understand. use a GUI that opens that allows you to set config options from.
     
  17. I've thought about this, but unfortunately there's not a good way to capture input from a GUI built from a plugin. It'd be more work than it'd be worth in my opinion.
     
  18. that's cool, and that's what I thought. so..... more testing revealed Incendiary bullets damage (fire) foundations in the same zone I have "players cannot hurt foundations" set to.


    EDIT: Explosive too!
     
  19. I guess it makes sense to change the rule to "nothing can hurt foundations" instead of "players cannot hurt foundations".
     
  20. is there such a rule ?

    also, I was just thinking. can a toggle command for admin authlvl 1 and higher be put in for the svhedule to be enabled/ disabled? :)
     
    Last edited by a moderator: Mar 15, 2017