1. The person that can help me will get 10$ paypal c; (Kindness)

    Dear Reader,


    I really want help with 2 of my installed plugins;
    The first one is the plugin BetterChatName.
    The problem with the plugin BetterChatName is;
    Code:
    [Error] Failed to initialize plugin betterchatname
    File: betterchatname.lua Line: 42 Object reference not set to an instance of an object:
      at Oxide.Core.Libraries.Permission.GroupExists (System.String groupname) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Permission.GrantGroupPermission (System.String groupname, System.String perm, Oxide.Core.Plugins.Plugin owner) [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 
    I just don't know how to fix it .. I hope someone can help me out with it.

    The second plugin I have problems with is the plugin GodMode.
    I get the following error:
    Code:
    [Error] Failed to call hook 'God' on plugin 'Godmode' (NullReferenceException: Object reference not set to an instance of an object)
    2:36 AM [Debug]   at Oxide.Core.Libraries.Permission.GetUserData (System.String userid) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Permission.UserHasPermission (System.String userid, System.String perm) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Godmode.IsAllowed (.BasePlayer player, System.String perm) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Godmode.God (.BasePlayer player, System.String cmd, System.String[] args) [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 
    The person that can help me will get 10$ paypal c; (Kindness)

    Regards.
     
  2. Did you by chance did you delete oxide.groups?
    Can you also upload you oxide logs, thanks.
     
  3. Wulf

    Wulf Community Admin

    Don't rename plugins, use the original names without (1) and such. Ex. Godmode.cs and RanksAndTitles.js.
     
  4. That isn't the only problem, the problem is that the oxide.users and oxide.group files are invalid and can't be loaded. They need to be ran through a json validator such as : http://jsonformatter.curiousconcept.com/
     
  5. Wulf

    Wulf Community Admin

    The last log you gave showed plugins renamed that were not loading.
    [DOUBLEPOST=1432435957][/DOUBLEPOST]
    They may have gotten corrupt from users with symbols.
    [DOUBLEPOST=1432436049][/DOUBLEPOST]
    If editing group and user files manually, make sure to use the jsonlint.com validator and pay attention to the formatting. Using the console commands are recommended though.
     
  6. My username on steam is ILLuSi0nQ
    [DOUBLEPOST=1432436363][/DOUBLEPOST]Now I am getting a new error:
    Code:
    [Error] Failed to call hook 'OnPlayerChat' on plugin 'Better Chatname'
    File: betterchatname.lua Line: 70 Object reference not set to an instance of an object:
      at Oxide.Core.Libraries.Permission.GroupExists (System.String groupname) [0x00000] in <filename unknown>:0 
      at Oxide.Core.Libraries.Permission.GroupHasPermission (System.String groupname, System.String perm) [0x00000] in <filename unknown>:0 
      at Oxide.Core.Libraries.Permission+<GroupsHavePermission>c__AnonStorey0.<>m__0 (System.String group) [0x00000] in <filename unknown>:0 
      at System.Linq.Enumerable.Any[String] (IEnumerable`1 source, System.Func`2 predicate) [0x00000] in <filename unknown>:0 
      at Oxide.Core.Libraries.Permission.GroupsHavePermission (System.Collections.Generic.HashSet`1 groups, System.String perm) [0x00000] in <filename unknown>:0 
      at Oxide.Core.Libraries.Permission.UserHasPermission (System.String userid, System.String perm) [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 
    
     
  7. You group file is invalid it should be:

    Code:
    {
      "admin": {
        "Title": "admin",
        "Rank": 0,
        "Perms": ["canusegodmode"],
        "ParentGroup": null
      },
      "moderator": {
        "Title": "moderator",
        "Rank": 1,
        "Perms": [],
        "ParentGroup": null
      },
      "player": {
        "Title": "player",
        "Rank": 2,
        "Perms": [],
        "ParentGroup": null
      }
    }
     
  8. Okay thanks I will try that.
    [DOUBLEPOST=1432436841][/DOUBLEPOST]You are epic, this actually worked!
    I have the [Owner] prefix now!
    But the problem now is that I don't have the permissions to use the command: '/god'
     
  9. You need to give the owner group the canusegodmode permission, oxide.grant group owner canusegodmode
    or grant it to yourself. oxide.grant user yourname canusegodmode