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

[Any] Chat-Processor (Replacement for Simple Chat Processor)


Post New Thread Reply   
 
Thread Tools Display Modes
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 01-27-2017 , 09:49   Re: [Any] Chat-Processor (Replacement for Simple Chat Processor)
Reply With Quote #121

Update 2.0.2:
  • Fixed chat colors being printed in raw for TF2. (and possibly other
  • SayText2 supported games)
  • Increased the size of the name buffer and fixed the size of the total
  • buffer.
  • Fixing up and pushing previous pull requests.
  • Updated the 2 forward names and updated the include.
Drixevel is offline
MAGNAT2645
Senior Member
Join Date: Nov 2015
Location: AlliedMods.net
Old 01-28-2017 , 05:01   Re: [Any] Chat-Processor (Replacement for Simple Chat Processor)
Reply With Quote #122

Thanks, 2.0.2 really helped with bugs but there another bug (maybe only on my server) with duplication.
This bug maybe associated with Custom Chat Colors (i edited sourcecode to use CP_OnChatMessage instead of OnChatMessage)
Message duplication only visible to author, recipients see normal messages without duplication!

P.S. Game is TF2
__________________

Last edited by MAGNAT2645; 01-28-2017 at 10:20.
MAGNAT2645 is offline
MAGNAT2645
Senior Member
Join Date: Nov 2015
Location: AlliedMods.net
Old 01-30-2017 , 08:40   Re: [Any] Chat-Processor (Replacement for Simple Chat Processor)
Reply With Quote #123

And why \x03 is printed like green but not teamcolor (in name)?
__________________
MAGNAT2645 is offline
ichiballs
Member
Join Date: Oct 2016
Old 02-01-2017 , 12:05   Re: [Any] Chat-Processor (Replacement for Simple Chat Processor)
Reply With Quote #124

After I updated to 2.0.2, author can not see his own message while others can, any ideas?
ichiballs is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 02-06-2017 , 13:36   Re: [Any] Chat-Processor (Replacement for Simple Chat Processor)
Reply With Quote #125

Update 2.0.3:
  • Enabled SayText.
  • Fixed up plent of code, look at the commit differences.
  • Stopped double messages on both CSGO and TF2.
Drixevel is offline
MAGNAT2645
Senior Member
Join Date: Nov 2015
Location: AlliedMods.net
Old 02-06-2017 , 15:37   Re: [Any] Chat-Processor (Replacement for Simple Chat Processor)
Reply With Quote #126

thanks, duplication fixed but there problem with ColorVariables (with Custom Chat Colors):
Player's name colored with lightgreen but not teamcolor.

And it seems that message length sometimes does not fit
__________________

Last edited by MAGNAT2645; 02-06-2017 at 15:37.
MAGNAT2645 is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 02-06-2017 , 16:42   Re: [Any] Chat-Processor (Replacement for Simple Chat Processor)
Reply With Quote #127

Quote:
Originally Posted by MAGNAT2645 View Post
thanks, duplication fixed but there problem with ColorVariables (with Custom Chat Colors):
Player's name colored with lightgreen but not teamcolor.

And it seems that message length sometimes does not fit
Yes, this is a problem I had when I was working on a "Chat Processor: Tags" plugin that utilized ColorVariables. The fix for that issue was to get the client's team before the message or something. Let me check my code and see if I can find the fix snippet.

EDIT: Found it. The fix was to use "CSetNextAuthor", in a way similar to this:

PHP Code:
for (int i 0GetArraySize(hRecipients); i++)
{
    
int client GetArrayCell(hRecipientsi);

    if (
IsClientInGame(client))
    {
        
CSetNextAuthor(client);
        
CPrintToChat(client"%s: %s"strNewNamestrNewMessage);
    }

Of course, don't actually do what I did because there's a whole load of issues that arise with trying to use PrintToChat/CPrintToChat within OnChatMessage or OnChatMessagePost..I think. Most should be fixed now actually, such as the message duplication glitch....but basically just toss a CSetNextAuthor(whatever); before wherever you're sending your message. But you actually probably could do what I did now...starting to think I should take a look at that chat processor: tags plugin I abandoned and see if I can get it functional and working properly and have nice EngineVersion support...

Without using CSetNextAuthor, ColorVariables' "\x03" code reverts to it's normal standard color (light green). The only reason \x03 is even used as teamcolor is because Colors/MoreColors (I forget which) actually had a check within that would force the change of \x03's color from lightgreen to teamcolored if it detected the usage of "{teamcolor}" in a string. Without Colors/MoreColors, I believe \x03 would not have any teamcoloring functionality provided to it by the engine, and it would just be lightgreen.

Last edited by 404UserNotFound; 02-06-2017 at 16:56.
404UserNotFound is offline
MAGNAT2645
Senior Member
Join Date: Nov 2015
Location: AlliedMods.net
Old 02-07-2017 , 06:55   Re: [Any] Chat-Processor (Replacement for Simple Chat Processor)
Reply With Quote #128

Added this and now color (teamcolor) applying from nick to all message, how i can fix that?
__________________
MAGNAT2645 is offline
ichiballs
Member
Join Date: Oct 2016
Old 02-07-2017 , 10:01   Re: [Any] Chat-Processor (Replacement for Simple Chat Processor)
Reply With Quote #129

In the previous update(2.0.2) author could not see his own messages but other could, in update 2.0.3 nobody sees messages. Help?
ichiballs is offline
Hyp3rking
Junior Member
Join Date: Dec 2015
Old 02-09-2017 , 11:06   Re: [Any] Chat-Processor (Replacement for Simple Chat Processor)
Reply With Quote #130

i'm useing this plugin on my jailbreak server with This plugin MYjailbreak

when i install the plugin, and restart my server te plugin works fine,
but once i change the map, its all broken, i don't see my own chat anymore,

any selution for this?
__________________


Hyp3rking 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 03:11.


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