PlayerRankings

Moved

Total Downloads: 8,317 - First Release: Nov 19, 2015 - Last Update: Jan 17, 2018

5/5, 13 likes
  1. Hi there.
    Firstly, love the plugin.
    Just wondering if you could help me with a problem in rank priority.

    I have ~4.5 hours on my server yet PR (or BetterChat) is putting me at 10+ hours.

    I've attached the files I think you'd need to help me out.

    Regards.
     

    Attached Files:

  2. PlayerRankings handles the granting and revoking of groups on rankup. The rank handler is BetterChat. What is the main problem? Do you see 10 hours of playtime instead of what is meant to be 4.5 when you do ./ranks ?
     
  3. I see 4.5 hours when I use /ranks but it shows me in group 'Regular' instead of 'Food'.

    Would this be a BetterChat problem then?
    [DOUBLEPOST=1471810775][/DOUBLEPOST]
    "when I type in chat it shows me in the group 'Regular' instead of 'Food'" *
     
  4. Try removing the Regular rank from BetterChat and see if that works. Not sure why as it was grant the group Regular if it requires 10 hours and you only have 4.5. The rank Regular was and has always been a problem xD
     
  5. Ah yes. That seems to have done it.

    Much appreciated! +1
    [DOUBLEPOST=1471812577][/DOUBLEPOST]
    Actually it's put my group as the 5 hour 'STU' group ¬_¬
     
  6. Do ./ranks and see specifically the amount of hours you have...it seems like you have had all groups granted but not revoked to you :p. Try to level up.
     
  7. Okay. I believe it's sorted now.

    I think I added myself to STU while testing. I just removed myself from it and voila!

    Thanks mate :)
    [DOUBLEPOST=1471814068][/DOUBLEPOST]Also. I figured out how to fix the 'regular' group problem.
    In the 'new void LoadConfig()' section, I removed the 'Regular' portion since I still use the 'Pro' part.

    Hope this helps :)
     
  8. Yeah if you manually removed it then it won't come up in the config. Good to hear all is well.
     
  9. Hi again.

    Just restarted my server and lost ~2.25 hours on the rankings but the server is still the same.

    Is there a way to boost my playtime up to what it should be?
     
  10. After you restart the server, you may lose a few minutes, but 2 hours can probably mean that your server is not saving properly.
     
  11. It might've been a glitch (or I've filled the time back up) since I'm past 10 hours now.

    Ah well, thanks anyway :)
     
  12. Code:
    [Oxide] 09:53 [Error] Failed to initialize plugin 'PlayerRankings v2.0.2' (KeyNotFoundException: The given key was not present in the dictionary.)
    [Oxide] 09:53 [Debug]   at System.Collections.Generic.Dictionary`2[System.String,System.Object].get_Item (System.String key) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlayerRankings.UpdateGroups (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlayerRankings.Loaded () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlayerRankings.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.Plugins.CSharpPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0 
    What is wrong Here ?


    Ok, Found the Misstake xD
     
  13. @Resistance
    Hi, i am a ambisious newb admin, that messed up the ranksystem completely on his server. I am afraid to go any further on my own, since it only seems to get worse ^^ you helped my friend gandalf to set it up, so i am hopefull you might help me too? :)
     
  14. What is the issue?
     
  15. I have a complete chaos in the groups and ranks, some players had the old ranks, some the new ranks and some no rank at all.. and i am really struggling with those chat groups and oxide groups, is a chat group automaticly a oxide group? or do i have to make a oxide group with the sae name? I feel like just deleting the hole thing, when i try to undrstand how it works ^^ i have over 70 working plugins, some of them i didnt only config but actually edit the plugin itself to make it better for me. I learn fast, but this ranks are just too confusing to me, i cant figure it out by myself.
     
  16. My Config look´s like:
    Code:
    {
      "Settings": {
        "Ignore Admins": false
      },
      "stammspieler1": {
        "Oxide Group": "stammspieler1",
        "Playtime": 1.0
      },
      "stammspieler10": {
        "Oxide Group": "stammspieler10",
        "Playtime": 10.0
      },
      "stammspieler100": {
        "Oxide Group": "stammspieler100",
        "Playtime": 100.0
      },
      "stammspieler25": {
        "Oxide Group": "stammspieler25",
        "Playtime": 25.0
      },
      "stammspieler5": {
        "Oxide Group": "stammspieler5",
        "Playtime": 5.0
      },
      "stammspieler50": {
        "Oxide Group": "stammspieler50",
        "Playtime": 50.0
      }
    }
    then i get this error:
    Code:
    [Oxide] 10:38 [Error] Failed to run a 15.00 timer in 'PlayerRankings v2.0.2' (FormatException: Input string was not in a correct format.)
    [Oxide] 10:38 [Debug]   at System.String.FormatHelper (System.Text.StringBuilder result, IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0
      at System.String.Format (IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0
      at System.String.Format (System.String format, System.Object arg0) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlayerRankings.UpdateGroups (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlayerRankings.<Loaded>m__0 () [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00000] in <filename unknown>:0 
    and then my config look´s like this:
    Code:
    {
      "Pro": {
        "Oxide Group": "Pro",
        "Playtime": 25.0
      },
      "Regular": {
        "Oxide Group": "Regular",
        "Playtime": 10.0
      },
      "Settings": {
        "Ignore Admins": false
      },
      "stammspieler1": {
        "Oxide Group": "stammspieler1",
        "Playtime": 1.0
      },
      "stammspieler10": {
        "Oxide Group": "stammspieler10",
        "Playtime": 10.0
      },
      "stammspieler100": {
        "Oxide Group": "stammspieler100",
        "Playtime": 100.0
      },
      "stammspieler25": {
        "Oxide Group": "stammspieler25",
        "Playtime": 25.0
      },
      "stammspieler5": {
        "Oxide Group": "stammspieler5",
        "Playtime": 5.0
      },
      "stammspieler50": {
        "Oxide Group": "stammspieler50",
        "Playtime": 50.0
      }
    }
    ich have deleted the OxideGroup stammspieler1-100 Manuel and then reload the Plugin. It load´s without error. after a few seconds i get the error on top, and that the plugin changed my config...
    where i did the misstake ?
     
  17. The Regular and Pro are defaulted ranks, so I'd recommend trying to edit them or just changing them up a bit, or if that does not work, edit them from the plugin itself.
     
  18. both i cant. If i change the name of one default group i get an error.
    If i try "/ranks testrank1 1" the plugin show me the actuall ranks. But nothing other happens.
     
  19. You should only do /ranks , not /ranks "something else"
    [DOUBLEPOST=1473387804][/DOUBLEPOST]
    What error are you getting? Could be something wrong with the timer or the configs that you have, all you have to do is add the groups in playerrankings configs, then add them in betterchat and modify them.
     
  20. Is there anyway you can make it instead of Hours played, it looks for your kills? I want to setup a PVP tag system.

    I am also having an issue with the plugin, so when I change the config files, this is what I had:

    {
    "Veteran": {
    "Oxide Group": "veteran",
    "Playtime": 24.0
    },
    "Member": {
    "Oxide Group": "member",
    "Playtime": 5.0
    },
    "Settings": {
    "Ignore Admins": false
    }
    }

    However once I reload the plugin in the console using reload PlayerRankings

    It seems to mess up and change the config file to this:

    {
    "Member": {
    "Oxide Group": "member",
    "Playtime": 5.0
    },
    "Pro": {
    "Oxide Group": "Pro",
    "Playtime": 25.0
    },
    "Regular": {
    "Oxide Group": "Regular",
    "Playtime": 10.0
    },
    "Settings": {
    "Ignore Admins": false
    },
    "Veteran": {
    "Oxide Group": "veteran",
    "Playtime": 24.0
    }
    }

    How can I fix this?
     
    Last edited by a moderator: Sep 19, 2016