BetterChat

Moved

Total Downloads: 26,200 - First Release: Apr 21, 2015 - Last Update: Jan 12, 2018

4.9898/5, 98 likes

  1. Hopefully you can get this done quickly - the OnUserChat hook seems to be a big issue.
     
  2. Does that happen very often?
     
  3. Yes, every 5-10 minutes. This was with 170 players online though.
     
  4. Alright.
     
  5. Adding on - when the player count dropped to around 80 I was still getting pretty big garbage collects from the OnUserChat hook for BetterChat, this wasn't a typical 1.3 second collect, it was 3 seconds.
     
  6. Im still having this error:


    Code:
    (14:34:20) | [Oxide] 14:34 [Error] Failed to call hook 'API_FindPlayerPrimaryGroup' on plugin 'BetterChat v4.2.11' (NullReferenceException: Object reference not set to an instance of an object)
    (14:34:20) | [Oxide] 14:34 [Debug]   at Oxide.Plugins.BetterChat+Group.GetGroups (System.String SteamID, Sorting sorting) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.BetterChat+Group.GetPrimaryGroup (System.String steamID) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.BetterChat.API_FindPlayerPrimaryGroup (System.String id) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.BetterChat.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
    Somebody know why this happens?
     
  7. paste the info or upload your groups file
     

  8. my groups are:
    DEFAULT
    MODERATOR
    MEMBER
    VIP1
    VIP2

    Code:
    [
      {
        "GroupName": "default",
        "Priority": 100,
        "Title": {
          "Hidden": false,
          "HideIfNotHighestPriority": true,
          "Size": 14,
          "Color": "#9EC326",
          "Text": "[Player]",
          "InheritSize": false,
          "InheritColor": false
        },
        "PlayerName": {
          "Size": 14,
          "Color": "#9EC326",
          "ClanTagFormat": "[{Clan}] {Name}"
        },
        "Message": {
          "Size": 13,
          "Color": "white"
        },
        "Formatting": {
          "Console": "{Title} {Name}: {Message}",
          "Chat": "<color=orange>[{Level}]</color> {Name}: {Message}"
        }
      },
        {
        "GroupName": "moderator",
        "Priority": 97,
        "Title": {
          "Hidden": false,
          "HideIfNotHighestPriority": false,
          "Size": 14,
          "Color": "#9EC326",
          "Text": "[MOD]",
          "InheritSize": false,
          "InheritColor": false
        },
        "PlayerName": {
          "Size": 14,
          "Color": "#9EC326",
          "ClanTagFormat": "[{Clan}] {Name}"
        },
        "Message": {
          "Size": 14,
          "Color": "white"
        },
        "Formatting": {
          "Console": "{Title} {Name}: {Message}",
          "Chat": "<color=#4169E1>M✪Đ</color> <color=orange>[{Level}]</color> {Name}: {Message}"
        }
      },
        {
        "GroupName": "member",
        "Priority": 99,
        "Title": {
          "Hidden": false,
          "HideIfNotHighestPriority": true,
          "Size": 14,
          "Color": "#9EC326",
          "Text": "[Player]",
          "InheritSize": false,
          "InheritColor": false
        },
        "PlayerName": {
          "Size": 14,
          "Color": "#9EC326",
          "ClanTagFormat": "[{Clan}] {Name}"
        },
        "Message": {
          "Size": 13,
          "Color": "white"
        },
        "Formatting": {
          "Console": "{Title} {Name}: {Message}",
          "Chat": "<color=orange>☑</color> <color=orange>[{Level}]</color> {Name}: {Message}"
        }
      },
        {
        "GroupName": "VIP1",
        "Priority": 98,
        "Title": {
          "Hidden": false,
          "HideIfNotHighestPriority": true,
          "Size": 14,
          "Color": "#9EC326",
          "Text": "[Player]",
          "InheritSize": false,
          "InheritColor": false
        },
        "PlayerName": {
          "Size": 14,
          "Color": "#9EC326",
          "ClanTagFormat": "[{Clan}] {Name}"
        },
        "Message": {
          "Size": 13,
          "Color": "white"
        },
        "Formatting": {
          "Console": "{Title} {Name}: {Message}",
          "Chat": "<color=orange>♚</color> <color=orange>[{Level}]</color> {Name}: {Message}"
        }
        },
        {
        "GroupName": "VIP2",
        "Priority": 97,
        "Title": {
          "Hidden": false,
          "HideIfNotHighestPriority": false,
          "Size": 14,
          "Color": "#9EC326",
          "Text": "[Player]",
          "InheritSize": false,
          "InheritColor": false
        },
        "PlayerName": {
          "Size": 14,
          "Color": "#9EC326",
          "ClanTagFormat": "[{Clan}] {Name}"
        },
        "Message": {
          "Size": 13,
          "Color": "white"
        },
        "Formatting": {
          "Console": "{Title} {Name}: {Message}",
          "Chat": "<color=orange>♛</color> <color=orange>[{Level}]</color> {Name}: {Message}"
        }
      }
    ]

    I need to set the admin group?
     
  9. There is no member group its called default now
     
  10. He has a default group.
    [DOUBLEPOST=1477939148][/DOUBLEPOST]
    When does that error appear?
     

  11. Laser I can not reproduce the Error, is very random,
    I will be trying, and I will quote you
     
  12. Thanks :)
     
  13. I know he does
     
  14. Your answer just seemed to me like you had overseen it.
     
  15. No I seen it
    [DOUBLEPOST=1477940074][/DOUBLEPOST]@StreetDog Add admin for you
     

    Attached Files:

  16. Ok I add a group with admin
    but not that because I dont want to be different of users, just I enter for test plugins and Run events.
     
  17. The error is propably actually caused by another plugin. Are you using Notifier?
     

  18. YES!!!! Maybe you have the Spot !!!

    Because the error, Only show together with Notifier error, there are currently the only 2 errors that Im having in console:


    Code:
    (14:34:20) | [Oxide] 14:34 [Error] Failed to call hook 'API_FindPlayerPrimaryGroup' on plugin 'BetterChat v4.2.11' (NullReferenceException: Object reference not set to an instance of an object)
    (14:34:20) | [Oxide] 14:34 [Debug]   at Oxide.Plugins.BetterChat+Group.GetGroups (System.String SteamID, Sorting sorting) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.BetterChat+Group.GetPrimaryGroup (System.String steamID) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.BetterChat.API_FindPlayerPrimaryGroup (System.String id) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.BetterChat.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0NOTIFIER ERROR:(14:34:21) | [Oxide] 14:34 [Error] Failed to call hook 'OnPlayerSleepEnded' on plugin 'Notifier v3.1.3' (NullReferenceException: Object reference not set to an instance of an object)
    (14:34:21) | [Oxide] 14:34 [Debug]   at Oxide.Plugins.Notifier.ReplaceNameFormats (System.String text, .BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Notifier.OnPlayerSleepEnded (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Notifier.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
    (14:34:21) | caio farias[1416284/76561198143443441] was killed by Pennywise[1463894/76561198089568656]
     
  19. Looks like Notifier passes invalid objects to BetterChat's API which causes that error.
     
  20. then I need to "be heavy" on Notifier Thread right?

    :p