1. im getting this error
    [Oxide] 9:34 PM [Error] Failed to initialize plugin RanksAndTitles (Exception: Unexpected token)
     
  2. looks like something went wrong with your config file. Run it through this here: http://jsonlint.com/ and see if you get any errors.
     
  3. i ran it, and it said valid. any other ideas, heres my config file
    Code:
    {
      "AdminHelp": [
        "<color=orange>/rt wipe playername</color> - Wipes the sleceted players Kills, Deaths, KDR, and Karma",
        "<color=orange>/rt set playername title</color> - Sets a custom title to the selected player, this must be a title in config (NOT RANK)",
        "<color=orange>/rt remove playername</color> - removes a given players custom title, and sets them back into the ransk tree",
        "<color=orange>/rt useboth</color> - switch prefixes on and off",
        "<color=orange>/rt noadmin</color> - Removes admins (auth 2 or higher) from ranks system no kills, or ranks will be given.",
        "<color=orange>/rt kset playername karma</color> - set a selected players karma level",
        "<color=orange>/rt kcheck playername</color> - check the selected players karma",
        "<color=orange>/rt kadd playername karma</color> - adds the entered amount of karma to the selected player",
        "<color=orange>/rt krem playername karma</color> - removes the entered amount of karma from the selected player",
        "<color=orange>/rt create rankname rank karmaneeded killsneeded karmagiven color permissions</color> - create a new rank",
        "<color=orange>/rt create prefixname color permission</color> - create a new prefix",
        "<color=orange>/rt delete rankname</color> - delete a rank"
      ],
      "authLevel": 2.0,
      "Help": [
        "/rt - display your rank or title",
        "/rt stats - get your current stats if in ranks mode",
        "/rt refresh - refreshes your data file, recommended only used after system switch"
      ],
      "main": [
        {
          "rank": 0.0,
          "title": "Peasant",
          "karma": 0.0,
          "killsNeeded": 0.0,
          "Color": "#FFFFFF",
          "karmaModifier": 1.0,
          "permission": "player"
        },
        {
          "rank": 0.5,
          "title": "Slave",
          "karma": -1.0,
          "killsNeeded": 1.0,
          "Color": "#ff0000ff",
          "karmaModifier": 1.0,
          "permission": "player"
        },
        {
          "rank": 1.0,
          "title": "Mugger",
          "karma": -5.0,
          "killsNeeded": 3.0,
          "Color": "#ff0000ff",
          "karmaModifier": 2.0,
          "permission": "player"
        },
        {
          "rank": 2.0,
          "title": "Mercinary",
          "karma": -10.0,
          "killsNeeded": 8.0,
          "Color": "#ff0000ff",
          "karmaModifier": 4.0,
          "permission": "player"
        },
        {
          "rank": 3.0,
          "title": "Slaver",
          "karma": -20.0,
          "killsNeeded": 14.0,
          "Color": "#ff0000ff",
          "karmaModifier": 8.0,
          "permission": "player"
        },
        {
          "rank": 4.0,
          "title": "Bandit",
          "karma": -50.0,
          "killsNeeded": 21.0,
          "Color": "#ff0000ff",
          "karmaModifier": 16.0,
          "permission": "player"
        },
        {
          "rank": 5.0,
          "title": "Bandit Leader",
          "karma": -100.0,
          "killsNeeded": 30.0,
          "Color": "#ff0000ff",
          "karmaModifier": 32.0,
          "permission": "player"
        },
        {
          "rank": 0.5,
          "title": "Militant",
          "karma": 1.0,
          "killsNeeded": 1.0,
          "Color": "#ff0000ff",
          "karmaModifier": 1.0,
          "permission": "player"
        },
        {
          "rank": 1.0,
          "title": "Hedge Knight",
          "karma": 5.0,
          "killsNeeded": 3.0,
          "Color": "#ff0000ff",
          "karmaModifier": 2.0,
          "permission": "player"
        },
        {
          "rank": 2.0,
          "title": "Knight",
          "karma": 10.0,
          "killsNeeded": 8.0,
          "Color": "#ff0000ff",
          "karmaModifier": 4.0,
          "permission": "player"
        },
        {
          "rank": 3.0,
          "title": "Commander",
          "karma": 20.0,
          "killsNeeded": 14.0,
          "Color": "#ff0000ff",
          "karmaModifier": 8.0,
          "permission": "player"
        },
        {
          "rank": 4.0,
          "title": "General",
          "karma": 50.0,
          "killsNeeded": 21.0,
          "Color": "#ff0000ff",
          "karmaModifier": 16.0,
          "permission": "player"
        },
        {
          "rank": 5.0,
          "title": "Kings Guard",
          "karma": 100.0,
          "killsNeeded": 30.0,
          "Color": "#ff0000ff",
          "karmaModifier": 32.0,
          "permission": "player"
        }
      ],
      "Messages": {
        "Promoted": "You've been Promoted to: ",
        "NoPlyrs": "No Players Found...",
        "plyrWiped": "Player Wiped!",
        "dataRfrsh": "Data Refreshed!",
        "noPerms": "You do not have permission to use this command.",
        "setSuccs": "Player Prefix Set Successfully!",
        "needTitle": "You need to enter a title for the player!",
        "stats": [
          "<color=orange>Your Kill count is:</color> {kills}",
          "<color=orange>Your Death count is:</color> {deaths}",
          "<color=orange>Your KDR is currently:</color> {kdr}",
          "<color=orange>Your current Rank is:</color> {rank}",
          "<color=orange>Your current Karma is:</color> {karma}"
        ],
        "userprefix": "Your Prefix is: ",
        "badSyntaxRt": "The command syntax was incorrect, please use /rt set playername title",
        "errors": "Incorrect command structure, please try again.",
        "loseKarma": "<color=red>You've lost Karma!</color>",
        "gainKarma": "<color=green>You've gained Karma!</color>",
        "reset": "Player prefix reset!",
        "adminsOn": "Admins ranks turned on.",
        "adminsOff": "Admins rankings turned off.",
        "badSyntaxRemove": "Incorrect Syntax please use /rt remove playername",
        "help": "/rt help - Get RanksAndTitles Command Help",
        "badSyntaxKarma": "Invalid syntax please use /rt karma",
        "clearData": "Server Data Wiped...",
        "noData": "No Player Data Found... Attempting to Build.",
        "Demoted": "You've been demoted to: <color=lime>{rank}</color>",
        "setKarma": "Karma successfully set!",
        "setKarma0": "You can only use numbers to set a players karma.",
        "plyrKarma": " Karma level is: ",
        "checkFailed": "Check failed..",
        "addKarma": "Karma added to player successfully",
        "removeKarma": "Karma removed from player successfully",
        "rankCreated": "<color=green>New Rank {rank} Created!</color>",
        "rankDel": "<color=green>{rank} has been deleted!</color>",
        "crtPrefix": "<color=green>{prefix} has been created!</color>",
        "offline": "<color=red>Karma given by sleepers is currently off</color>",
        "bdSyntax": "Incorrect Syntax please use {syntax}",
        "noPrefix": "You need to enter a prefix!",
        "slain": "<color=lime>{slayer}</color> the <color={slayerColor}>{title}</color> has slain <color=lime>{slain}</color> the <color={slainColor}>{stitle}</color>!",
        "suicide": "{slain} Managed to kill themselves... Nice one.",
        "broadcastpromo": "<color=lime>{player} has promoted to:</color> {rank}",
        "broadcastdemote": "<color=lime>{player} has demoted to:</color> {rank}"
      },
      "Permissions": {
        "wipe": "canWipe",
        "set": "canSet",
        "remove": "canRemove",
        "noadmin": "canHide",
        "switch": "canSwitch",
        "kset": "canSetKarma",
        "kcheck": "canCheckKarma",
        "krem": "canRemKarma",
        "kadd": "canAddKarma",
        "clear": "canClear",
        "hide": "canHideSelf",
        "create": "canCreate",
        "delete": "canDelete",
        "staff": "isStaff"
      },
      "Prefix": "RanksAndTitles",
      "prefixTitles": [
        {
          "title": "Sir",
          "Color": "#FFFFFF",
          "permission": "player",
          "default": true
        },
        {
          "title": "Donor",
          "Color": "#ffa500ff",
          "permission": "donor",
          "default": false
        },
        {
          "title": "Admin",
          "Color": "#ffa500ff",
          "permission": "donor",
          "default": false
        },
        {
          "title": "Owner",
          "Color": "#505886",
          "permission": "owner",
          "default": false
        }
      ],
      "Settings": {
        "karma": true,
        "colorSupport": true,
        "noAdmin": false,
        "useBoth": true,
        "dropRank": false,
        "antiSleeper": false,
        "clanKillLimit": 10.0,
        "useKDR": false,
        "deathMsgs": false,
        "broadcastPromotions": true,
        "chatNameColor": "#1bd228",
        "staffchatNameColor": "#1bd228",
        "chatColor": "#FFFFFF"
      },
      "Version": "1.6.4"
    }
     
  4. Odd, your config seems to load up just fine on my server.
    Can you send me the full error report?
     
  5. heres the error log for the last 30 or so minutes, i fixed the path errors (dang commas) but the last three happen one line per reload attempt
    Code:
    [6/20/2015 9:18:09 PM] [Oxide] 9:18 PM [Error] RanksAndTitles: Failed to load config file (is the config file corrupt?) (After parsing a value an unexpected character was encountered: ". Path 'main[1].title', line 35, position 7.)
    [6/20/2015 9:31:14 PM] [Oxide] 9:31 PM [Error] RanksAndTitles: Failed to load config file (is the config file corrupt?) (After parsing a value an unexpected character was encountered: ". Path 'main[1].title', line 35, position 7.)
    [6/20/2015 9:31:14 PM] [Oxide] 9:31 PM [Error] Failed to initialize plugin RanksAndTitles (Exception: Unexpected token)
    [6/20/2015 9:34:24 PM] [Oxide] 9:34 PM [Error] Failed to initialize plugin RanksAndTitles (Exception: Unexpected token)
    [6/20/2015 9:40:36 PM] [Oxide] 9:40 PM [Error] Failed to initialize plugin RanksAndTitles (Exception: Unexpected token)
    
     
  6. Hmm, thats weird have you tried using the vanilla version without editing the config? Just a regular one does it cause an error?
     
  7. i dont think so. I will copy the config into json, delete the config and let the plugin generate a new one.
    [DOUBLEPOST=1434862848][/DOUBLEPOST]
    ok, so I did that, and reloaded, and it worked. I pasted my config file over the new one and it worked. the only thing is, Mine still says civilian, but others are working. will that clear up in time?

    Could it be because i am the "owner" and its set to "player"

    Update: I gave myself 1 karma, and it triggered, I think it might have just been hung up because of the Auth 2, but Ill see if it does it for the other admin when they log on
     
    Last edited by a moderator: Jun 21, 2015
  8. Another issue could be because you were already set in the data file. Usually doing a /rt refresh should fix this issue.
     
  9. that could be it, well alls well that ends well. Appreciate all the help, and the work you do, keep it up, i have several of your mods running, and im thinking about adding the bounty boards, once peopl get used to the rank structure. Again thank you.
     
  10. You know this plugin spams the console with tons of errors right?
     
  11. how do i get rid of [Player] From the chat i've deleted
    Code:
        {
          "title": "Player",
          "Color": "#FFFFFF",
          "permission": "player",
          "default": true
        },
    From the config but it still shows up even after a reload!?
     
  12. Try since 2 hours to make it work ...

    Then delete all old config (Plugins,Data,Config folders)

    Take a new one and just try to rename title ...

    In plugins config i just change this

    reload plugins, use /rt refresh and try to write to see title ...

    Code:
        {
          "rank": 0.5,
          "title": "Small Time",
          "karma": -1.0,
          "killsNeeded": 1.0,
          "Color": "#ff0000ff",
          "karmaModifier": 1.0,
          "permission": "player"
        },
    Small Timer ==> Small Time

    And with this i got
    [​IMG]

    ... any idea ?


    EDIT:

    OK i need to resart server to make that work ^^ xD


    EDIT 2:

    They are not anymore punishments system?


    EDIT 3:
    Seem to be bit bugy with death note :/ and sleeper player ....
     
    Last edited by a moderator: Jun 22, 2015
  13. There is no punishment system as it was too buggy to keep causing more issues than its worth, and it creates its own death notes and sleeper players dont count for kills unless you enable them.
    [DOUBLEPOST=1434978145][/DOUBLEPOST]
    Not sure if you want to remove [Player] or disable prefixes completely but it still appears because players still have the player data value so you will need to reset plugin data. Else if you want to disable the prefix just set useBoth to false.
    The most descriptive message ever, Considering it works fine on my server for the past week and a half.
     
  14. Thank for information about punishment system (maybe you need to remove it from main plugin page)

    Hum any way to use same system like death note ? Can make different custom message when player die or kill


    Anyway i get a error


    Code:
    "Settings": {
    ...
    ...
    ...
        "antiSleeper": false,
    ...
    ...
    ...
    
    If somebody try to hit/kill a sleeper that make lot of spam message

    In console:
    Code:
    [6/21/2015 8:55:19 PM] [SV_RPCMessage] playerattack - Exception has been thrown by the target of an invocation.
    Ingame Chat:
    [​IMG]

    See somebody have same error, don't find a fixe :s

    http://oxidemod.org/threads/sv_rpcm...n-thrown-by-the-target-of-an-invocation.7687/
     
  15. Hm I see where the issue could be I will have to take a look at the way the code handles it, I'm at work now so I can't run any tests on any fixes I would write at the moment.

    EDIT: you can also disable deathnotes from Ranks by turning them off via the config file, this will give full control to the deathnotes plugin.
     
    Last edited by a moderator: Jun 22, 2015

  16. :/ Already try :(

    Code:
       "deathMsgs": false,
    But always same way...

    This error with sleeper same to by prior then all other think :/
     
  17. It must be a check causing an exception then, is it sleepers will not die? And this appears every time someone hits a sleeper?
    I wish these would appear on my own server so I could see them lol.
     
  18. Same to make sleeper god mode because i already have more than 20 message for 1 sleeper (Probably player try to kill him again and again)

    And each Hit make a message in chat ...
     
  19. Thats happening to me all of the sudden. Sleepers seem to be in godmode. I have to use c4 to kill them. I just thought it might be bugged for those that were asleep, prior to making the changes.
     
  20. That the only point block me to use this :/