(18:57:32) | Failed to initialize plugin 'BetterChat v5.0.5' (JsonReaderException: Unexpected character encountered while parsing value: }. Path '[2].Title.HiddenIfNotPrimary', line 57, position 5.)
How do I fix this?
Edit: This happened when I uploaded your version to fix clans which was posted on page 29.
BetterChat
Moved
Total Downloads: 26,147 - First Release: Apr 21, 2015 - Last Update: Jan 12, 2018
- 4.9898/5, 98 likes
-
adding permisons to my vip group dose not have any effect any reason for this
-
-
-
about working with clans. There is a little trouble when trying to setting up clan colors same as username colors.
it will be great to add ability to color ThirdPartyTitles as username, if they not contains color information.
for example:
BetterChat.cs
Code:foreach (var thirdPartyTitle in ThirdPartyTitles) { try { string title = thirdPartyTitle.Value(player); if (!string.IsNullOrEmpty(title)) { if (!title.StartsWith("[#")) { titles.Add($"[#{primary.Username.GetUniversalColor()}][+{primary.Username.Size}]{title}[/+][/#]"); } else titles.Add(title); }; } catch (Exception ex) { Instance.PrintError($"Error when trying to get third-party title from plugin '{thirdPartyTitle.Key}'{Environment.NewLine}{ex}"); } }
Code:// Returns colored clan tag for IPlayer private string GetColoredClanTag(IPlayer player) { var clan = findClanByUser(player.Id); if (clan != null && !string.IsNullOrEmpty(clan.tag)) { if (!string.IsNullOrEmpty(clanTagColor)) { return $"[#{(clanTagColor.StartsWith("#") ? clanTagColor.Substring(1) : clanTagColor)}][{clan.tag}][/#]"; } else { return $"[{clan.tag}]"; }; } return null; }
Last edited by a moderator: Mar 22, 2017 -
Gyazo - 05a52fe5ab36d562f43a17bf84be7ee3.jpg
i open your BetterChat Group Manager and it comes up with that ^ -
-
Code:
[ { "GroupName": "default", "Priority": 6, "Title": { "Text": "[Player]", "Color": "#9EC326", "Size": 15, "Hidden": true, "HiddenIfNotPrimary": false }, "Username": { "Color": "#55aaff", "Size": 15 }, "Message": { "Color": "white", "Size": 15 }, "Format": { "Chat": "{Title} {Username}: {Message}", "Console": "{Title} {Username}: {Message}" } }, { "GroupName": "vip", "Priority": 5, "Title": { "Text": "[VIP]", "Color": "Cyan", "Size": 15, "Hidden": false, "HiddenIfNotPrimary": false }, "Username": { "Color": "#55aaff", "Size": 15 }, "Message": { "Color": "white", "Size": 15 }, "Format": { "Chat": "{Title} {Username}: {Message}", "Console": "{Title} {Username}: {Message}" } }, { "GroupName": "VIP+", "Priority": 4, "Title": { "Text": "[VIP+]", "Color": "Cyan", "Size": 15, "Hidden": false, "HiddenIfNotPrimary": false }, "Username": { "Color": "#55aaff", "Size": 15 }, "Message": { "Color": "white", "Size": 15 }, "Format": { "Chat": "{Title} {Username}: {Message}", "Console": "{Title} {Username}: {Message}" } }, { "GroupName": "admin", "Priority": 0, "Title": { "Text": "[admin]", "Color": "#3bc512", "Size": 15, "Hidden": true, "HiddenIfNotPrimary": false }, "Username": { "Color": "#af5", "Size": 15 }, "Message": { "Color": "white", "Size": 15 }, "Format": { "Chat": "{Title} {Username}: {Message}", "Console": "{Title} {Username}: {Message}" } }, { "GroupName": "police", "Priority": 3, "Title": { "Text": "[Police]", "Color": "cyan", "Size": 15, "Hidden": false, "HiddenIfNotPrimary": false }, "Username": { "Color": "#55aaff", "Size": 15 }, "Message": { "Color": "white", "Size": 15 }, "Format": { "Chat": "{Title} {Username}: {Message}", "Console": "{Title} {Username}: {Message}" } }, { "GroupName": "chatmod", "Priority": 2, "Title": { "Text": "[Chat Mod]", "Color": "#3bc512", "Size": 15, "Hidden": false, "HiddenIfNotPrimary": false }, "Username": { "Color": "#55aaff", "Size": 15 }, "Message": { "Color": "white", "Size": 15 }, "Format": { "Chat": "{Title} {Username}: {Message}", "Console": "{Title} {Username}: {Message}" } }, { "GroupName": "aztir", "Priority": 1, "Title": { "Text": "[HNn-Hero]", "Color": "cyan", "Size": 15, "Hidden": false, "HiddenIfNotPrimary": false }, "Username": { "Color": "#00E39E", "Size": 15 }, "Message": { "Color": "white", "Size": 15 }, "Format": { "Chat": "{Title} {Username}: {Message}", "Console": "{Title} {Username}: {Message}" } } ]
-
Attached Files:
-
-
[DOUBLEPOST=1490260779][/DOUBLEPOST]
Did you use the latest version of the Group Manager installer listed on the overview? -
hello
Code:[Better Chat] Error when trying to get third-party title from plugin 'Oxide.Plugins.PlayerChallenges'System.NullReferenceException: Object reference not set to an instance of an objectat Oxide.Plugins.PlayerChallenges.GetPlayerTitles (IPlayer player) [0x00000] in <filename unknown>:0at Oxide.Plugins.BetterChat+ChatGroup.FormatMessage (IPlayer player, System.String message) [0x00000] in <filename unknown>:0
thank you -
-
LaserHydra updated Better Chat with a new update entry:
5.0.6
-
[/+][/#]
-
-
-
Sorry guys, noticed it a bit late, working on it!
-
Can you say Broke Plugin ?
[DOUBLEPOST=1490296445][/DOUBLEPOST]saw you are working on it after i posted. will remove the plugin until you figure it out. -
LaserHydra updated Better Chat with a new update entry:
5.0.7
[DOUBLEPOST=1490296602][/DOUBLEPOST] -
5.0.7 didn't fix the issue