Level System

A simple plugin to add XP and levels in the game

Total Downloads: 1,277 - First Release: Apr 9, 2016 - Last Update: Apr 1, 2018

5/5, 11 likes
  1. Well I try multiple ways but it's annoying that my oxide log file sometimes randomly stops working and thus I'm not able to find a solution.
     
  2. Wulf

    Wulf Community Admin

    Add some null checks. ;)
     
  3. no errors for me but its not giving any extra damage.mayby just that its hard:(
     
  4. Thanks a lot Wulf though I already was planning to.
    I also noticed the problems with the bonus damage not being given and fixed that as well.
     
  5. D-Kay updated Level System with a new update entry:

    0.4.2

     
  6. good work.its work now
     
  7. Great to hear. If there are any more problems please let me know. Also if there are suggestions for new features tel me and I'll see if it would be any good in the system.
     
  8. I will test the damage bonus tomorrow.
    The healing problem (NULL) is now an overflow error, there it is :

    Code:
    [Oxide] 23:39 [Error] Failed to call hook 'OnEntityHealthChange' on plugin 'Leve
    lSystem v0.4.2' (OverflowException: Number overflow.)
    [Oxide] 23:39 [Debug]   at (wrapper managed-to-native) object:__icall_wrapper___
    emul_fconv_to_ovf_i8 (double)
      at System.Convert.ToInt32 (Double value) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.LevelSystem.GiveBonus (Int32 PlayerLvl, Double Damage, Double
    Bonus, Int32 type) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.LevelSystem.OnEntityHealthChange (CodeHatch.Networking.Events
    .Entities.EntityDamageEvent damageEvent) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.LevelSystem.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[] arg
    s) [0x00000] in <filename unknown>:0
     
  9. mayby that can add also more run speed and healt.i already set up more run speed my server but if levelling can do that.its better:).
    and mayby 1thing more:) what about if players need some levels before he can claim throne.what i look this far players dont care much about levels and its shame its so nice system and giving much more this game
     
  10. It's a chaos.
     

    Attached Files:

  11. We're working on the null reference errors. Next patch will at least fix the number overflow.
     
  12. Soon there will be a error fix?
    I'm tired of seeing it. >.<
     
  13. I think it's fixed. If I don't get any errors by tonight I will put it online.
     
  14. so its possible to add throne capture for levelling?i mean you need to be lvl 10 or something before you can capture throne
     
  15. Will try that later. First wanna get all the errors gone.
     
  16. D-Kay updated Level System with a new update entry:

    0.4.3

     
  17. Err...
     

    Attached Files:

    • err.png
      err.png
      File size:
      56.1 KB
      Views:
      14
  18. Getting the same "OnEntityHealthChange" Error as well, even after updating to 0.4.3, this has been happening ever since beginning using this plugin. Any quick fix, its reall annoying.




    Code:
    [Oxide] 14:11 [Error] Failed to call hook 'OnEntityHealthChange' on plugin 'Leve
    lSystem v0.4.3' (KeyNotFoundException: The given key was not present in the dict
    ionary.)
    [Oxide] 14:11 [Debug]   at System.Collections.Generic.Dictionary`2[System.String
    ,System.Int32].get_Item (System.String key) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.LevelSystem.GetCurrentLevel (CodeHatch.Engine.Networking.Play
    er player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.LevelSystem.OnEntityHealthChange (CodeHatch.Networking.Events
    .Entities.EntityDamageEvent damageEvent) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.LevelSystem.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[] arg
    
     
  19. It's fixed in the next patch. Will put it online later.
     
  20. Right on, Can't wait to stop seeing these errors lol