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

Simple Chat Colors (Redux)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Antithasys
Moderator
Join Date: Apr 2008
Plugin ID:
2573
Plugin Version:
2.0.0
Plugin Category:
Fun Stuff
Plugin Game:
Any
Plugin Dependencies:
Servers with this Plugin:
93 
Plugin Description:
Allows admins to set chat colors and tags for players or groups of players.
Old 09-20-2011 , 13:29   Simple Chat Colors (Redux)
Reply With Quote #1

Simple Chat Colors

Description:
Allows admins to set chat colors and tags for players or groups of players.
Console Variables:
None.
Commands:
sm_reloadscc - Reloads the config file
sm_printcolors - Prints chat colors to the screen (ingame only)
Installation:
Place the simple-chatcolors.smx in the /sourcemod/plugins dir.
Place the simple-chatcolors.cfg file in the /sourcemod/configs dir.
Changelog:

Quote:
2.0.0
Release
Notes:

This plugin uses the Simple Chat Processor to manipulate chat. This is a very different plugin from the previous versions. There are no override commands, or cvars. It now uses the SMLIB colors include file as well.

SVN (or Beta Links)

If you want the latest version on the SVN you can use the links below. The release version of the plugin is attached.

Source | Plugin | Config | No Phrases

Enjoy!
Attached Files
File Type: zip Simple Chat Colors.zip (21.7 KB, 44479 views)
__________________
[my plugins]

When you think about asking a question... consider what have you tried?

Last edited by Antithasys; 09-20-2011 at 14:07.
Antithasys is offline
Antithasys
Moderator
Join Date: Apr 2008
Old 09-20-2011 , 13:30   Re: Simple Chat Colors
Reply With Quote #2

Reserved. (Config file instructions coming soon!)
__________________
[my plugins]

When you think about asking a question... consider what have you tried?

Last edited by Antithasys; 09-20-2011 at 14:20.
Antithasys is offline
Raward
New Member
Join Date: Sep 2012
Old 09-20-2012 , 20:21   Re: Simple Chat Colors
Reply With Quote #3

Is there any instructions on how to add the tags and such because i cannot find out how to do it!
I am a little new to the server making and such, but i can handle most of it, im also new to this website aswell too. But what you meant about The instructions in the config coming soon, thats how to show you how to add the tags, and such like that, right?
Raward is offline
Dave830
Junior Member
Join Date: Sep 2011
Old 09-20-2011 , 14:27   Re: Simple Chat Colors (Redux)
Reply With Quote #4

I've upgraded my server's simple chat plugins to 2.0, and now the simple chat colors config file throws errors when loaded / reloaded:

Quote:
11:24:03 KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\simple-chatcolors.cfg

KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\simple-chatcolors.cfg
The config file is saved as utf-8. It loads correctly when saved as ANSI. Before we updated, it loaded fine as utf-8.

Edit: It doesn't log the error unfortunately. When I reload the simple chat colors plugin, no errors are thrown. But in-game, the tags defined in the cfg aren't displaying. When I use sm_reloadscc, the KeyValues Error is thrown in console only.

Check my pm for the cfg file.

Last edited by Dave830; 09-20-2011 at 15:00.
Dave830 is offline
Antithasys
Moderator
Join Date: Apr 2008
Old 09-20-2011 , 14:32   Re: Simple Chat Colors (Redux)
Reply With Quote #5

I need more of the error message. There should be a line number reference. I do not think there is anything that would prevent utf-8 from functioning properly. I did change the way the config file is loaded. I did this to mainly make the keys optional. So blank keys are not needed anymore. I am looking at the code now, but a edit of your post with more error info would be great.

Edit:

I think that error is related to the KvValues function not reconizing a closed group due to a utf-8 char being near it, or right before it. Please post config file. The file, not a copy and paste.

Thanks.
__________________
[my plugins]

When you think about asking a question... consider what have you tried?

Last edited by Antithasys; 09-20-2011 at 14:35.
Antithasys is offline
Jstn7477
Senior Member
Join Date: Mar 2011
Location: Florida, USA
Old 09-21-2011 , 17:34   Re: Simple Chat Colors (Redux)
Reply With Quote #6

Nice, I was looking forward to a newer version of SCC. I'll try this on one of my servers and make sure it's good to go before I replace SCCold. Glad to see some new colors.
__________________
Yo , I heard you like , so I put a in your so you can while you .
Jstn7477 is offline
Snaggle
AlliedModders Donor
Join Date: Jul 2010
Location: England
Old 09-22-2011 , 05:12   Re: Simple Chat Colors (Redux)
Reply With Quote #7

The bug with players that use { and } in their name still exists.

My Name: {test}Snaggle [UK]
How it looks in game: [Tag] ]{test}Snaggle [UK]


The ] in the name will appear for anyone who uses {} in their name. Anyway to fix that?
Snaggle is offline
Antithasys
Moderator
Join Date: Apr 2008
Old 09-22-2011 , 13:25   Re: Simple Chat Colors (Redux)
Reply With Quote #8

Since I do not parse the text myself, I just send to to SMLIB and the sort, the problem has to be there. I will ask berni if he see's a reason for it.
__________________
[my plugins]

When you think about asking a question... consider what have you tried?
Antithasys is offline
Antithasys
Moderator
Join Date: Apr 2008
Old 10-04-2011 , 17:41   Re: Simple Chat Colors (Redux)
Reply With Quote #9

Quote:
Originally Posted by Snaggle View Post
The bug with players that use { and } in their name still exists.

My Name: {test}Snaggle [UK]
How it looks in game: [Tag] ]{test}Snaggle [UK]


The ] in the name will appear for anyone who uses {} in their name. Anyway to fix that?
Since a fix for this didn't require a code change on my part, I went ahead and looked at the SMLIB code and think I found the issue. The SVN has the latest version compiled against this fix. Go ahead and test it out and let me know.
__________________
[my plugins]

When you think about asking a question... consider what have you tried?
Antithasys is offline
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 10-04-2011 , 21:46   Re: Simple Chat Colors (Redux)
Reply With Quote #10

I loaded it today and it works great... only issue I'm having is my NAME color that I set to black was black this morning after loading...then later today it went to yellow then a few mins ago it went to orange/brownish color

the cfg isn't changed still says BLA for namecolor

what could be causing this? Conflicting from the 3rd person plugin I'm using?
Horsedick 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 19:35.


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