Player Ranks

Player ranks and stats database

Total Downloads: 4,903 - First Release: Mar 4, 2017 - Last Update: May 29, 2018

5/5, 19 likes
  1. Nope, not everytime, occasionally it seems :/
     
  2. Ok, Thanks.
    It may relate to player-name characters.
    If you could note the full username next time you notice it, that would be really helpful.

    I'll check through the logs on my server and make sure it's not happening there too.
    The pop is very low, though.
     
  3. Alright will do, thanks man!
     
  4. Code:
    Failed to call hook 'OnEntityDeath' on plugin 'PlayerRanks v1.3.4' (KeyNotFoundException: The given key was not present in the dictionary.)
      at System.Collections.Generic.Dictionary`2[System.UInt64,Oxide.Plugins.PlayerRanks+PRDATA].get_Item (UInt64 key) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlayerRanks.ProcessNPCKills (.BasePlayer player, .BaseEntity victim) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlayerRanks.OnEntityDeath (.BaseEntity entity, .HitInfo hitinfo, .HitInfo info) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlayerRanks.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.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 hook, System.Object[] args) [0x00000] in <filename unknown>:0
    every time i kill an npc that shows in the cmd window

    EDIT

    ignore my post its something u cant fix.
    Its only when im in covert mode and that is not your plugin - as a normal user everything is fine :)
     
  5. Just took a look - There are a few things I should fix to prevent that from happening.
    Thanks @tomhud
     
  6. I am sorry, but what is SDR ???
     
  7. Suicides to Deaths ratio. :)
     
  8. error

    Failed to call hook 'OnEntityDeath' on plugin 'PlayerRanks v1.3.4' (UnauthorizedAccessException: Доступ к системе ограничен, недостаточно прав для использование -> (TYPE)System.Reflection.MethodBase) at Oxide.Plugins.PlayerRanks.HasFriend (System.String playerId, System.String friendId) [0x00000] in <filename unknown>:0 at Oxide.Plugins.PlayerRanks.ProcessPVPKill (.BasePlayer player, .BasePlayer victim) [0x00000] in <filename unknown>:0 at Oxide.Plugins.PlayerRanks.OnEntityDeath (.BaseEntity entity, .HitInfo hitinfo, .HitInfo info) [0x00000] in <filename unknown>:0 at Oxide.Plugins.PlayerRanks.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.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 hook, System.Object[] args) [0x00000] in <filename unknown>:0
     
  9. Interesting - Thanks for reporting!
     
  10. other errors today

    Code:
    (19:04:33) | Failed to call hook 'OnPlayerInit' on plugin 'PlayerRanks v1.3.4' (NullReferenceException: Object reference not set to an instance of an object)
      at MySql.Data.MySqlClient.MySqlDataReader.Close () [0x00000] in <filename unknown>:0
      at MySql.Data.MySqlClient.MySqlConnection.Close () [0x00000] in <filename unknown>:0
      at Oxide.Core.MySql.Libraries.MySql.CloseDb (Oxide.Core.Database.Connection db) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlayerRanks.LoadMySQL () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlayerRanks.SaveData () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlayerRanks.OnPlayerInit (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlayerRanks.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.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 hook, System.Object[] args) [0x00000] in <filename unknown>:0
    Code:
    (19:04:43) | MySql handle raised an exception in 'PlayerRanks v1.3.4' plugin (EndOfStreamException: Failed to read past end of stream.)
      at MySql.Data.MySqlClient.MySqlStream.ReadFully (System.IO.Stream stream, System.Byte[] buffer, Int32 offset, Int32 count) [0x00000] in <filename unknown>:0
      at MySql.Data.MySqlClient.MySqlStream.LoadPacket () [0x00000] in <filename unknown>:0
    EDIT
    Todays error :)

    Code:
    (10:10:11) | Failed to call hook 'OnLootEntity' on plugin 'PlayerRanks v1.3.4' (NullReferenceException: Object reference not set to an instance of an object)
      at Oxide.Plugins.PlayerRanks.OnLootEntity (.BasePlayer player, .BaseEntity entity) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlayerRanks.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.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 hook, System.Object[] args) [0x00000] in <filename unknown>:0
    (10:10:20) | Saved 35,321 ents, serialization(0.00), write(0.01), disk(0.00) totalstall(0.02).
     
    Last edited by a moderator: Jan 13, 2018
  11. Thanks @Ryrzy
    I'm noting these and will get a look soon.

    For the first two, I suspect maybe there's an issue with your sql database or credentials.

    Is the sql table being populated successfully?
     
  12. i had this error with mysql only few times, i will try to change mysql to local server (there where is rust server), i think that will fix this
     
  13. Cool, thanks.
    I'll try to find out what the loot entity issue is - Maybe a new item or something.
    Probably just need to add a null-check. There's a few other places I need to do that.
     
  14. btw. maybe is it posible to separate resourcesgathered to ore and wood separately like in Player Challenges plugin ? and add titles on chat like in PC plugin :D it would be ideal plugin then ! :) thanks for help
     
  15. Fuji informs me that the method of getting info here is blocked by some Russian hosts.
    All I can really suggest is switching hosts or disabling the RustIO feature in this plugin.
    [DOUBLEPOST=1515871673][/DOUBLEPOST]
    Hey, I'm afraid those are things I want to avoid.
    I don't want to introduce titles into PlayerRanks because there are other plugins for that,
    and I generally avoid going into specific categories of things, like syringes/bandages/medkits used instead of TimesHealed, for example.

    Sorry; Thanks for the suggestions, though. :)
     
  16. once again me :)
    are the chat messages taken from language files like /pr command ? i have translated all txt and /pr is ok, but on chat still EN only

    20180114102233_1.jpg
    20180114102249_1.jpg
     
  17. Yes, they're all in the same lang file.

    The word "PlayerRanks: " and the word "Top " (with spaces) are listed as separate entries.
    The category name is reused in the various places.

    I don't understand how you could see "PVE Kills" and "PVE zabicia" in the same place, as they're taken from the same lang entry.
    [DOUBLEPOST=1515942334][/DOUBLEPOST]
    I'm seeing this error today.
    Haven't scrutinised but it looks like it only happens if PlaytimeTracker is loaded/reloaded after PlayerRanks.

    May just be a coincidence but I'll find out and update when I know what's what.
     
    Last edited by a moderator: Jan 14, 2018
  18. me too... hmm strange.
     
  19. You reloaded the plugin after editing lang, right?
     
  20. yes i have, i have reboot server too :) strange... tomorrow i will try to copy oryginal EN file to my PL location and edit it one more time... but i think it is ok