Monthly Target: $400 Donations: $321
 80% 

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:
Approver:
Plugin Description:
Allows admins to set chat colors and tags for players or groups of players.
Servers with this Plugin:
530 
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, 26579 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
Dave830
Junior Member
Join Date: Sep 2011
Old 09-20-2011 , 14:27   Re: Simple Chat Colors (Redux)
Reply With Quote #3

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 #4

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 #5

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
SourceMod Donor
Join Date: Jul 2010
Location: England
Old 09-22-2011 , 05:12   Re: Simple Chat Colors (Redux)
Reply With Quote #6

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?
__________________
- Ach Factory
- Bot Killing
Snaggle is offline
Antithasys
Moderator
Join Date: Apr 2008
Old 09-22-2011 , 13:25   Re: Simple Chat Colors (Redux)
Reply With Quote #7

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
Snaggle
SourceMod Donor
Join Date: Jul 2010
Location: England
Old 09-22-2011 , 17:58   Re: Simple Chat Colors (Redux)
Reply With Quote #8

Okay thanks and congratulations on super mod

Another quick question, can I assign a tag to everyone with a certain flag that is not in a group? For example I have a plugin that gives certain players the flag "S", but they are not in any groups.
__________________
- Ach Factory
- Bot Killing
Snaggle is offline
Antithasys
Moderator
Join Date: Apr 2008
Old 09-22-2011 , 18:02   Re: Simple Chat Colors (Redux)
Reply With Quote #9

I think you are confusing "groups" with admin groups. There is no link between these. Think of these groups as completely separate, but could share the same name. So, just create a group in the config that has the correct, valid, flag. Name it whatever you want, and apply the colors and tags.

... and thanks!
__________________
[my plugins]

When you think about asking a question... consider what have you tried?
Antithasys is offline
Jstn7477
Senior Member
Join Date: Mar 2011
Location: Florida, USA
Old 09-22-2011 , 23:36   Re: Simple Chat Colors (Redux)
Reply With Quote #10

Hi Antithasys,

I just tried this on one of my lightly used servers for evaluation, and I seem to be having some color issues. Not all of the colors defined by SMLIB for TF2 seem to be working (specifically orange, haven't tested black), and some of the standard colors aren't right e.g. blue = green.

Screenshot of sm_printcolors: http://steamcommunity.com/id/jstn747...49433666653950

I used my admin_colors definitions from the original SCC, but changed all the color keyvalues with the ones defined by SMLIB colors. No SM error logs were found, and the normal logs show 2 lines from simple-chatprocessor.smx:

Code:
L 09/22/2011 - 22:57:44: [simple-chatprocessor.smx] [SCP] Recognized mod [Team Fortress 2].
L 09/22/2011 - 22:57:44: [simple-chatprocessor.smx] [SCP] Loading translation file [scp.tf.phrases].
Not sure what the issue may be, but I just figured I would send some info your way. Let me know if you need anything else log or configuration wise from my server.
__________________
Yo , I heard you like , so I put a in your so you can while you .
Jstn7477 is offline
Reply


Thread Tools
Display Modes

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 21:15.


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