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. New version I'm getting this Error when it tries to compile.
    [Oxide] 8:33 AM [Error] Plugin filename is incorrect: PvXselector.cs (should be PvXselector1.cs)

    I went back to the previous version as this one wont compile for me. Is anyone else getting this?
     
  2. Code:
    (11:34:17) | [Oxide] 20:34 [Info] PvXselector was compiled successfully in 4688ms
    (11:34:17) | [Oxide] 20:34 [Info] Loaded plugin PvXSelector v0.9.3 by Alphawar
    (11:34:17) | [Oxide] 20:34 [Info] [PvXSelector] Creating a new configuration file!
    (11:34:17) | [Oxide] 20:34 [Info] [PvXSelector] Checking if pvxselector.admin is registered.
    (11:34:17) | [Oxide] 20:34 [Info] [PvXSelector] pvxselector.admin is registered.
    (11:34:17) | [Oxide] 20:34 [Info] [PvXSelector] Checking if pvxselector.wipe is registered.
    (11:34:17) | [Oxide] 20:34 [Info] [PvXSelector] pvxselector.wipe is registered.
    (11:34:17) | [Oxide] 20:34 [Info] [PvXSelector] Checking if pvxselector.adminxp is registered.
    (11:34:17) | [Oxide] 20:34 [Info] [PvXSelector] pvxselector.adminxp is registered.
    (11:34:17) | [Oxide] 20:34 [Info] [PvXSelector] Checking if pvxselector.vipxp is registered.
    (11:34:17) | [Oxide] 20:34 [Info] [PvXSelector] pvxselector.vipxp is registered.
    [UPDATE] File is updated and working correctly as far as I can see now.

    I renamed the file to PvXSelector1.cs and it compiled.
    Im still getting other errors though.
    [DOUBLEPOST=1473100004][/DOUBLEPOST]This is spamming my RCON and crashing it again after I put the new version in, I do have the modded version of the Crafting Controller, just might need to update that mod again.
    (11:16:46) | [Oxide] 20:17 [Warning] Calling hook OnXpEarn resulted in a conflict between the following plugins: CraftingController - 0.01643832 (Single), PvXselector1 (0.01643832 (Single))

    im getting some other errors too just have to catch them. Ill report them back here when I can read them.
    [DOUBLEPOST=1473100716][/DOUBLEPOST]For anyone that is getting the rename error. I fixed the file. :) Enjoy

    **Note** Crafting Controller was giving me problems again, even with a modded version of the Controller.*** I'm not sure how to fix that yet.

    **UPDATE** Crafting controller is working with PvXSelector again, reloaded with no errors, When I renamed to PvXSelector1 the selector wasn't referenced anymore, allowing the conflicting error to spam RCON. but that's fixed now.
     

    Attached Files:

    Last edited by a moderator: Sep 5, 2016
  3. Yes Krazy, its the base of my server now. Is your fixed PvX version not spamming errors now with edited crafting controller?
     
    Last edited by a moderator: Sep 5, 2016
  4. Thanks alot Krazy, that was my mistake, was very tired last night when I uploaded that file, to stop Visual studio complaining about two PvXselectors I have to change the name inside the mode, and I forgot to check that before uploading last night (was way past my bed time :p).
     
  5. Yes its working without spamming Console.

    NP Alpha, it was a simple renaming fix.. I think anything more and I would have been stuck until you were able to re-update it.
     
  6. Alphawar updated PvX Selector with a new update entry:

    0.9.3

     
  7. @Alphawar

    are none of these implemented yet?

    GODMODE SETTINGS:
    • "CanBeHurt": false,
    • "CanBeLooted": false,
    • "CanEarnXp": false,
    • "CanHurtPlayers": false, <-- Recommended
    • "CanLootPlayers": false,
    Also, I cant get /pvx admin mode to pull up anything.
    I deleted everything before I updated.

    I can still pull up /pvx admin build so I know I have the permission.
    Is there some other permission I don't know about ? lol
     
  8. I will see if I have some spare time at lunch to fix that else I will look at it when I am home. Most likely I didnt update the chat command to reference to admin build.
    As admin mode is to replace admin build
     
  9. Thanks for your hard work, Alpha. :)
     
  10. Looks like part of the of the mod that was for the admin mode version was not copied over, I will add that within the next 30 hours, I have alot on at the moment. I will try tonight
     
  11. I also forgot to mention, that is in regards to the actual god mode mod provided by wulf.
    Godmode for Rust | Oxide
     
  12. Alphawar updated PvX Selector with a new update entry:

    0.9.3

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

    0.9.4

     
  14. The gui is a nice touch. :)

    I got this error below before I switched to 0.9.4 any Idea what caused that? I have no clue. lol

    Code:
    (05:51:37) | [Oxide] 14:51 [Error] Failed to call hook 'OnLootEntity' on plugin 'PvXselector v0.9.3' (NullReferenceException: Object reference not set to an instance of an object)
    (05:51:37) | [Oxide] 14:51 [Debug]   at Oxide.Plugins.PvXselector.PvPOnlyCheck (.BasePlayer _player1, .BasePlayer _player2) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PvXselector.OnLootEntity (.BasePlayer _looter, .BaseEntity _target) [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
     
  15. That error may be fixed in the newest version.
    I am aware of a few things that where causing that.
     
  16. This is the only error I have been getting. It happens when a NPC kills someone or kills a animal. Using release from today.

    [Oxide] 08:16 [Error] Failed to call hook 'OnXpEarned' on plugin 'PvXselector v0.9.4' (NullReferenceException: Object reference not set to an instance of an object)

    (08:16:57) | [Oxide] 08:16 [Debug] at Oxide.Plugins.PvXselector.OnXpEarned (UInt64 _userID, Single _amount, System.String source) [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
     
  17. Hi guys, is the level multiplier and xp when switch bug is solved?
    I been read nothing about this major fix :/

    Regard
     
  18. If you read the original V 0.9.3 update:
     
  19. Think it would be possible to bring up a list to see who is pve and who is pvp sorta like playermanager is?