PvX Selector

Allows PvE/PvP Gameplay on one server.

Total Downloads: 688 - First Release: Apr 21, 2016 - Last Update: Mar 10, 2017

5/5, 14 likes
  1. ok everything looks to be back on track can anyone show me the correct way to accept an open ticket for a change i type
    /pvx admin accept 1
    and nothing happens??
     
  2. Please note that open tickets do not automatically change position, so a ticket at slot 3 will always be 3, easy way to check its position is to type /pvx admin list
    This lists every ticket # and the persons name
    Then all you need to do is /pvx admin accept #
     
  3. Code:
    (14:13:23) | [Oxide] 14:13 [Error] Failed to call hook 'CanAcceptItem' on plugin 'PvXselector v0.9.2' (NullReferenceException: Object reference not set to an instance of an object)(14:13:23) | [Oxide] 14:13 [Debug] at Oxide.Plugins.PvXselector.SameOnlyCheck (.BasePlayer _player1, .BasePlayer _player2) [0x00000] in <filename unknown>:0at Oxide.Plugins.PvXselector.CanAcceptItem (.ItemContainer container, .Item item) [0x00000] in <filename unknown>:0at Oxide.Plugins.PvXselector.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
    
    When a player want to take an item from PvP and he is PvE
     
  4. I have now added a Admin GUI to display a count of active and closed tickets (Does not track cancelled tickets) :)
     

  5. That's a cool feature. I like Seeing things while Im admin'ing.

    How hard would it be to stop building damage from the heli for just PVE players. Not sure if this has been asked before. But I'd fear that PVP players would try to bate the heli to damage or destroy PVE bases. Although, I don't know how bright that would be for them to do so. Ending up dead or something. But a group could easily do that. one baits it, destroys the building. the others are naked, and are able to gain access. But then again, nothing can be looted or picked up. so why try. Just a thought of mine.
     
  6. That is good idea Krazy! I have been thinking the same thing, as right now I'm using zonemanager for no damage in my designated PVE area. The only downside to this is the monument areas cannot be looted with nodamage allowed to the boarded doors.
     
  7. In regards to Helis, I have been informed by another player that hellis will not strafe run a area you do not have building perm in
     
  8. New problem:

    Code:
    (13:16:22) | [Oxide] 13:16 [Error] Failed to call hook 'PvXCmd' on plugin 'PvXselector v0.9.2' (IndexOutOfRangeException: Array index is out of range.)
    (13:16:22) | [Oxide] 13:16 [Debug]   at Oxide.Plugins.PvXselector.adminFunction (.BasePlayer _player, System.String[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PvXselector.PvXCmd (.BasePlayer _player, System.String cmd, System.String[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PvXselector.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 name, System.Object[] args) [0x00000] in <filename unknown>:0
    (13:16:37) | [Oxide] 13:17 [Error] Failed to call hook 'PvXCmd' on plugin 'PvXselector v0.9.2' (IndexOutOfRangeException: Array index is out of range.)
    (13:16:37) | [Oxide] 13:17 [Debug]   at Oxide.Plugins.PvXselector.adminFunction (.BasePlayer _player, System.String[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PvXselector.PvXCmd (.BasePlayer _player, System.String cmd, System.String[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PvXselector.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 name, System.Object[] args) [0x00000] in <filename unknown>:0
    Xp player when they change

    And now:

    Code:
    (13:39:15) | [Oxide] 13:39 [Error] Failed to call hook 'OnDoorOpened' on plugin 'PvXselector v0.9.2' (NullReferenceException: Object reference not set to an instance of an object)
    (13:39:15) | [Oxide] 13:39 [Debug]   at Oxide.Plugins.PvXselector.SameOnlyCheck (.BasePlayer _player1, .BasePlayer _player2) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PvXselector.OnDoorOpened (.Door _door, .BasePlayer _player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PvXselector.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 name, System.Object[] args) [0x00000] in <filename unknown>:0
     
  9. To Fix your first issue please use do the following:
    Replace:
    Code:
            void adminFunction(BasePlayer _player, string[] args){
                string _cmd = args[1].ToLower(); // admin, accept, 1
                if (!(hasPerm(_player, "admin", "MissPerm"))) return;
                if (args.Length < 2 || args.Length > 3){
                    LangMSG(_player, "IncoFormPleaUse");
                    ChatMessageHandle(_player, "/pvx admin [list/accept/decline/display]");
                    return;}
    With:
    Code:
            void adminFunction(BasePlayer _player, string[] args){
                if (args.Length < 2 || args.Length > 3){
                    LangMSG(_player, "IncoFormPleaUse");
                    ChatMessageHandle(_player, "/pvx admin [list/accept/decline/display]");
                    return;}
                string _cmd = args[1].ToLower(); // admin, accept, 1
                if (!(hasPerm(_player, "admin", "MissPerm"))) return;
    What I think has happened is that my mods check to see if the command was formatted correctly was not the first thing to be called, so if a player typed it wrong, it would result in an error.

    I will have to look into the second one, please try any find how that happened and reproduce it please.
     
  10. I think it's appear when a PvE player change to PvP and shoot his corpse after, i think i'm not sure

    So i replace ?
     
  11. My console is filling up with this stuff, I removed XPBooster but seems CC still has an issue with your mod :( oh and I set yours to 2x and gave permissions

    (06:47:33) | [Oxide] 07:18 [Warning] Calling hook OnXpEarn resulted in a conflict between the following plugins: CraftingController - 0.1 (Single), PvXselector (0.2 (Single))
    (06:48:07) | [Oxide] 07:19 [Warning] Calling hook OnXpEarn resulted in a conflict between the following plugins: CraftingController - 0.09920319 (Single), PvXselector (0.1984064 (Single))
    (06:48:18) | [Oxide] 07:19 [Warning] Calling hook OnXpEarn resulted in a conflict between the following plugins: CraftingController - 0.09880836 (Single), PvXselector (0.1976167 (Single))
    (06:48:20) | [Oxide] 07:19 [Warning] Calling hook OnXpEarn resulted in a conflict between the following plugins: CraftingController - 0.0996004 (Single), PvXselector (0.1992008 (Single))
     
  12. I would say you have forgotten to grab the modified version of that plugin from 9
     
  13. Hi all.
    For anyone who would like 2 support my work I have a test final version of PvX on Patreon, feel free to subscribe and test it out.
    If all goes well I am looking to get the released version ready in 2 weeks, possibly 3 if I am to include a GUI.

    Alvin is creating Scripts/Mods/Code and more | Patreon
     
  14. Hi it seem some problems with Player Commands:
    /pvx select [pvx/pvp] :- Allows players to select there mod if the Gui doesn't show. <-that switch nothing fresh install
    /pvx change :- Will submit a ticket asking to change to the other mode. <- With this one admin receive no visible advice and then player can wait for a long time? if no ask to admin
    /pvx ticket reason "Message" :- Allows players to submit a reason for there change request. <-not tried
    /pvx ticket cancel :- Cancels your requested ticket <- This one need to be input 2 times for been cancel right.

    and the really big problem is when admin answer ticket decline or accept, then there nothing that happen to the player but request seem writed in the datas files...idk :/

    I add, Permission admin added ok

    Question what do these lines?:
    Cap-Settings": {
    "PvE-Enabled": false,
    "PvE-Max-Level": 99,
    "PvP-Enabled": false,
    "PvP-Max-Level": 99

    also that spaming console too as example:
    (02:48:06) | [Oxide] 02:50 [Warning] Calling hook OnXpEarn resulted in a conflict between the following plugins: PvXselector - 0.009034635 (Single), CraftingController (0.009034635 (Single))
    (02:48:07) | [Oxide] 02:50 [Warning] Calling 'OnXpEarned' on 'PvXselector v0.9.2' took 595ms
    (02:48:07) | [Oxide] 02:50 [Warning] Calling hook OnXpEarn resulted in a conflict between the following plugins: PvXselector - 0.009192539 (Single)

    Regard
     
    Last edited by a moderator: Sep 5, 2016
  15. Not sure you question, But this is only there in case the gui doesn't show. if a new player joins but the selector menu doesn't show then this allows the to select by chat.

    Newest version has an admin GUI, This is currently available to Patrons for testing at: Alvin is creating Scripts/Mods/Code and more | Patreon

    You only need to type this once

    This is to allow servers to have a cap, and what level that cap is, for example you can set a PvE player to go no higher than level 15

    To fix download my version on page 9 of this thread
     
  16. Hi thank for fast reply, do you mean v 0.9.0? page 9 have 2 version like the latest i've used to report you what we talk, ok i try 0.9.0 and CraftControler linked with it seem (I use it too in our server).

    for this:
    /pvx ticket cancel :- Cancels your requested ticket

    You only need to type this once <- i'm sorry but you wrong this command need to be input 2 times to see a confirmation message in the 0.9.2 version.

    Ps: All seem fine for us with 0.9.0 version thanks.
     
    Last edited by a moderator: Sep 4, 2016
  17. When you say that you enter twice to see confirmation message, what would that message be that you see after typing it twice?
    EDIT##
    Also please note that in the beta version being tested at the moment the PvP/PvE indicator on screen will indicate if you have a ticket active.
     
  18. what would that message be that you see after typing it twice? idk i think i don't understand your answer i say that cause i see to have a reply that need to be enter twice like you say.

    Np about beta ! i think and i need your plugin go in front i and we need it.
    i report you a new big big BIG problem version 0.9.0 idk how to but when my admin friend and me too (admin) have to switch between and more that 1 time pve/pvp (as admin maybe linked)) switch to test some things, we have a surprise that our level up and XP's go x2 or more !!! as example: my admin friend was level 11 after ticket and switch accepted he become level 39 and item has been unlocked and 1460~ Xp's ^^:/, by this way luckily I file backups .db XP server stats and needed to input them and restart the server completely.

    have a good job...
     
    Last edited by a moderator: Sep 5, 2016
  19. Currently testing a fix for the XP system, Looking at uploading that patch tonight, Depending on feedback from my Patron testers.
    I will look at adding a message for players when they cancel their ticket.
     
  20. Alphawar updated PvX Selector with a new update entry:

    0.9.3