Raised This Month: $51 Target: $400
 12% 

Simple Chat Processor (Redux)


Post New Thread Reply   
 
Thread Tools Display Modes
StrikerMan780
AlliedModders Donor
Join Date: Jul 2009
Location: Canada
Old 05-09-2013 , 03:01   Re: Simple Chat Processor (Redux)
Reply With Quote #131

Quote:
Originally Posted by StrikerMan780 View Post
This probably doesn't help:

Code:
if(StrEqual(sGameType, "hl2mp", false))
{
    return GameType_FF;
}
Should be:

Code:
if(StrEqual(sGameType, "hl2mp", false))
{
    return GameType_HL2DM;
}
Also, there needs to be a translation file made.
Still going to fix this?
StrikerMan780 is offline
exactprecisions
Member
Join Date: Apr 2013
Old 05-10-2013 , 00:12   Re: Simple Chat Processor (Redux)
Reply With Quote #132

Quote:
Originally Posted by minimoney1 View Post
Assuming \x03 is still for team color in SayText2 (please correct me if I'm wrong and I'll fix it), then there is nothing to be fixed in this plugin. This plugin has nothing to do with colors; it simply provides a forward for other plugins to use. If, for example, a chat colors plugin (e.g. Custom Chat Colors) isn't working, then let the author of that specific plugin know because this isn't the plugin that's causing it.
I think it is the basechat plugin but I thought it was this. I'm the one who contacted you over steam.
exactprecisions is offline
SHAREN
Senior Member
Join Date: Dec 2011
Old 06-23-2013 , 13:24   Re: Simple Chat Processor (Redux)
Reply With Quote #133

I have a problem. Server jail. The sequence of messages from some of the players are different.
Example.
At T1 shows.
CT 2+2
T1 4
T2 4

At T2 shows.
CT 2+2
T2 4
T1 4

translate.google.ru
SHAREN is offline
Send a message via Skype™ to SHAREN
Nikkii
Member
Join Date: Feb 2012
Old 06-23-2013 , 15:07   Re: Simple Chat Processor (Redux)
Reply With Quote #134

It seems like SCP is calling the OnChatMessage forward more than once for some reason, it appears to be in everything on my server which uses SCP, including SCC, an ignore list plugin, and an allchat plugin. All of which use the OnChatMessage forward, and all of them, including SCP, when a debug message is adding are showing that it is being called anywhere from 1-25 times (It's usually around 4), and not just the forward itself, it's the UserMessage hook.

Edit: Looking through old threads, there's this:
https://forums.alliedmods.net/showpo...07&postcount=3

I'd still love if Simple Chat Processor prevented duplicate messages, at least if possible =\
__________________
Owner of ProbablyAServer, a server without game changing mods and donation benefits

RCON Helper | [TF2] LogUpload | CCC Donator Tags | PHP Steam API Wrapper

Last edited by Nikkii; 06-23-2013 at 18:52.
Nikkii is offline
bottiger
AlliedModders Donor
Join Date: Dec 2010
Old 06-23-2013 , 23:08   Re: Simple Chat Processor (Redux)
Reply With Quote #135

I can confirm OnChatMessage being called multiple times per chat message.

I think it could be fixed by having a boolean array, 1 entry for each player. When a message is processed, if the array is true for the player that is chatting, then the event is not fired. Otherwise it is set to true. When OnGameFrame happens, reset the bit for that player to false.

I haven't tested if these extraneous repeats fire within the same frame but I think they are.
__________________

Last edited by bottiger; 06-23-2013 at 23:09.
bottiger is offline
Nikkii
Member
Join Date: Feb 2012
Old 06-23-2013 , 23:18   Re: Simple Chat Processor (Redux)
Reply With Quote #136

Quote:
Originally Posted by bottiger View Post
I can confirm OnChatMessage being called multiple times per chat message.

I think it could be fixed by having a boolean array, 1 entry for each player. When a message is processed, if the array is true for the player that is chatting, then the event is not fired. Otherwise it is set to true. When OnGameFrame happens, reset the bit for that player to false.

I haven't tested if these extraneous repeats fire within the same frame but I think they are.
It's the way User Messages are done, read the post I linked above... Not sure if it can be prevented (Since the messages it's hooking multiple times do sometimes get ignored and they continue), I might look into it tomorrow using a command listener on say/say_team and only stopping multiple on Plugin_Changed, as it'll create a new message and that's the end of it >.>

Not sure exactly how the messages work, but considering it creates a new one if it changed it shouldn't be that bad.
__________________
Owner of ProbablyAServer, a server without game changing mods and donation benefits

RCON Helper | [TF2] LogUpload | CCC Donator Tags | PHP Steam API Wrapper
Nikkii is offline
SHAREN
Senior Member
Join Date: Dec 2011
Old 06-28-2013 , 08:33   Re: Simple Chat Processor (Redux)
Reply With Quote #137

On SourceTV demos do not see some messages from the chat, you can fix it somehow?
translate.google.ru
SHAREN is offline
Send a message via Skype™ to SHAREN
hqtornado
New Member
Join Date: Jun 2012
Old 07-08-2013 , 19:23   Re: Simple Chat Processor (Redux)
Reply With Quote #138

http://i1048.photobucket.com/albums/...4dbc1f6a4c.jpg
This is a photo of the error I'm getting. I have no idea what it means so if anyone knows, that'd be great. Sorry it's in photo-form, but I'm fairly new to alliedmods so I don't exactly know my way around yet. Anywho, and help would be greatly appreciated.
hqtornado is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 07-08-2013 , 19:38   Re: Simple Chat Processor (Redux)
Reply With Quote #139

Your translation file is malformed. Redownload.
__________________
Dr. McKay is offline
Field2sdsf
BANNED
Join Date: Jul 2013
Old 07-08-2013 , 20:03   Re: Simple Chat Processor (Redux)
Reply With Quote #140

The bug was posted in some what of detail in the old SCP thread towards the end if you didn't see it.

Last edited by Field2sdsf; 07-08-2013 at 20:03.
Field2sdsf is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:04.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode