there in not much ranks in new config file.
Do we write new ranks title as old config file ?
Ranks And Titles [Unmaintained]
Discussion in 'Plugin Support' started by KillParadise, Mar 3, 2015.
-
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 }
Code:{ "title": "Owner", "Color": "#505886", "permission": "owner" }
Last edited by a moderator: Apr 24, 2015 -
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" } ],
-
-
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"
-
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. -
"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 -
EDIT: Side note, are you using BountyBoard? If so are you on v1.0 or v1.0.1Last edited by a moderator: Apr 24, 2015 -
I keep getting a Player tag on the left hand said of my name that should not be there
-
-
i use chat handler and its cause me problem too -
-
KillParadise updated Ranks And Titles with a new update entry:
New commands & bug fixes
-
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
-
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.
-
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 -
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.
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:
-
KillParadise updated Ranks And Titles with a new update entry:
Config Updates & slight bug fixes
-
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
-