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.
Ranks And Titles [Unmaintained]
Discussion in 'Plugin Support' started by KillParadise, Mar 3, 2015.
-
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 -
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 -
is it possible to give Titles through Console?
-
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 -
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.
-
-
KillParadise updated Ranks And Titles with a new update entry:
Maintence & performance
-
-
-
-
-
[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 -
-
-
-
-
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 -
-
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 -