XP Equalizer

Automatically sets a new players XP to the current server average and force set any player

Total Downloads: 834 - First Release: Jul 8, 2016 - Last Update: Jul 23, 2016

5/5, 6 likes
  1. k1lly0u submitted a new resource:

    XP Equalizer - Automatically sets a new players XP to the current server average and force set any player

    Read more about this resource...
     
  2. Great job :D:D , can u explain a lil more how equalizer works?

    IF there are for example 3 players lvl 10, 20 and 30, the averange will be 20?? or it will be based on xp? :S Is it linear? need to know some info about trying it :) thx
     
  3. FTM

    FTM

    can you make an option to just instant max level on connect?
     
  4. Wulf

    Wulf Community Admin

    @LaserHydra will have that on his plugin, I'm not sure it fits this plugin's purpose.
     
  5. Yes, I am making a more complex / advanced plugin currently with more features which will most likely include that.
     
  6. FTM

    FTM

    Sounds good, thanks. Appreciate your hard work.
     
  7. got this on my console anyone else get this?
    Code:
    [Oxide] 22:15 [Error] Failed to call hook 'cmdXPE' on plugin 'XPEqualizer v0.1.0' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 22:15 [Debug]  at Oxide.Plugins.XPEqualizer.GetAverageStats () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.XPEqualizer.cmdXPE (.BasePlayer player, System.String command, System.String[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.XPEqualizer.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: Jul 9, 2016
  8. getting same not working I will try with oxide update
     
  9. SO that plugin get all players lvl( Also sleepers if set for) and divide it with the number of players it took? thx
     
  10. Yes, I have a update that will exclude admins and level 1 players to get a more accurate average

    There must've been another update since I posted this, I'll post a fix when I get home
     
  11. I was thinkinf on a worse accuarate like for example 3 players lvl 5 10 15 average is like 5. Making player numbers doble maybe? Is it doable?
    Thx
     
  12. k1lly0u updated XP Equalizer with a new update entry:

    0.1.1


    [DOUBLEPOST=1468042796][/DOUBLEPOST]
    Let me know if there are still any issues. I'm unable to test this on a server with other players
     
  13. (22:48:02) | [Oxide] 22:47 [Error] Failed to call hook 'OnPlayerInit' on plugin 'XPEqualizer v0.1.1' (NullReferenceException: Object reference not set to an instance of an object)

    (22:48:02) | [Oxide] 22:47 [Debug] at Oxide.Plugins.XPEqualizer.GetAverageStats () [0x00000] in <filename unknown>:0

    at Oxide.Plugins.XPEqualizer.OnPlayerInit (.BasePlayer player) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.XPEqualizer.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
     
  14. I was trying to avoid doing it this way but since its not working can you try this out? Delete your data file before uploading
     

    Attached Files:

  15. (23:59:41) | [Oxide] 23:59 [Error] Failed to call hook 'OnXpEarned' on plugin 'XPEqualizer v0.1.2' (NullReferenceException: Object reference not set to an instance of an object)

    (23:59:41) | [Oxide] 23:59 [Debug] at Oxide.Plugins.XPEqualizer.OnXpEarned (.BasePlayer player, Single amount, System.String source) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.XPEqualizer.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
    [DOUBLEPOST=1468047715][/DOUBLEPOST]I do have XpBooster installed too. I dunno if that makes a difference
     
  16. Shouldn't do, this grabs data after XpBooster has already modified it. It could only be 1 of 2 things. Either your missing a config entry or the player XP variables aren't returning a number. Can you post your config?
     
  17. yup this is the default one that was just created by the last one you posted
     

    Attached Files:

  18. I reckon this should do it
     

    Attached Files:

  19. Same thing

    (05:15:56) | [Oxide] 05:15 [Error] Failed to call hook 'OnXpEarned' on plugin 'XPEqualizer v0.1.2' (NullReferenceException: Object reference not set to an instance of an object)

    (05:15:56) | [Oxide] 05:15 [Debug] at Oxide.Plugins.XPEqualizer.OnXpEarned (.BasePlayer player, Single amount, System.String source) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.XPEqualizer.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
     
  20. What version of oxide are you running?