KeyNotFoundException at OnBetterChatFixed

I have installed better chat, but I can't get a word filter to work with it. I have tried "better chat filter" and "unfilter" with no luck, but when I remove better chat, unfilter seems fine! what am I doing wrong?? Here is a list of the plugins installed:

01 "Better Chat" (5.1.0) by LaserHydra (0.02s) - BetterChat.cs

02 "Clan Tags" (0.8.0) by GreenArrow (0.01s) - ClanTags.cs

03 "Clan Team" (1.0.1) by deivismac (0.02s) - ClanTeam.cs

04 "Clans" (0.1.52) by k1lly0u (0.10s) - Clans.cs

05 "Death Notes" (6.2.0) by LaserHydra (4.13s) - DeathNotes.cs

06 "Furnace Splitter" (2.1.7) by Skipcast (10.45s) - FurnaceSplitter.cs

07 "Group Limits" (2.0.1) by Kappasaurrus (0.00s) - GroupLimits.cs

08 "InfoPanel" (0.9.9) by Ghosst / Nogrod (3.88s) - InfoPanel.cs

09 "Kits" (3.2.93) by Reneb (2.43s) - Kits.cs

10 "No Give Notices" (0.2.0) by Wulf/lukespragg (0.00s) - NoGiveNotices.cs

11 "PermissionsManager" (0.1.1) by Steenamaroo (0.10s) - PermissionsManager.cs

12 "PlayerAdministration" (1.5.0) by ThibmoRozier (0.04s) - PlayerAdministration.cs

13 "PrivateMessages" (1.0.31) by MisterPixie (0.00s) - PrivateMessages.cs

14 "ServerInfo" (0.5.3) by Fujikura/baton (0.11s) - ServerInfo.cs

15 "Sign Artist" (1.1.3) by Mughisi (0.02s) - SignArtist.cs

16 "Skins" (1.2.9) by MalkoR (11.57s) - Skins.cs

17 "Stack Size Controller" (2.0.0) by Canopy Sheep (0.03s) - StackSizeController.cs

18 "TimeOfDay" (2.3.4) by FuJiCuRa (0.00s) - TimeOfDay.cs

19 "UFilter" (5.0.5) by Wulf/lukespragg (0.01s) - UFilter.cs

The plugin is not currently compatible with Better Chat.
ok, thanks
In response to Wulf ():
The plugin is not currently compatible with Better Chat.
I assume it'll be updated at some point right? It was working ok for me before I applied today's patch.

(18:20:40) | Failed to call hook 'OnBetterChat' on plugin 'UFilter v5.0.4' (KeyNotFoundException: The given key was not present in the dictionary.)
  at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <1f0c1ef1ad524c38bbc5536809c46b48>:0 
  at Oxide.Plugins.UFilter.OnBetterChat (System.Collections.Generic.Dictionary`2[TKey,TValue] data) [0x0000c] in <a71865497250490fb63509ee4c185af5>:0 
  at Oxide.Plugins.UFilter.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x003ec] in <a71865497250490fb63509ee4c185af5>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0​

In response to Bumfuzzler ():
I assume it'll be updated at some point right? It was working ok for me before I applied today's pat...
That is from the Better Chat changes weeks ago, but yes.
In response to Wulf ():
That is from the Better Chat changes weeks ago, but yes.
k thx, my bad. I must have updated Better Chat just before the patch and didn't notice. Thanks!
The plugin doesn't seem to work anymore.
Is it possible to correct please?
Thank you. Thank you.

| Failed to call hook 'OnBetterChat' on plugin 'UFilter v5.0.5' (KeyNotFoundException: The given key was not present in the dictionary.)
  at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <a8ed250850854b439cedc18931a314fe>:0 
  at Oxide.Plugins.UFilter.OnBetterChat (System.Collections.Generic.Dictionary`2[TKey,TValue] data) [0x0000c] in <4e1ac19348ea411d994e7b7652fadf0f>:0 
  at Oxide.Plugins.UFilter.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x003ec] in <4e1ac19348ea411d994e7b7652fadf0f>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0​


