Raised This Month: $32 Target: $400
 8% 

[Any] Arbitrary Chat Colors


Post New Thread Reply   
 
Thread Tools Display Modes
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 06-04-2012 , 18:45   Re: [Any] Arbitrary Chat Colours
Reply With Quote #11

Quote:
Originally Posted by Fearts View Post
Is there a reason this keeps getting unloaded? Every few map changes it just stops working and when I check the plugins list it doesn't show as loaded.
There's nothing in the source that indicates any problems resulting in that. No OnMapStarts or OnMapEnds so maybe another plugin is causing this?
ReFlexPoison is offline
Fearts
ferts of daeth
Join Date: Oct 2008
Old 06-04-2012 , 19:16   Re: [Any] Arbitrary Chat Colours
Reply With Quote #12

Another plugin is causing just this plugin not to load? Idk I will run a few more tests.
__________________
Fearts is offline
NameUser
Senior Member
Join Date: Apr 2012
Location: Bay Area, California
Old 06-04-2012 , 19:18   Re: [Any] Arbitrary Chat Colours
Reply With Quote #13

This plugin is absolutely amazing!
__________________
NameUser is offline
Send a message via Skype™ to NameUser
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 06-06-2012 , 23:21   Re: [Any] Arbitrary Chat Colours
Reply With Quote #14

Quote:
Originally Posted by ReFlexPoison View Post
Ask this about a lot of the new color plugins, does the hex value show before the message in player's console?
It might (I haven't looked), but that's up to TF2.
__________________
DarthNinja is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 06-06-2012 , 23:57   Re: [Any] Arbitrary Chat Colours
Reply With Quote #15

Noticed that if a client uses a color while in spectate (CS:S), other clients see the hex value instead of a color in chat. Didn't poke around at code for a reason, you beat me to writing it so I was testing ;3.
__________________

Last edited by thetwistedpanda; 06-06-2012 at 23:57.
thetwistedpanda is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 06-07-2012 , 14:20   Re: [Any] Arbitrary Chat Colours
Reply With Quote #16

Any display issues should be directed at Valve. All the plugin does is insert the hex color code character at the point where the # sign is found. The game(client) does everything else.

It's my understanding that chat colors should work in any chat message though.
__________________

Last edited by DarthNinja; 06-07-2012 at 14:20.
DarthNinja is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 06-22-2012 , 13:27   Re: [Any] Arbitrary Chat Colours
Reply With Quote #17

Quote:
Originally Posted by ReFlexPoison View Post
There's nothing in the source that indicates any problems resulting in that. No OnMapStarts or OnMapEnds so maybe another plugin is causing this?
OH REALLY?

Weird how im the only one that has seen this... You never closed the handles of Regex.. thats why Fire's server was unloading it.
Code:
        ReplaceStringEx(message, MAXLENGTH_MESSAGE, matchedTag, Copy);
    }
    CloseHandle(hRegex);
    return Plugin_Changed;
}
at the chat forward and on the test command

EDIT: Look below.

Last edited by Mitchell; 06-22-2012 at 16:07.
Mitchell is offline
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 06-22-2012 , 15:41   Re: [Any] Arbitrary Chat Colours
Reply With Quote #18

Quote:
Originally Posted by Mitchell View Post
OH REALLY?

Weird how im the only one that has seen this... You never closed the handles of Regex.. thats why Fire's server was unloading it.
Code:
        ReplaceStringEx(message, MAXLENGTH_MESSAGE, matchedTag, Copy);
    }
    CloseHandle(hRegex);
    return Plugin_Changed;
}
at the chat forward and on the test command


note: i removed the test command from my version because it was a waste of code:
ReFlexPoison is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 06-22-2012 , 16:06   Re: [Any] Arbitrary Chat Colours
Reply With Quote #19

Actually i think i found a better fix, instead of making useless handles, just use one handle.
Attached Files
File Type: smx ColourChat.smx (2.7 KB, 104 views)
File Type: sp Get Plugin or Get Source (ColourChat.sp - 105 views - 1.2 KB)

Last edited by Mitchell; 06-22-2012 at 16:08.
Mitchell is offline
Sreaper
髪を用心
Join Date: Nov 2009
Old 06-22-2012 , 17:35   Re: [Any] Arbitrary Chat Colours
Reply With Quote #20

Nice plugin Darth. I haven't tried this out yet but it looks good, but is it also possible to set my in-game name to a specific hex color for the public chat using this plugin?
Sreaper 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 18:24.


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