1. Thanks for the report. I've been trying to work on a re write in my free time. I will address version issues if I am able. If you want to send me the error/console report the plugin throws I can check it out.
     
  2. Getting spam like my console just did a few hits of meth. It's hyperspeed.
    Code:
    [Oxide] 5:40 PM [Error] Failed to call hook 'OnEntityDeath' on plugin 'RanksAndTitles'
    File: RanksAndTitles.js Line: 793 Column: 17 TypeError hitinfo is null:
      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
    [Oxide] 5:40 PM [Ip/code]
     
    Last edited by a moderator: Jun 13, 2015
  3. Hi! Would it be possible to remove the prefix [Player] somehow?

    NM, found it: UseBoth should be on false.
     
    Last edited by a moderator: Jun 13, 2015
  4. is it possible to give Titles through Console?
     
  5. Im having a similar problem, and I know you are working on it, but here's the problem anyway. Like others, players in game sometimes reflect the changes that were made and sometimes they don't. one second My own will say hedge knight, and then ill kill someone, and it will drop to small timer (small timer is no longer in the file). a new player will enter the server and it will prefix them with [sir] and rank them as peasant. a while later it will prefix them as [player] and rank them [Civilian]. other then that, the colors that are set keep changing. I love the idea behind this plugin, and I am sure you'll get it fixed. Thanks for the mod. Wish I knew how to do this stuff.

    update: now the ranks aren't appearing. it says they are there and i can see the promotion/demotion messages. /rt rank shows current rank, but chat line only shows
    [Admin][Wolf] Supramp... but no rank. should say
    [Admin][Wolf] Supramp [Knight]...


    Code:
    {
      "AdminHelp": [
        "<color=orange>/rt wipe playername</color> - Wipes the selected 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": "#F7BE81",
          "karmaModifier": 1.0,
          "permission": "player"
        },
        {
          "rank": 0.5,
          "title": "Militant",
          "karma": 1.0,
          "killsNeeded": 1.0,
          "Color": "#D0FA58",
          "karmaModifier": 1.0,
          "permission": "player"
        },
        {
          "rank": 1.0,
          "title": "Hedge Knight",
          "karma": 5.0,
          "killsNeeded": 3.0,
          "Color": "#00FF00",
          "karmaModifier": 2.0,
          "permission": "player"
        },
        {
          "rank": 2.0,
          "title": "Knight",
          "karma": 10.0,
          "killsNeeded": 8.0,
          "Color": "#21610B",
          "karmaModifier": 4.0,
          "permission": "player"
        },
        {
          "rank": 3.0,
          "title": "Commander",
          "karma": 20.0,
          "killsNeeded": 14.0,
          "Color": "#58D3F7",
          "karmaModifier": 8.0,
          "permission": "player"
        },
        {
          "rank": 4.0,
          "title": "General",
          "karma": 50.0,
          "killsNeeded": 21.0,
          "Color": "#013ADF",
          "karmaModifier": 16.0,
          "permission": "player"
        },
        {
          "rank": 5.0,
          "title": "Kings Guard",
          "karma": 100.0,
          "killsNeeded": 30.0,
          "Color": "#0B0B61",
          "karmaModifier": 32.0,
          "permission": "player"
        },
        {
          "rank": 1.0,
          "title": "Mugger",
          "karma": -5.0,
          "killsNeeded": 3.0,
          "Color": "#FF8000",
          "karmaModifier": 2.0,
          "permission": "player"
        },
        {
          "rank": 2.0,
          "title": "Mercinary",
          "karma": -10.0,
          "killsNeeded": 8.0,
          "Color": "#B45F04",
          "karmaModifier": 4.0,
          "permission": "player"
        },
        {
          "rank": 3.0,
          "title": "Slaver",
          "karma": -20.0,
          "killsNeeded": 14.0,
          "Color": "#F78181",
          "karmaModifier": 8.0,
          "permission": "player"
        },
        {
          "rank": 4.0,
          "title": "Bandit",
          "karma": -50.0,
          "killsNeeded": 21.0,
          "Color": "#FF0000",
          "karmaModifier": 16.0,
          "permission": "player"
        },
        {
          "rank": 5.0,
          "title": "Bandit Leader",
          "karma": -100.0,
          "killsNeeded": 30.0,
          "Color": "#8A0808",
          "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": "#505886",
          "permission": "owner",
          "default": false
        },
        {
          "title": "Owner",
          "Color": "#FE2E2E",
          "permission": "owner",
          "default": false
        }
      ],
      "Settings": {
        "karma": true,
        "colorSupport": true,
        "noAdmin": false,
        "useBoth": true,
        "dropRank": true,
        "antiSleeper": false,
        "clanKillLimit": 1,
        "useKDR": false,
        "deathMsgs": false,
        "broadcastPromotions": true,
        "chatNameColor": "#1bd228",
        "staffchatNameColor": "#1bd228",
        "chatColor": "#FFFFFF"
      },
      "Version": "1.6.4"
    }
     
    Last edited by a moderator: Jun 16, 2015
  6. It seems this plugin conflicts with the HumanNPC plugin. Don't know if it's just because this hasn't been updated in awhile or what.
     
  7. Unfortunately I'm not running that plugin. I tried removing the plugin, config file, and data file, then reinstalling it, but same problem. Wasn't sure what to do, so I just removed it for now. I'll reinstall it as soon as I know how to fix it. Thanks guys.
     
  8. KillParadise updated Ranks And Titles with a new update entry:

    Maintence & performance

     
  9. Hey kill, do you have to use the in game commands, or can I do it all through the config file?
     
  10. You can do it all via the config file if you would like to.
     
  11. Awesome, thank you. One last thing. Before, when I deleted the data, config file, and plugin, then reinstalled the plugin, everything was still in place, and the title wasn't showing up. Will that be fixed when I install this updated version?
     
  12. What do you mean exactly the title wasn't in place? I've been running 1.6.2 on my own server for the past week while making tweaks to it and I haven't ran into any issues so far if thats any kind of re assurance lol.
     
  13. Previously, after making a few changes to the titles, they stopped showing up in the chat. Karma, kills and KD was still being recorded. I could see three promotion messages, but they weren't being displayed. Example. C hy at should show...
    [ADMIN][wolf] Supramp [Commander] killed...
    But out of nowhere it started to look like.
    [ADMIN][WOLF]Supramp killed...
    I tried all the commands I could think of to restore it,but it wouldn't come back. Even after deleting, unstalling, reinstall, and restarting the server
     
  14. Oh so it took away the title? Theres a setting in config for that which is called dropRank if this is true the Rank is dropped from all chat related messages. However it IS possible that this had a bug and became a faulty situation on your server. It has not caused me any issues on v1.6.2 but you never know if it does happen again pm me some details and I can try to help you out personally.
     
  15. OK, I'm at work, but when I get home I will download the newest version, install it and see if it is still an issue. Ill check out that droprank setting as well. Thank you.
     
  16. Hopefully if it is still an issue we can work it out and figure out the bug that would cause it.
     
  17. I'm sure we will
     
  18. Unfortunately, RanksAndTitles is still incompatible with HumanNPC. Whether this is R&T fault or HumanNPC's fault, idk.

    Something about the two together make NPCs not die from wounded state and start endlessly respawning, with no way to kill them.

    here's some error codes. I'll post the same in the HumanNPC thread. I really want to use both plugins because they are quite awesome in their respective ways.
     

    Attached Files:

    Last edited by a moderator: Jun 21, 2015
  19. hey Kill, I just added RT back in, changed the config file, and reloaded the plugin, but nothing has changed in game (by the way, titles are working again, thank you) do i have to restart for it to take effect?

    Here is the error I get in console after reload
    [Oxide] 9:34 PM [Error] Failed to initialize plugin RanksAndTitles (Exception: Unexpected token)
     
    Last edited by a moderator: Jun 21, 2015
  20. make sure you reload the plugin after updating the config file, do oxide.reload RanksAndTitles