Merged post

I'm not sure I understand.
What version of BetterChat do I need to install for UFilter to work?
Is it possible to update UFilter with the latest version of BetterChat?

Thank you. Thank you.
5b918761e9152.png XTREMRUST
The plugin doesn't seem to work anymore.
Is it possible to correct please?
Thank you. Thank you.

| Failed to call hook 'OnBetterChat' on plugin 'UFilter v5.0.5' (KeyNotFoundException: The given key was not present in the dictionary.)
  at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <a8ed250850854b439cedc18931a314fe>:0 
  at Oxide.Plugins.UFilter.OnBetterChat (System.Collections.Generic.Dictionary`2[TKey,TValue] data) [0x0000c] in <4e1ac19348ea411d994e7b7652fadf0f>:0 
  at Oxide.Plugins.UFilter.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x003ec] in <4e1ac19348ea411d994e7b7652fadf0f>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0​


Merged post

I'm not sure I understand.
What version of BetterChat do I need to install for UFilter to work?
Is it possible to update UFilter with the latest version of BetterChat?

Thank you. Thank you.
I'll try to get an update out shortly, sorry for the delay. It should just be a matter of renaming the key that Better Chat uses, which is either Text to  Message or Message to Text.
Cool thanks Wulf!
Have a good day
i get this error:

UFilter was compiled successfully in 2000ms
Loaded plugin UFilter v5.0.5 by Wulf/lukespragg
Failed to call hook 'OnBetterChat' on plugin 'UFilter v5.0.5' (KeyNotFoundException: The given key was not present in the dictionary.) at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in :0
at Oxide.Plugins.UFilter.OnBetterChat (System.Collections.Generic.Dictionary`2[TKey,TValue] data) [0x0000c] in :0
at Oxide.Plugins.UFilter.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x003ec] in :0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0
[Better Chat] [Owner] MA8R80: shit
Failed to call hook 'OnBetterChat' on plugin 'UFilter v5.0.5' (KeyNotFoundException: The given key was not present in the dictionary.) at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in :0
at Oxide.Plugins.UFilter.OnBetterChat (System.Collections.Generic.Dictionary`2[TKey,TValue] data) [0x0000c] in :0
at Oxide.Plugins.UFilter.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x003ec] in :0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0

Is anything i can change to make it work?
thank you keep great work.

Wulf, 

This is an excellent plugin which I've had working with Better Chat for months now. I believe it still suffers from the problem of the .json file not allowing the user to customise the list of filtered words, but I just got around that by editing the filtered words in the .cs file itself.

with the most recent updates to Rust & Better Chat, however, the plugin seems to be fully incompatible. Other plugins for chat filtering are suffering from the same errors.

Crucially though, even if those plugins update, they won't perform the same function as UFilter - the beauty of which is not simply in censoring racism, homophobia etc in chat, but also in allowing users to track problematic users on a long term basis due to its logging feature. 

I realise you have a lot of plugins to maintain, but I just wanted  to  state how invaluable I've found this one on several occasions, and I hope you might get the chance to update it at some point in the future.

Thanks.
I'm assuming you mean the same error that is posted in the other thread regarding Better Chat?
5c2d88ae4ea06.jpg Wulf
I'm assuming you mean the same error that is posted in the other thread regarding Better Chat?
I must have been using an older version of Better Chat, because I had no errors at all until I had to update Better Chat for the most recent monthly update. The error message starts with Failed to call hook 'OnBetterChat' for the UFilter plugin - giving a (KeyNotFoundException: The given key was not present in the dictionary.)

I assume this is the same error reportedly by users with Better Chat installed who have experienced it a few months ago.

Could I be so bold as to ask whether you have any plans to make the plugin compatible again ?    I have no issues editing the filtered words list directly etc, but obviously I've no idea how to bridge the gap between the two plugins, which is a great shame as UFilter is one of the best plugins I have used in terms of helping server administration & I'm sorry that I've been forced to update to a point where I can no longer use it at all.
It's from a newer Better Chat version where this change was made. I'll be updating the plugin soon once I am able.
Locked automatically