1. yes there is a settings line.

    i just add custom titles in it. thats all
     
  2. Can I see your config file real quick then please?
     
  3. Hello, I am having an issue where Ranks and Titles won't even load on the server. I am running oxide experimental 2.0, and all other plugins work except this one. I get the following error if I try to load the plugin with oxide.load RanksAndTitles:
    Code:
    [Oxide] 11:08 PM [Info] Loaded plugin RanksAndTitles v1.5.3 by Killparadise
    [Oxide] 11:08 PM [Info] WARNING: Config not at version 1.6, Running 1.6 update...
    [Oxide] 11:08 PM [Error] Failed to initialize plugin RanksAndTitles
    File: RanksAndTitles.js Line: 9 Column: 4 TypeError prefixTitles is undefined:
    at Jint.Native.Function.ScriptFunctionInstance.Call (JsValue thisArg, Jint.Native.JsValue[] arguments) [0x00000] in :0
    at Oxide.Ext.JavaScript.Plugins.JavaScriptPlugin.CallFunction (System.String name, System.Object[] args) [0x00000] in :0
    at Oxide.Ext.JavaScript.Plugins.JavaScriptPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in :0
    at Oxide.Core.Plugins.PluginManager.AddPlugin (Oxide.Core.Plugins.Plugin plugin) [0x00000] in :0
    at Oxide.Core.OxideMod.PluginLoaded (Oxide.Core.Plugins.Plugin plugin) [0x00000] in :0 
    Any help would be greatly appreciated, as I would like to utilize this plugin for my server. Please note I am being hosted through multiplay, and cannot directly access the .js addon file, only the .json config file.
     
    Last edited by a moderator: May 1, 2015
  4. Is this a fresh install? Or an update? if you're config is pre 1.6 you need to delete it and let the plugin build a new one (A lot was changed in the 1.5 update) however if this is a fresh install, we may have another issue on our hands.
     
  5. hm i have a little problem.. i dont know how to fix that
    as admin my name is always twice

    http://www.electrue.at/1.png

    i make a screenshot of this.. maybe im to stupid to find this in the config ^^
     
  6. Are you using another plugin that gives you the [ADMIN] tag in default chat? basically your name will appear twice because two plugins are sending messages, my plugin cancels out default chat, and if chat handler is present it doesn't send any kind of chat at all.
     
  7. hm this is notifier .. kk but thx 4 info
     
  8. Yeah Notifier might be re broadcasting chat with the prefix. That could be your issue. If you disable prefixes through notifier you should eliminate this issue. I run notifier along with my plugin on my own server and I have not run into issues.
     
  9. okay thank you .. i try it
     
  10. It is a fresh install, on a brand new server. I even tried uninstalling the addon that was installed via the control panel, and manually uploaded the .js file from this page, and it still doesn't work.

    The file I am currently using for the addon is attached to this post, and the json file is as follows:

    Code:
    {
      "authLevel": 2.0,
      "Settings": {
        "showPlayer": true,
        "hideAllAdmins": false,
        "karma": true,
        "colorSupport": true
      },
      "Titles": [
        {
          "authLvl": 0.0,
          "title": "Player",
          "Exclude": false,
          "Color": "#FFFFFF"
        },
        {
          "authLvl": 0.0,
          "title": "Donor",
          "Exclude": true,
          "Color": "#ffa500ff"
        },
        {
          "authLvl": 1.0,
          "title": "Mod",
          "Exclude": true,
          "Color": "#add8e6ff"
        },
        {
          "authLvl": 2.0,
          "title": "Admin",
          "Exclude": true,
          "Color": "#800000ff"
        },
        {
          "authLvl": 2.0,
          "title": "Owner",
          "Exclude": true,
          "Color": "#800080ff"
        }
      ],
      "Ranks": [
        {
          "rank": 0.0,
          "title": "New Guy",
          "karma": 0.0,
          "killsNeeded": 0.0,
          "Color": "#FFFFFF",
          "karmaModifier": 1.0
        },
        {
          "rank": 1.0,
          "title": "Murderer",
          "karma": -10.0,
          "killsNeeded": 10.0,
          "Color": "#ff0000ff",
          "karmaModifier": 5.0
        },
        {
          "rank": 1.0,
          "title": "Recruit",
          "karma": 10.0,
          "killsNeeded": "disabled",
          "Color": "#0000a0ff",
          "karmaModifier": 5.0
        },
        {
          "rank": 2.0,
          "title": "Serial Killer",
          "karma": -20.0,
          "killsNeeded": 20.0,
          "Color": "#ff0000ff",
          "karmaModifier": 15.0
        },
        {
          "rank": 2.0,
          "title": "Soldier",
          "karma": 20.0,
          "killsNeeded": "disabled",
          "Color": "#0000a0ff",
          "karmaModifier": 15.0
        },
        {
          "rank": 3.0,
          "title": "Bandit",
          "karma": -25.0,
          "killsNeeded": 25.0,
          "Color": "#ff0000ff",
          "karmaModifier": 30.0
        },
        {
          "rank": 3.0,
          "title": "General",
          "karma": 25.0,
          "killsNeeded": "disabled",
          "Color": "#0000a0ff",
          "karmaModifier": 30.0
        },
        {
          "rank": 4.0,
          "title": "Captain",
          "karma": -35.0,
          "killsNeeded": 35.0,
          "Color": "#ff0000ff",
          "karmaModifier": 40.0
        },
        {
          "rank": 4.0,
          "title": "Icon",
          "karma": 35.0,
          "killsNeeded": "disabled",
          "Color": "#0000a0ff",
          "karmaModifier": 40.0
        },
        {
          "rank": 5.0,
          "title": "Bandit Lord",
          "karma": -50.0,
          "killsNeeded": 50.0,
          "Color": "#ff0000ff",
          "karmaModifier": 50.0
        },
        {
          "rank": 5.0,
          "title": "Hero",
          "karma": 50.0,
          "killsNeeded": "disabled",
          "Color": "#0000a0ff",
          "karmaModifier": 50.0
        },
        {
          "rank": 6.0,
          "title": "Badass",
          "karma": -100.0,
          "killsNeeded": 100.0,
          "Color": "#ff0000ff",
          "karmaModifier": 100.0
        },
        {
          "rank": 6.0,
          "title": "Legend",
          "karma": 100.0,
          "killsNeeded": "disabled",
          "Color": "#0000a0ff",
          "karmaModifier": 100.0
        }
      ],
      "Prefix": {
        "ranks": "Ranks",
        "titles": "Titles",
        "ranksandtitles": "RanksAndTitles"
      },
      "Messages": {
        "Promoted": "You've been Promoted!",
        "NoPlyrs": "No Players Found...",
        "plyrWiped": "Player Wiped!",
        "dataRfrsh": "Data Refreshed!",
        "noPerms": "You do not have permission to use this command.",
        "setSuccs": "Player Title Set Successfully!",
        "needTitle": "You need to enter a title for the player!",
        "kills": "Your Kill count is: ",
        "deaths": "Your Death count is: ",
        "kdr": "Your KDR is currently: ",
        "karma": "Your current Karma is: ",
        "rank": "Your current Rank is: ",
        "title": "Your current Title is: ",
        "badSyntaxRank": "The command syntax was incorrect, please use /ranks set name title",
        "badSyntaxTitle": "The command syntax was incorrect, please use /titles set name title",
        "set": "How do you want the system to run? Ranks or Titles? For more info do /set info",
        "infoRanks": "Ranks for players this is an automated system based on kills & karma; this also supports a Bandit Vs Hero Karma System.",
        "infoTitles": "Titles is a system for a community or calm server, allowing owners to set and create custom user titles.",
        "convert": "The Server Admin has switched to Ranks, please use /rtrefresh to reload your player ranks and titles data.",
        "finished": "Great! The plugin will now build the correct data and configurations.",
        "errors": "Incorrect command structure, please try again.",
        "customFnd": "Using Custom Title... Skipping Change...",
        "loseKarma": "You've lost Karma!",
        "gainKarma": "You've gained Karma!",
        "reset": "Player Reset back to Ranks Tree!"
      },
      "Help": {
        "playerHelp": {
          "cmdRanks": "/ranks - Displays your current Rank",
          "cmdStats": "/ranks stats - Displays your current stats",
          "cmdTitles": "/titles - Displays your current Titles",
          "cmdRfrsh": "/rtrefresh - Regreshes your player "
        },
        "adminHelp": {
          "cmdSetR": "/ranks set playername titlename - Sets the given title name to the player",
          "cmdWipe": "/ranks wipe playername - Wipes the rank stats of the provided player",
          "cmdSetT": "/titles set playername titlename - Sets the given title name to the player",
          "cmdHide": "/titles hide - Allows you to hide your user title"
        }
      }
    }
     

    Attached Files:

  11. getting an error [Oxide] 8:43 AM [Warning] CallHook 'OnPlayerInit' on plugin 'RanksAndTitles' took: 677.7344ms
     
  12. I'm having the same issue as Dragonfire967.
     
  13. i have been using this plugin after new config file changed.

    i added titles with manually in config file but always get error.?

    Code:
    [5/4/2015 2:18:35 AM] [Oxide] 2:18 AM [Error] Failed to call hook 'OnEntityDeath' on plugin 'RanksAndTitles' (JsonReaderException: Unexpected character encountered while parsing value: }. Path 'main[2]', line 51, position 5.)
    [5/4/2015 2:20:32 AM] [Oxide] 2:20 AM [Error] Failed to initialize plugin RanksAndTitles (JsonReaderException: Unexpected character encountered while parsing value: }. Path 'main[2]', line 51, position 5.)
    [5/4/2015 2:21:46 AM] [Oxide] 2:21 AM [Error] Failed to initialize plugin RanksAndTitles (JsonReaderException: Unexpected character encountered while parsing value: }. Path 'main[2]', line 51, position 5.)
    [5/4/2015 2:22:08 AM] [Oxide] 2:22 AM [Error] Failed to initialize plugin RanksAndTitles (JsonReaderException: Unexpected character encountered while parsing value: }. Path 'main[2]', line 51, position 5.)
    [5/4/2015 2:23:25 AM] [Oxide] 2:23 AM [Error] RanksAndTitles: Failed to load config file (is the config file corrupt?) (Unexpected character encountered while parsing value: }. Path 'main[2]', line 51, position 5.)
    [5/4/2015 2:23:25 AM] [Oxide] 2:23 AM [Error] Failed to initialize plugin RanksAndTitles
    File: RanksAndTitles.js Line: 9 Column: 4 TypeError Messages is undefined:
      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.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.PluginManager.AddPlugin (Oxide.Core.Plugins.Plugin plugin) [0x00000] in <filename unknown>:0
      at Oxide.Core.OxideMod.PluginLoaded (Oxide.Core.Plugins.Plugin plugin) [0x00000] in <filename unknown>:0
    
     
  14. Your config is corrupt, you probably missed a quote or comma somewhere which causes the plugin to fail to read the file, use www.jsonlint.com or a similar tool to check your config for errors.
     
  15. Both of your configs are out of date. Delete your configs and let the plugin rebuild them.

    This is a Rust/Oxide thing I am getting the same thing on other plugins. It's a warning message not really an error.
     
  16. I've installed the plugin on my server, however even though I'm Admin my prefix is still [Player]?

    Is it possible to have it use the Admin prefix instead?
     
  17. You need to use /rt set on yourself to set your prefix. For example: /rt set hell admin would make your prefix Admin in game.
     
  18. Oh, then what is "prefixTitles": [ in the config for? I thought that these were automated depending on some sort of Auth Level.

    [Edit] Ah I see it's manual, nevermind.

    Hm, I don't suppose it would be possible for you to make this automated, or someone make you plugin compatible with NameColors?
     
    Last edited by a moderator: May 4, 2015
  19. My plugin is automated but it automates basic player prefixes. Special prefixes are set per player by the owner or admin, there's no reason to automate this because once a prefix is set it does not go away unless changed again.
    Name colors is not in a view of being compatible as my plugin can support it but the developer has not made attempts to make his plugin use mine. And essentially there's no need since they do the same thing.
     
  20. I mean make it automated so that Admins automatically get the Admin Prefix, Mods automatically get the Mod prefix.
    Yea I know the Ranks are automated. : )