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. IMPORTANT - READ FIRST
    This is an update for testing, this version is in no way complete and is in no way efficient.
    I only want to know that it works, and how stable it is. Please do not use this to replace the current version.
    This will not replace your current data.
    Instructions:
    1. delete the current Plugin, install this test version.
    2. The GUI is broken, Players can type: /pvx select pve/pvp
    3. Players that want to change can type /pvx change pve/pvp
    4. Damage system is using the same version so no improvements there.
    5. Players can cancel there change ticket with /pvx ticket edit cancel
    6. Players can change the reason provided on the ticket with /pvx ticket edit reason "xxxxxxxxx"
    7. Admins can get a count of tickets using /pvx ticket admin list
    8. admins can list all available tickets in chat and Rcon using /pvx ticket admin list all
    9. admins can display one ticket using /pvx ticket admin list (number)
    10. admins can accept a ticket or decline a ticket with /pvx ticket admin accept/decline (x)
    11. when a player is online and a player ticket is accepted/declined they are informed, At this time offline players are only informed of accepted tickets when they log in.
    Please note there are alot of chat prompts missing, these will be added in due time when I optimize the code, for the time being I want to see how well the mod handles things like combat and how the ticket system handles over time of many submitions.

    If you have questions about this feel free to let me know, you can easily switch between this version and the current version by easily replacing the plugin.
     

    Attached Files:

  2. Super I'll test her tonight, I donerez you news tomorrow and then leave later if there is ever a concern .
    So adding the edit and cancel the ticket comandes admin and the fact that offline players get the message when it conect ?
     
  3. having a lil issue on my server they are trying to change from pve to pve and /pvx change doesnt work any ideas what could be going on
     
  4. New version guy he have send on pm and test on my server so is not the finish version so he work for moment.

    I share your last version i grieve if you did not want anyone but demand :/
     

    Attached Files:




  5. thank you all fixed now
     
  6. I don't have all fix, @Alphawar have all fix ;)
    But no problem :D
     
  7. Alphawar updated PvX Selector with a new update entry:

    0.7.1

     
  8. Alphawar updated PvX Selector with a new update entry:

    0.8.0

     
  9. just installed it and everything seams to be working correctly but im getting error messages in console any idea what it could be
    Code:
    [Oxide] 10:53 [Warning] Calling hook OnXpEarn resulted in a conflict between the following plugins: CraftingController - 0.008319159 (Single), PvXselector (0.008319159 (Single))
    [Oxide] 10:53 [Warning] Calling hook OnXpEarn resulted in a conflict between the following plugins: CraftingController - 0.00851055 (Single), PvXselector (0.00851055 (Single))
    [Oxide] 10:53 [Warning] Calling hook OnXpEarn resulted in a conflict between the following plugins: CraftingController - 0.008506219 (Single), PvXselector (0.008506219 (Single))
    [Oxide] 10:53 [Warning] Calling hook OnXpEarn resulted in a conflict between the following plugins: CraftingController - 0.008507673 (Single), PvXselector (0.008507673 (Single))
    [Oxide] 10:53 [Warning] Calling hook OnXpEarn resulted in a conflict between the following plugins: CraftingController - 0.007745411 (Single), PvXselector (0.007745411 (Single))
    [Oxide] 10:53 [Warning] Calling hook OnXpEarn resulted in a conflict between the following plugins: CraftingController - 0.008501988 (Single), PvXselector (0.008501988 (Single))
    [Oxide] 10:53 [Warning] Calling hook OnXpEarn resulted in a conflict between the following plugins: CraftingController - 0.008500536 (Single), PvXselector (0.008500536 (Single))
    [Oxide] 10:53 [Warning] Calling hook OnXpEarn resulted in a conflict between the following plugins: CraftingController - 0.008499084 (Single), PvXselector (0.008499084 (Single))
    [Oxide] 10:53 [Warning] Calling hook OnXpEarn resulted in a conflict between the following plugins: CraftingController - 0.008497632 (Single), PvXselector (0.008497632 (Single))
    [Oxide] 10:53 [Warning] Calling hook OnXpEarn resulted in a conflict between the following plugins: CraftingController - 0.008503441 (Single), PvXselector (0.008503441 (Single))
    [Oxide] 10:53 [Warning] Calling hook OnXpEarn resulted in a conflict between the following plugins: CraftingController - 0.008306533 (Single), PvXselector (0.008306533 (Single))
    [Oxide] 10:53 [Warning] Calling hook OnXpEarn resulted in a conflict between the following plugins: CraftingController - 7.481341E-06 (Single), PvXselector (7.481341E-06 (Single))
    [Oxide] 10:53 [Warning] Calling hook OnXpEarn resulted in a conflict between the following plugins: CraftingController - 7.452319E-06 (Single), PvXselector (7.452319E-06 (Single))
    [Oxide] 10:53 [Warning] Calling hook OnXpEarn resulted in a conflict between the following plugins: CraftingController - 7.423582E-06 (Single), PvXselector (7.423582E-06 (Single))
     
    Last edited by a moderator: Aug 7, 2016
  10. In simplest terms these mods are both returning a value when the Oxide hook: OnXpEarn is called.
    At this time I am not sure of a solution, I am looking into a solution
     
  11. Ok, so.. I, one of my admins and one of my friends that play on my server tested this:

    We like it, but still a few things wrong with it.

    The ticket system doesn't seem to be exactly right as far as working.
    The players can submit a ticket with the /pvx change command but the syntax of the admin commands are wrong and will throw an error every time in the game screen.

    It did throw some rcon errors to do with onXPearned, its not compatible with crafting controller, which you already know about.

    1 thing I do not like is the constant spamming of notification that "Im a PvE Player", It tends to lag the screen enough that it shows.
    If there is an option that can be implemented to turn that off, that would be great.

    Other than that, the mod is good, It also works with the TruePVE Mod we have on server as long as our mods hookdamage is "false"

    Needed config options:
    PVPPlayerlootable True/ False
    PVEPlayerLootable: True/ False
     
  12. I am aware of this, And have messaged the owner of the mod, I am waiting for them to either make a hook I can call or a setting in there mod to disable there XP functions or to add compatibility to my mod
    At this time these messages are required so players are aware of they are wasting ammunition on a player they cant damage, On my small scale tests with infinite ammo using guns such as custom smg and shotgun at extremely close distances did not cause issues, But this is only a temporary solution until I can find a better version. Also there isnt currently a way that I can limit how often it sends that message effectively.

    I have already planned a whole list of features that I am bringing out when I have time, I do not have alot of time, generally I have 2-3 hours after work while my son is sleeping or being feed, so I am now working on a weekly goal for patches, minor changes and a fortnightly goal for major changes.
    Last week I had to focus on XP functions due to the new XP system integrated into rust, This week I have assigned myself the task oh dealing with PvE/PvP abusers who live together, this update will be ready by sunday night (+12 timezone).
    My current target functions are to deal with player looting, crate looting, door usage and wall placing. I have completed the first 2 and are working on Door interaction, I am unsure if I will get Authorization and Building down easily as they are fairly complicated issues.
    Also please note config settings will not be added unless required by that function, for example I have added settings for Cap and Cap Level, But I will not allow customisation of Looting until a later date.

    When providing these kinds of feedback it is best to provide a few lines at least of the error messages so I know what is causing errors, and if this is chat based then you will also need to include what was typed to produce that error.

    Please note that the chat commands currently differ from that of the Home page, read the update page and it has in detail the new chat function names.
    In regards to this I can assure you that on a clean install where you have deleted the config and data files then installed the latest version have no issues with the ticket system, I do my best to fully test functions to make sure that there are no common errors, Syntax errors could be caused if you are passing it information that it does not expect eg /pvx admin accept 1.2, This could throw an error, so as stated before I require that you include the messages you are sending.

    EDIT#######
    Also If you server is "Rust Haven" I have noticed 2 things, 1 you are running version 0.7.1, Also you have modified the Gui, and any modifications to the core plugin could accidentally cause issues in the mod.
     
    Last edited by a moderator: Aug 10, 2016
  13. This would help to get rid of any excess mods on the server, but take your time. I am patient.

    I am sure I can reproduce those errors. Also, I read the whole questions/ answer thing to get the new commands and some weren't working for me. but ill test it more.

    Edit: Heres one for ya
    **Already have submitted ticket** (#1)
    I type this: /pvx ticket admin accept 1 (theres only one ticket)
    I get this :
    Incorrect format Please Use:
    /pvx ticket cancel
    /pvx ticket reason "reason on ticket"
    Code:
    (15:21:46) | [Oxide] 15:21 [Error] Failed to call hook 'PvXCmd' on plugin 'PvXselector v0.8.0' (IndexOutOfRangeException: Array index is out of range.)
    (15:21:46) | [Oxide] 15:21 [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

    My admin even tried to do it, got the same error

    What ill do is take all mods out of the server Im testing on and try clean install without other mods.

    Note: "Rust Haven" that is not my server, but I have played on it before.

    My server is Krazy PVE, which Isn't the one Im running the mod on. I have a test/new server that im testing new things on, and eventually want to switch to a pve/ pvp system without having zones and other mods for looting, damage etc etc.
     
    Last edited by a moderator: Aug 10, 2016
  14. Player Commands:
    1./pvx change - This will create a ticket, requesting the player wants to change
    2./pvx ticket cancel - will cancel there active ticket
    3./pvx ticket reason "Text Message Here" - Allows players to alter the reason why they want to change

    Admin Commands:
    1./pvx admin count - provides a count of active tickets and closed tickets
    2./pvx admin list - lists all tickets# and player names in chat
    3./pvx admin display "#" - Displays details about a single ticket
    4./pvx admin accept "#" - Accepts the ticket and allows the change
    5./pvx admin decline "#" - Declines the ticket, leaving the player the same.

    So, took a little figuring out, but with the help from a friend. We deciphered the commands.
     
  15. Im Glad you managed to clear it up, when you say you deciphered the code, is that because I didnt write it correctly, or just that you missed the update info?
     
  16. some of the commands were backwards. but its ok, my newly acquired friend made that list. and we have tested them and it has corrected the errors I was having.
    The update info on this page is what I was talking about what we were deciphering.
    These Below:
    Code:
    1.delete the current Plugin, install this test version.
    2.The GUI is broken, Players can type: /pvx select pve/pvp
    3.Players that want to change can type /pvx change pve/pvp
    4.Damage system is using the same version so no improvements there.
    5.Players can cancel there change ticket with /pvx ticket edit cancel
    6.Players can change the reason provided on the ticket with /pvx ticket edit reason "xxxxxxxxx"
    7.Admins can get a count of tickets using /pvx ticket admin list
    8.admins can list all available tickets in chat and Rcon using /pvx ticket admin list all
    9.admins can display one ticket using /pvx ticket admin list (number)
    10.admins can accept a ticket or decline a ticket with /pvx ticket admin accept/decline (x)
    11.when a player is online and a player ticket is accepted/declined they are informed, At this time offline players are only informed of accepted tickets when they log in.
    
     
  17. Alphawar updated PvX Selector with a new update entry:

    0.8.5

     
  18. Hello Alpha, I have some testing info for you.

    I was testing the new version that you uploaded this morning, I deleted everything to start off with before updating and found the message for PVE Attacker is still there. I thought that in your update you had said that you had deleted this?. I have tried deleting reloading and unloading and then reloading several times to get rid of it but wasn't able to achieve that goal, its a small issue and not so important as of right now.

    I also tested a PVE with PVP functionalities together. I know eventually you said that you were looking into pvp and pve players living together situations. This may be why the tool cupboards can be authorized by the pvp player even if the tc belongs to a pve player. PVP players are still not able to destroy buildings after authing, Which is good until you can work out the living situations.

    Tested new looting system and it works great *High Five* I like it very much.

    Suggested Future Features:

    Admin overrides:
    1. killing sleepers
    - no matter if he/she is pve or pvp (I kill sleepers out in the open on my server)
    2. looting sleepers - no matter if he/she is pve or pvp (We put items in donation boxes or give to active players)
     
  19. PvX is wonderful
     
  20. Just talked to a few players and they are reporting back that pve bases can be broken into and pvp bases can't be touched and u can build in any building blocked any idea what could cause this and if and when a patch will be released to fix these issues