AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Simple Chat Colors (Redux) (https://forums.alliedmods.net/showthread.php?t=167814)

Antithasys 09-20-2011 13:29

Simple Chat Colors (Redux)
 
1 Attachment(s)
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!

Antithasys 09-20-2011 13:30

Re: Simple Chat Colors
 
Reserved. (Config file instructions coming soon!)

Dave830 09-20-2011 14:27

Re: Simple Chat Colors (Redux)
 
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.

Antithasys 09-20-2011 14:32

Re: Simple Chat Colors (Redux)
 
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.

Jstn7477 09-21-2011 17:34

Re: Simple Chat Colors (Redux)
 
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.

Snaggle 09-22-2011 05:12

Re: Simple Chat Colors (Redux)
 
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?

Antithasys 09-22-2011 13:25

Re: Simple Chat Colors (Redux)
 
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.

Snaggle 09-22-2011 17:58

Re: Simple Chat Colors (Redux)
 
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.

Antithasys 09-22-2011 18:02

Re: Simple Chat Colors (Redux)
 
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! :3

Jstn7477 09-22-2011 23:36

Re: Simple Chat Colors (Redux)
 
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. :3


All times are GMT -4. The time now is 19:33.

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