1. there in not much ranks in new config file.

    Do we write new ranks title as old config file ?
     
  2. Can you inbox me your data file please so I can further investigate the data. Thanks!
    I have found one issue related to the Owner group. But it may also not be whats causing your undefined problem but here is the solution:
    Code:
    {
                "title": "Owner",
                "Color": "#505886",
                "permissions": "owner" <--- this guy is going to cause problems
            }
    
    Switch it to look like this:
    Code:
    {
                "title": "Owner",
                "Color": "#505886",
                "permission": "owner"
            }
    
    Yes you will have to copy and paste ranks to create new ones I did this because I wanted to cut down on plugin size and lines of code inside the plugin file itself.
     
    Last edited by a moderator: Apr 24, 2015
  3. i aded below code but in game titles and ranks doesnt show up ? any idea

    Code:
    "main": [
      {
          "rank": 0.0,
          "title": "Sivil",
          "karma": 0.0,
          "killsNeeded": 0.0,
          "Color": "#FFFFFF",
          "karmaModifier": 1.0,
          "permission": "player"
        },
        {
          "rank": 0.5,
          "title": "Saldırgan",
          "karma": -1.0,
          "killsNeeded": 1.0,
          "Color": "#ff0000ff",
          "karmaModifier": 1.0,
          "permission": "player"
        },
        {
          "rank": 0.5,
          "title": "Uysal",
          "karma": 1.0,
          "killsNeeded": 1.0,
          "Color": "#0000a0ff",
          "karmaModifier": 1.0,
          "permission": "player"
        },
        {
          "rank": 1.0,
          "title": "Katil",
          "karma": -10.0,
          "killsNeeded": 7.0,
          "Color": "#ff0000ff",
          "karmaModifier": 5.0,
          "permission": "player"
        },
        {
          "rank": 1.0,
          "title": "Kurtarıcı",
          "karma": 10.0,
          "killsNeeded": "disabled",
          "Color": "#0000a0ff",
          "karmaModifier": 5.0,
             "permission": "player"
        },
        {
          "rank": 2.0,
          "title": "Seri Katil",
          "karma": -20.0,
          "killsNeeded": 14.0,
          "Color": "#ff0000ff",
          "karmaModifier": 15.0,
             "permission": "player"
        },
        {
          "rank": 2.0,
          "title": "Asker",
          "karma": 20.0,
          "killsNeeded": "disabled",
          "Color": "#0000a0ff",
          "karmaModifier": 15.0,
          "permission": "player"
        },
        {
          "rank": 3.0,
          "title": "Bandit",
          "karma": -25.0,
          "killsNeeded": 20.0,
          "Color": "#ff0000ff",
          "karmaModifier": 30.0,
          "permission": "player"
        },
        {
          "rank": 3.0,
          "title": "General",
          "karma": 25.0,
          "killsNeeded": "disabled",
          "Color": "#0000a0ff",
          "karmaModifier": 30.0,
             "permission": "player"
        },
        {
          "rank": 4.0,
          "title": "Psikopat",
          "karma": -35.0,
          "killsNeeded": 27.0,
          "Color": "#ff0000ff",
          "karmaModifier": 40.0,
             "permission": "player"
        },
        {
          "rank": 4.0,
          "title": "İyilik Meleği",
          "karma": 35.0,
          "killsNeeded": "disabled",
          "Color": "#0000a0ff",
          "karmaModifier": 40.0,
             "permission": "player"
        },
        {
          "rank": 5.0,
          "title": "Infazcı",
          "karma": -50.0,
          "killsNeeded": 40.0,
          "Color": "#ff0000ff",
          "karmaModifier": 50.0,
             "permission": "player"
        },
        {
          "rank": 5.0,
          "title": "Kahraman",
          "karma": 50.0,
          "killsNeeded": "disabled",
          "Color": "#0000a0ff",
          "karmaModifier": 50.0,
             "permission": "player"
        },
        {
          "rank": 6.0,
          "title": "Cani",
          "karma": -100.0,
          "killsNeeded": 50.0,
          "Color": "#ff0000ff",
          "karmaModifier": 100.0,
             "permission": "player"
        },
        {
          "rank": 6.0,
          "title": "Efsane",
          "karma": 100.0,
          "killsNeeded": "disabled",
          "Color": "#0000a0ff",
          "karmaModifier": 100.0,
             "permission": "player"
        }
      ],
     
  4. did you run oxide.reload RanksAndTitles from your console?
     
  5. yes i did and i restart and start my server 2 times no luck
    [DOUBLEPOST=1429883025][/DOUBLEPOST]this is my player data :
    i delete player ids for privateness
    Code:
    {
      "PlayerData": {
        "76561198": {
          "PlayerID": "7656119815"
        },
        "76561198": {
          "PlayerID": "76561198170",
          "Kills": "NaN",
          "KDR": "NaN"
        },
        "7656119808": {
          "PlayerID": "765611988"
        },
        "76561198": {
          "PlayerID": "7656192",
          "Kills": "NaN",
          "KDR": "NaN"
        },
        "765611980": {
          "PlayerID": "76561101",
          "Deaths": "NaN",
          "KDR": "NaN"
     
  6. 1. Interesting, do any of your players have the karma required for those ranks?
    2. If a player does have them run /rt refresh to see if it will run them through the process again
    3. If you re open the config file does it still have your set changes?
    4. If theres still an issue please send me your config file so I can take a look at it.
     
  7. 1. i look into rank and titles data file and none of my players have karma poin. just the have "Kills": "NaN",
    "KDR": "NaN" or nothing
    2. i will try it later i am away from my game computer.
    3.what do you mean by set changes __
    4. i will use plugin with default settings then add my titles then let will you know the result

    thanks :)
     
  8. Hmm, it's odd that those would come back as NaN I will continue to look into the issue. See what could be getting into player data, keep me updated

    EDIT: Side note, are you using BountyBoard? If so are you on v1.0 or v1.0.1
     
    Last edited by a moderator: Apr 24, 2015
  9. I keep getting a Player tag on the left hand said of my name that should not be there
     
  10. then you need to disable prefixes..
     
  11. nope i am not using.

    i use chat handler and its cause me problem too
     
  12. It looks like your having the same mystery error that Grim is having. I am looking into this now. I'm at work currently so I cannot attempt to try and re create it. So I am doing my best.
     
  13. KillParadise updated Ranks And Titles with a new update entry:

    New commands & bug fixes

     
  14. i have set the default title of player to be "Survivor" but now players have nothing next to their name. any idea why this may be? i didnt mess with the config other than editing the word player to Survivor. i left the auth level to "player" and other titles are working as should be
     
  15. I think it's from a check on my setter function that I forgot about, I will have to take a look to fix this.
     
  16. Hy Guys,

    Sorry for my english.

    Pretty nice plug. It's verry nice on RP servers.

    Just one question: When i set a tittle on me with "/rt set playername title" i have to use "/rt useboth" to see it on a tchat.
    But when i set a title on a player if he don't type /rt useboth he can't activate the title when he's typing. The problem is that when a player try /rt useboth it says the player are not allowed to use this command. Any idea how i can make tittles work on players?
    Maybe by changing the authlevel for useboth on the plug?

    Also, on the command "/rt create prefixname color permission" What mean permission and what am i supposed to write?

    Thanks for reading and nice job for this plug.
     
    Last edited by a moderator: Apr 27, 2015
  17. for your first question useboth is a command that turns prefixes on or off for the server. This is a staff only command since it's server wide the reason your player cannot see his prefix is probably because you changed the name like @gerrmanman has and my check is skipping over that prefix. I am in the process of repairing this check to work properly.

    As for your question on what permission is this is the permission level for that rank or prefix the plugin has 4 groups is makes on start "player", "mod", "admin", and "owner" so the command would look like this: /rt create Test blue player - this would create a prefix of "Test" colored blue with the permission level of a player.
    [DOUBLEPOST=1430146302][/DOUBLEPOST]I have built a v1.5.3 of the plugin but it has yet to be tested currently since I am at work you can download this build from the attachment and test it out yourself if you like.
    What does v1.5.3 address:
    • Removes /rt update
    • makes dynamic config updates automatic
    • should fix prefix issue as mentioned above
    • once the config updates you need to go to the file and set a default prefix (the prefix new players automatically get) by setting "default": false to true
    • adds a dropRank to the config - upon request this option will drop rank titles from the players but stats, kills, etc. will still be recorded
    • removes the help message for /rt help
    • Please Note: All config changes are AUTOMATIC no need to delete and remake files.
    Config Version for this build: v1.6.1 if you are not on v1.6 of the config this update should also automatically update your config to 1.6 and then update it to 1.6.1 (hopefully)
    Once again this build is UNTESTED and won't be until later or if I get enough testers to okay it. Major changes being dropRank without this is may cause errors.
    Please if you run into a error, etc. with this test build PM me about it. Pm me with any questions or concerns. Thanks!
     

    Attached Files:

  18. KillParadise updated Ranks And Titles with a new update entry:

    Config Updates & slight bug fixes

     
  19. i updated latest one but got different errors here:

    Code:
    [4/28/2015 4:56:52 PM] [Oxide] 4:56 PM [Error] Failed to call hook 'grabPlayerData' on plugin 'RanksAndTitles'
    File: RanksAndTitles.js Line: 1080 Column: 4 ReferenceError TitlesData is not defined:
      at Jint.Native.Function.ScriptFunctionInstance.Call (JsValue thisArg, Jint.Native.JsValue[] arguments) [0x00000] in <filename unknown>:0
      at Oxide.Ext.JavaScript.Plugins.JavaScriptPlugin.CallFunction (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Ext.JavaScript.Plugins.JavaScriptPlugin.OnCallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
    [4/28/2015 4:56:52 PM] [Oxide] 4:56 PM [Error] Failed to call hook 'OnPlayerChat' on plugin 'Chat Handler'
    File: chathandler.lua Line: 1006 attempt to index field 'Settings' (a nil value):
      at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0
      at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0
      at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
    [4/28/2015 4:56:52 PM] [Oxide] 4:56 PM [Error] Failed to call hook 'grabPlayerData' on plugin 'RanksAndTitles'
    File: RanksAndTitles.js Line: 1080 Column: 4 ReferenceError TitlesData is not defined:
      at Jint.Native.Function.ScriptFunctionInstance.Call (JsValue thisArg, Jint.Native.JsValue[] arguments) [0x00000] in <filename unknown>:0
      at Oxide.Ext.JavaScript.Plugins.JavaScriptPlugin.CallFunction (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Ext.JavaScript.Plugins.JavaScriptPlugin.OnCallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
    [4/28/2015 4:56:52 PM] [Oxide] 4:56 PM [Error] Failed to call hook 'grabPlayerData' on plugin 'RanksAndTitles'
    File: RanksAndTitles.js Line: 1080 Column: 4 ReferenceError TitlesData is not defined:
      at Jint.Native.Function.ScriptFunctionInstance.Call (JsValue thisArg, Jint.Native.JsValue[] arguments) [0x00000] in <filename unknown>:0
      at Oxide.Ext.JavaScript.Plugins.JavaScriptPlugin.CallFunction (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Ext.JavaScript.Plugins.JavaScriptPlugin.OnCallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
    [4/28/2015 4:56:52 PM] [Oxide] 4:56 PM [Error] Failed to call hook 'OnPlayerChat' on plugin 'Chat Handler'
    File: chathandler.lua Line: 1006 attempt to index field 'Settings' (a nil value):
      at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0
      at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0
      at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
    
     
  20. Looks like chat handler cannot find the settings of my config file, is your config setup correctly? does it have "Settings" in it?