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

iChat 2.3.3 - The most powerful chat manager


Post New Thread Reply   
 
Thread Tools Display Modes
dangerlord63
Senior Member
Join Date: Aug 2011
Old 08-15-2014 , 11:36   Re: iChat 2.3.0 - The most powerful chat manager
Reply With Quote #211

bug detected
if anybody use "say #Cstrike_GIGN_Label #Cstrike_GIGN_Label" command every player is quiting the game
u need to use this ;
replace_all(szSaid, charsmax(szSaid), "#", "*" );
dangerlord63 is offline
Kidev
Veteran Member
Join Date: Jun 2010
Location: France
Old 09-28-2014 , 20:16   Re: iChat 2.3.0 - The most powerful chat manager
Reply With Quote #212

Here are some bug fixes. Untested.

File removed, iChat bugs are now fixed
__________________

Last edited by Kidev; 11-07-2014 at 14:27.
Kidev is offline
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 09-28-2014 , 22:27   Re: iChat 2.3.0 - The most powerful chat manager
Reply With Quote #213

Yea, Valve style fix.

To fix this you just need to to pass %s2 as 2nd parameter and your message as 4nd parameter. Example code:
Spoiler

More about Valve fix.
__________________
The functional way is the right way

Last edited by GordonFreeman (RU); 09-28-2014 at 22:33.
GordonFreeman (RU) is offline
Kidev
Veteran Member
Join Date: Jun 2010
Location: France
Old 10-02-2014 , 16:22   Re: iChat 2.3.0 - The most powerful chat manager
Reply With Quote #214

With this, all players arn't kick, but it breaks the colors. Is it normal? Shall I use something different than "^x03" for the colors now?
__________________

Last edited by Kidev; 10-02-2014 at 16:37.
Kidev is offline
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 10-09-2014 , 13:38   Re: iChat 2.3.0 - The most powerful chat manager
Reply With Quote #215

Hm. Make a format string like that:
Code:
^^3%%s1^^1: ^^4%%s2^^1
%%s1 will replaced with senders name by client. You don't need get_user_name calls.

This way is more save and can handle very big messages without cut.
http://steamcommunity.com/sharedfile.../?id=302205173
__________________
The functional way is the right way
GordonFreeman (RU) is offline
Old 10-21-2014, 08:49
Kidev
This message has been deleted by Kidev.
Kidev
Veteran Member
Join Date: Jun 2010
Location: France
Old 11-07-2014 , 13:55   Re: iChat 2.3.0 - The most powerful chat manager
Reply With Quote #216

Ok thanks to GordonFreeman (RU), ALL the issues related to clients saying shit are now CORRECTED. A player can type "say %s%s%s%s%s%s" if he wants; what will be displayed is "%s%s%s%s%s%s". Thus iChat seems to be bug-free !

Have fun with it, and report any issue please. New features are coming once all my plugins are bug-free.

Updated to 2.3.3:
  • Fixed all "say" issues, and more
  • Changed MSG_ONE_UNRELIABLE to MSG_ONE
__________________

Last edited by Kidev; 11-07-2014 at 15:04.
Kidev is offline
Bradberry
Junior Member
Join Date: Oct 2013
Location: Moscow
Old 12-02-2014 , 11:00   Re: iChat 2.3.0 - The most powerful chat manager
Reply With Quote #217

Quote:
Originally Posted by -Kid- View Post
Ok thanks to GordonFreeman (RU), ALL the issues related to clients saying shit are now CORRECTED. A player can type "say %s%s%s%s%s%s" if he wants; what will be displayed is "%s%s%s%s%s%s". Thus iChat seems to be bug-free !

Have fun with it, and report any issue please. New features are coming once all my plugins are bug-free.

Updated to 2.3.3:
  • Fixed all "say" issues, and more
  • Changed MSG_ONE_UNRELIABLE to MSG_ONE
Hi dude, found one "bug" which annoys me.
Player presses alt + 0153 (0157 0152 e.t.c) in say messagemode and message displayed as empty.
It's possible to fix it? =/
__________________
Sorry for bad english
Bradberry is offline
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 12-02-2014 , 14:47   Re: iChat 2.3.3 - The most powerful chat manager
Reply With Quote #218

Try "say #Spec_Duck" and you will see in chat "Press DUCK for Spectator Menu", to fix add to said '^n'. (see https://github.com/ValveSoftware/hal...lls/client.cpp Host_Say function)
Example code:
Code:
    new nLen = strlen(szSaid);     if (nLen == charsmax(szSaid)) {         szSaid[charsmax(szSaid) - 1] = '^n';         //szSaid[charsmax(szSaid)] = '^0';     } else {         szSaid[nLen] = '^n';         //szSaid[nLen + 1] = '^0';     }

Also need replace unprintable chars ('^0' < ch < ' ' and ch == 0x7F (DEL)) with spaces, because player can use SOH, STX, ETX, EOT (^1, ^2, ^3, ^4) chars to manipulate with colors.
Example code:
Code:
    new nLen = strlen(szSaid);     for (new n = 0; n < nLen; n++) {         if ('^0' < szSaid[n] < ' ' || szSaid[n] == 0x7F) {             szSaid[n] = ' ';         }     }
__________________

Last edited by PRoSToTeM@; 12-02-2014 at 15:04.
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 12-04-2014 , 09:09   Re: iChat 2.3.3 - The most powerful chat manager
Reply With Quote #219

You can use PLUGIN_HANDLED_MAIN return value, instead of checking for "last plugin". (in say and say_team callbacks). PLUGIN_HANDLED block gamedll callback and next plugins callbacks, PLUGIN_HANDLED_MAIN do same, but don't block next plugins callbacks. (I think this is what you need)

And I think better replace all unreliable messages (MSG_ONE_UNRELIABLE, MSG_BROADCAST) to reliable (MSG_ONE, MSG_ALL).
__________________
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
Kidev
Veteran Member
Join Date: Jun 2010
Location: France
Old 12-04-2014 , 19:39   Re: iChat 2.3.3 - The most powerful chat manager
Reply With Quote #220

I used to use _MAIN but I think I remember there was a problem. I'll check all of your codes tomorrow! Thanks for your help!
__________________
Kidev 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 08:04.


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