1. It's possible but would require more checks. I'll have to check out the code base when I get home.
     
  2. I just stopped the server, deleted the config for the plugin, and restarted the server. Same error, won't load.

    --EDIT: Just realized the server was giving me a hidden error that it can't delete the required file, so waiting for support to delete it for me, will update this post when that happens.
     
    Last edited by a moderator: May 4, 2015
  3. And for the record deleting config files does not require a server restart just a plugin reload.
     
  4. Ah ok. I'm used to other servers I used to run that required server to be shutdown / restarted before any changes could be made.
     
  5. Thanks : )

    Also, what is Karma and the Punishment System?
    Can you rank up without killing people?
     
  6. Karma is what it's spelled as, karma it's gained and lost from killing, the punishment system is used to deal penalty karma against people who kill others in the same ranking tree as them.
    And
    No this is a pvp based rank system. I think huntrpg is more of a pve based system though.
     
  7. Ah thanks : )
     
  8. Hello,
    Can someone help me here pls. I added this plugin to my server but for some reason it wont work at all, and if i try to reload it using oxide.reload RanksAndTitles in console, i get this error message :
    Code:
    [Oxide] 11:15 AM [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 <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 
    I havent edited anything in config file...
     
  9. I think my config setup is causing issues. when you open your config file what does it look like?
     
  10. thx for answering me, here it is, as i said nothing changed :

    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"
        }
      }
    }
     
  11. As I expected, this is an old config version. Is this a brand new install? Or are you updating from a previous version?
     
  12. No updates, installed it a few days ago and it didnt work from start.Restarted server but nothing helps...how to update or make it work?
    this is a list of plugins i am using on server atm :
    Code:
    AIRDROP SETTINGS (1.0.0)
    ANTI WEAPON SPEED HACK (0.5)
    ARENA - CORE (1.0.0)
    ARENA - DEATHMATCH (1.0.3)
    AUTO DOOR CLOSER (1.3.2)
    CHEATPUNCH
    CRAFTING CONTROLLER (2.2.2)
    DAY & NIGHT SYSTEM (1.0.3)
    DEATH NOTES (2.4.8)
    GIVE (2.1.2)
    GODMODE (1.4.3)
    HELPTEXT (1.4.0)
    INCREASED GATHER RATE (1.1.2)
    INVENTORY GUARDIAN (0.1.5)
    KITS (2.0.10)
    MODIFY TIME (1.0.0)
    NOTIFIER FOR EXPERIMENTAL (2.7.4)
    PVP SWITCH (1.1.1)
    R-REMOVER TOOL (2.2.12)
    RANKS AND TITLES (1.5.3)
    RUST:IO (2.2.7)RUST:IO BETTERLOOT (1.8.5)
    RUST:IO CLANS (1.5.0)
    SERVER TAGS (0.1.0)
    SIMPLE COMPASS (1.0.0)
    SPAWNS DATABASE (1.1.0)
    STACK SIZES (1.1.3)
    TELEPORTATION SYSTEM (1.4.15)
    UPDATER (0.2.10)
    ZONES MANAGER (2.0.19)
    Server is rented on Multiplay if that would help something.
     
  13. It's not a plugin issue, it's a config issue. Try deleting the current config file and then reloading the plugin to see if it creates a proper config file with the new data like it should.
     
  14. I think I may have found some info that may help I too use ClanFOrge and it appears to be having a problem during the update portion of the script. I get this:

    11:35 AM [Info] Loaded plugin RanksAndTitles v1.5.3 by Killparadise
    11:35 AM [Info] WARNING: Config not at version 1.6, Running 1.6 update...
    11:35 AM [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 <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

    I looked at the code myself and it seems to be a problem with the way you have it attempting to update.

    Suggestions ?
    [DOUBLEPOST=1430854565][/DOUBLEPOST]I also removed the CFG and had the plugin rebuild it fresh, still this plugin refuses to work
     
  15. It's because the update function is looking for certain values to place new values into them, without these values this causes errors. Your going to need to delete and reload the plugin so it can create a fresh config with correct data. That should fix your issue.
     
  16. Already did this, the config is exactly the same as before and still the same issue. Also yes the file was not emptied it was completely deleted and plugin reinitialized and still this same bug
     
  17. Okay, that's good to know, I have been trying to get that answer from everyone that's run into this issue. That means its trying to update before loading the proper config file.
    A temporary fix until I can get home is to go to the plugin and put
    Code:
    this.LoadDefaultConfig(); 
    into the init function at the top so:
    Code:
    Init: function() {
            global = importNamespace("");
            this.LoadDefaultConfig(); <--- add this in to the init
            this.getData();
            this.registerPermissions();
            command.AddChatCommand("rt", this.Plugin, "switchCmd");
        },
    
    This will build the proper config file and then allowing the updater to run correctly. When I get home I will be able to repair this function. Thank you for your report!
     
  18. No problem, glad I could help
     
  19. Well, I just updated the .js file with the new code, and when I went to upload the new file to my multiplay server (which requires verification by multiplay staff, and they have to install it), they said they cannot install / update the mod with this fix until the developer (you) releases an official update / fix. So I'm dead in the water for now.
     
  20. KillParadise updated Ranks And Titles with a new update entry:

    Config & Permissions Bug Fixes