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. Sorry but that translation is very bad
     
  2. Yes !! of course i'm not english but I try to talk it because we have not other way
     
  3. Sorry I was asking if you could try and simplify to.
    Complex conversations translate poorly
     
  4. Today I was getting massive errors spamming, and no one could open doors/pick up items. I had to delete the beta version, and delete all data, and rollback to this oxide version. EDIT: Just realized there is another patreon version out. I was using the previous patreon version. I will try that version out now. Anyways this is what the errors were saying:
    Code:
    (12:32:27) | [Oxide] 12:32 [Error] Failed to call hook 'OnXpEarned' on plugin 'PvXselector v0.9.4' (NullReferenceException: Object reference not set to an instance of an object)
    (12:32:27) | [Oxide] 12:32 [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
     
    Last edited by a moderator: Sep 21, 2016
  5. You want I explain simplify and you want I explain in details some answer won't help if I remember good, sorry I can't do better than I try to do. Maybe you can be helper reported bug by other I don't know.

    Okay for this: "It also fixes issues with the ticket system and Baseplayer Null Reference Errors" meaning Ticket XP level up is solved this time or don't linked with this reference?
    Regard
     
  6. Just checking up on my server before heading out, and console is being spammed with this error.
    Code:
    (08:37:00) | [Oxide] 08:36 [Error] Failed to call hook 'CanBeTargeted' on plugin 'PvXselector v0.9.4' (InvalidCastException: Cannot cast from source type to destination type.)
    (08:37:00) | [Oxide] 08:36 [Debug] 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
    This new beta version seemed to be doing fine since i put it in, but after server restart it has been doing this non-stop.
    I'm gonna be putting back the oxide version for now as it doesn't spam.
     
    Last edited by a moderator: Sep 21, 2016
  7. Hey @k1lly0u and @Wulf know any reason the above error would happen?
     
  8. Wulf

    Wulf Community Admin

    The released version doesn't have that hook, so I can't tell you without seeing it. The error means the wrong arguments are being used though. The hooks haven't changed in Oxide though.
     
  9. Thanks for that wolf, Here is the code:
    Code:
            private object CanBeTargeted(BaseCombatEntity _target, AutoTurret _turret)
            {
                if (_target is BasePlayer)
                {
                    BasePlayer _victim = (BasePlayer)_target;
                    if (!PvPOnlyCheck(_victim.userID, _turret.OwnerID)) return false;
                    else return null;
                }
                else return null;
            }
     
  10. Wulf

    Wulf Community Admin

    The hook names might need to be split to avoid conflicts. The AutoTurret and The HelicopterTurret don't seem to share a base (at least not anymore), so that may be causing the issue when Oxide tries to call the hook. I'll have to check into it.
     
  11. Ok so you mean add a version for helicopters separately?
     
  12. Wulf

    Wulf Community Admin

    Mmmm, no, just meaning that the hook names use the same name and the arguments are conflicting, though I don't think they were before. You can try though.
     
  13. Same error for me and down my server yersterday, please, repair that before the wipe if it's possible :(
     
  14. Hang on my mod broke your server !!!!! do you have any log messages
     
  15. Yeah the mod down my Server i don't look my log yesterday and bim down, so i look the logs and i see a lot of messages with the same error. When i restart, no problem for me.

    I am at work and can't send you my log now.
    2h30 and i return to my home.
     
  16. "It also fixes issues with the ticket system and Baseplayer Null Reference Errors" no view of the new test version and i have no answer about was i say of shit
     
  17. The test version is only for donators, they help me to locate bugs more accurately.
    When I am happy and feel the mod is stable I will upload the version to oxide.
    EDIT:
    That fixed the issue.
     
    Last edited by a moderator: Sep 25, 2016
  18. Hi Wulf, I may have found the issue.
    Having a look at turrent config they use the following:
    private object CanBeTargeted(BaseCombatEntity target, MonoBehaviour turret)
    Your Oxide API says:
    void CanBeTargeted(BasePlayer player, AutoTurret turret)
    That might be causing the error when Helicopter attacks, will be testing now