Cool thank you Insane. Have a good night / day . I let you know when something happens.
[DOUBLEPOST=1442164739,1442102074][/DOUBLEPOST]Hey Insane,
got the 224 error again. When it happens then people do double post in the chat. I just reloaded the Plugin and then it was fixed.
They have been in the global chat channel.
Code:[9/13/2015 7:15:28 PM] [Oxide] 7:15 PM [Error] Failed to call hook 'OnPlayerChat' on plugin 'ChatChannels v1.0.8' File: ChatChannels.lua Line: 224 invalid use of '%' in replacement string: at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0 at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0 at NLua.Lua.CallFunction (System.Object function, System.Object[] args) [0x00000] in <filename unknown>:0 at NLua.LuaFunction.Call (System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Ext.Lua.Plugins.LuaPlugin.OnCallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
Chat Channels [Unmaintained]
Discussion in 'Plugin Support' started by insane8472, Aug 18, 2015.
-
Attached Files:
-
-
Do you know exactly what caused the error? Can you check your logs for commands run by someone around 7:15:28 PM, the time of the error.
-
Here the log:
Code:[9/13/2015 7:15:05 PM] [Oxide] 7:15 PM [Info] [Logger] Maxime ran chat command: /voteday [9/13/2015 7:15:05 PM] [Oxide] 7:15 PM [Info] [Chat] [Chat] Havoc || ShadoWofEaglE: stop double chat [9/13/2015 7:15:07 PM] [Oxide] 7:15 PM [Info] [Chat] [Chat] admin: It is not much [9/13/2015 7:15:12 PM] [Oxide] 7:15 PM [Info] ElCidCampeador has successfully joined the server [9/13/2015 7:15:15 PM] G4bi[14088988/76561200524438479] was killed by Suicide [9/13/2015 7:15:15 PM] [Oxide] 7:15 PM [Info] [Logger] G4bi ran chat command: /kill [9/13/2015 7:15:20 PM] [Oxide] 7:15 PM [Info] [Chat] [Chat] admin: mhhh strange [9/13/2015 7:15:21 PM] [Oxide] 7:15 PM [Info] [Logger] john ran chat command: /voteday [9/13/2015 7:15:22 PM] [Oxide] 7:15 PM [Info] [Chat] [Chat] Havoc || ShadoWofEaglE: stf [9/13/2015 7:15:24 PM] [Oxide] 7:15 PM [Info] [Chat] [Chat] BOPE || Neoevazion: or 50 lol [9/13/2015 7:15:29 PM] [Oxide] 7:15 PM [Info] [Chat] [Chat] Maxime: more people say yes for the day [9/13/2015 7:15:31 PM] [Oxide] 7:15 PM [Info] [Chat] [Chat] MTK || Burdock: 23 ppl want day [9/13/2015 7:15:33 PM] 179.187.252.130:58218/76561201460901472/NoobAqui kicked: You were kicked for being AFK for 720 seconds! [9/13/2015 7:15:33 PM] [Oxide] 7:15 PM [Info] AFK Kick > NoobAqui was kicked for being AFK! [9/13/2015 7:15:35 PM] Command not found [9/13/2015 7:15:37 PM] [Oxide] 7:15 PM [Info] [Chat] [Chat] MTK || Burdock: 19 not :S [9/13/2015 7:15:42 PM] [Oxide] 7:15 PM [Info] Unloaded plugin Chat Channels v1.0.8 by InSaNe8472 [9/13/2015 7:15:42 PM] [Oxide] 7:15 PM [Info] Loaded plugin Chat Channels v1.0.8 by InSaNe8472 [9/13/2015 7:15:43 PM] [Oxide] 7:15 PM [Info] [Logger] Hernan226 ran chat command: /home casa1 [9/13/2015 7:15:44 PM] 83.213.190.133:53674/76561200524438479/G4bi disconnecting: closing [9/13/2015 7:15:49 PM] [Oxide] 7:15 PM [Info] [Chat] [Chat] BDEEP || astrokiller: cmon voteday [9/13/2015 7:15:51 PM] [Oxide] 7:15 PM [Info] [Chat] [Chat] john: where is the animal [9/13/2015 7:15:52 PM] 190.189.211.26:56725/76561199905378284/Gian disconnecting: disconnect [9/13/2015 7:15:53 PM] [Oxide] 7:15 PM [Info] [Chat] [Chat] MTK || Burdock: [9/13/2015 7:15:59 PM] [Oxide] 7:15 PM [Info] [Chat] [Chat] Havoc || ShadoWofEaglE: :
-
hey Insane,
how are you? I got a little issue... the channels help is not shown correctly anymore. When i do /chan in chat i only see a bit of the text. -
I will take a look and get it fixed as soon as possible.
-
-
insane8472 updated Chat Channels with a new update entry:
1.0.9
-
@insane8472
How you can add support for BetterChat:
Code:string GetFormattedName(BasePlayer player) { string name = player.displayName; if(player.net.connection.authLevel > 0) name = $"<color=#ACFA58>{name}</color>"; else name = $"<color=#58ACFA>{name}</color>"; var betterChat = plugins.Find("BetterChat"); if(betterChat) { Dictionary<string, string> playerData = betterChat.Call("GetPlayerFormatting", player) as Dictionary<string, string>; playerData["FormattedOutput"] = playerData["Formatting"]; playerData["FormattedOutput"] = playerData["FormattedOutput"].Replace("{Rank}", ""); playerData["FormattedOutput"] = playerData["FormattedOutput"].Replace("{Title}", "<color=" + playerData["TitleColor"] + ">" + playerData["Title"] + "</color>"); playerData["FormattedOutput"] = playerData["FormattedOutput"].Replace("{TitleColor}", playerData["TitleColor"]); playerData["FormattedOutput"] = playerData["FormattedOutput"].Replace("{NameColor}", playerData["NameColor"]); playerData["FormattedOutput"] = playerData["FormattedOutput"].Replace("{TextColor}", playerData["TextColor"]); playerData["FormattedOutput"] = playerData["FormattedOutput"].Replace("{Name}", "<color=" + playerData["NameColor"] + ">" + player.displayName + "</color>"); playerData["FormattedOutput"] = playerData["FormattedOutput"].Replace("{ID}", ""); playerData["FormattedOutput"] = playerData["FormattedOutput"].Replace("{Message}", ""); playerData["FormattedOutput"] = playerData["FormattedOutput"].Replace(":", ""); name = playerData["FormattedOutput"]; } return name; }
Also that Replace part is wrong was truly to lazy to translate that lol. But that is the direction how you can do that.
Code:function GetFormattedName(player) { name = player.displayName; if player.net.connection.authLevel > 0 then name = "<color=#ACFA58>" .. name .. "</color>" else name = "<color=#58ACFA>" .. name .. "</color>" end betterChat = plugins:Find("BetterChat") if(betterChat) { playerData = betterChat:Call("GetPlayerFormatting", player) playerData["FormattedOutput"] = playerData["Formatting"]; playerData["FormattedOutput"] = playerData["FormattedOutput"].Replace("{Rank}", ""); playerData["FormattedOutput"] = playerData["FormattedOutput"].Replace("{Title}", "<color=" + playerData["TitleColor"] + ">" + playerData["Title"] + "</color>"); playerData["FormattedOutput"] = playerData["FormattedOutput"].Replace("{TitleColor}", playerData["TitleColor"]); playerData["FormattedOutput"] = playerData["FormattedOutput"].Replace("{NameColor}", playerData["NameColor"]); playerData["FormattedOutput"] = playerData["FormattedOutput"].Replace("{TextColor}", playerData["TextColor"]); playerData["FormattedOutput"] = playerData["FormattedOutput"].Replace("{Name}", "<color=" + playerData["NameColor"] + ">" + player.displayName + "</color>"); playerData["FormattedOutput"] = playerData["FormattedOutput"].Replace("{ID}", ""); playerData["FormattedOutput"] = playerData["FormattedOutput"].Replace("{Message}", ""); playerData["FormattedOutput"] = playerData["FormattedOutput"].Replace(":", ""); name = playerData["FormattedOutput"]; } return name; }
Last edited by a moderator: Sep 21, 2015 -
Anychance you could make it hook into TeamBattlefield for Rust Experimental | Oxide to use team one or team two chat channels?
-
Since I have never used that plugin, could you describe exactly what you would want to happen?
-
-
Hey Insane, how are you?
Got a little thing there:
When people are within the channels and talking, i see that in the Global chat, but not marked anymore that they are in the channel ... it looks like normal global chat messages.
Any idea? -
I will take a look at it.
[DOUBLEPOST=1443359300,1443300306][/DOUBLEPOST]It seems to be working for me, unless I didn't understand the problem. Next time your on, i'll connect to your server again. -
Maybe~ update? .... Permissions update +
i would rly like to have---- The Global that CAN be used by every one
But when u join a channel. you will Still see the Global .
+ thjat u can join more than 1 channel ?would be awesome .
-
somehow... it feeels like such No config is working... new tags not showup..
and even other configs like "enabled" "global disabled" dont work ...
wanted to use it in conbine with chathandler .... but noo... -
this plugin going to be updated? thanks
-
Would be nice to add a move command for admins so players dont know the password for chatrooms
-
What needs updating? Whats not working?
Could you explain a little more what the move command would do? -
-
Causes duplicate messages to be sent to global when speaking in it.