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

Simple Chat Processor (Redux)


Post New Thread Reply   
 
Thread Tools Display Modes
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 11-09-2012 , 23:20   Re: Simple Chat Processor (Redux)
Reply With Quote #41

Quote:
Originally Posted by Dr. McKay View Post
Is there any way this plugin can be updated to fix the "arbitrary chat colors" exploit? If someone pastes the ASCII color control character directly into their chat message, they can use arbitrary chat colors. This doesn't happen without the plugin.
I believe this is having the same issues the other SCP had so this was developed to prevent it

https://forums.alliedmods.net/showthread.php?t=196696
Horsedick is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 11-10-2012 , 00:16   Re: Simple Chat Processor (Redux)
Reply With Quote #42

Quote:
Originally Posted by Horsedick View Post
I believe this is having the same issues the other SCP had so this was developed to prevent it

https://forums.alliedmods.net/showthread.php?t=196696
Didn't know about that plugin, thanks.
__________________
Dr. McKay is offline
minimoney1
SourceMod Donor
Join Date: Dec 2010
Old 11-10-2012 , 07:29   Re: Simple Chat Processor (Redux)
Reply With Quote #43

Quote:
Originally Posted by Dr. McKay View Post
Is there any way this plugin can be updated to fix the "arbitrary chat colors" exploit? If someone pastes the ASCII color control character directly into their chat message, they can use arbitrary chat colors. This doesn't happen without the plugin.
This bit of code is meant to fix that... in the new update that is.
PHP Code:
Color_StripFromChatText(cpTranslationNamecpTranslationNamesizeof(cpTranslationName));


...


/**
 * Credit Goes to SMlib
 */

stock Color_StripFromChatText(const String:input[], String:output[], size)
{
    new 
0;
    for (new 
i=0input[i] != '\0'i++) 
    {
    
        if (
== size
        {
            break;
        }

        new 
char input[i];
        
        if (
char 0x08
        {
            
output[x++] = char;
        }
    }
    
    
output[x] = '\0';

__________________
Need help? PM me or add me on Steam.
My Steam




Quote:
Originally Posted by Rp.KryptoNite View Post
For some reason his Plugin never worked for me ,
@credits were added
im not stealing any plugins dude its my THING
minimoney1 is offline
Calystos
Member
Join Date: Jan 2011
Location: Terra
Old 11-10-2012 , 15:15   Re: Simple Chat Processor (Redux)
Reply With Quote #44

How do you actually go abouts finding the required items to do translations/phrases for other games? EG: GoldenEye Source, Nuclear Dawn, Half-Life 2: DeathMatch, Garrys Mod, etc, etc, etc?

Or are they just copies of the generic template, like say you just copy TF2's one an simply rename TF_ to game_? An of course change the outputs accordingly.

As if I knew, I'd have helped out a bit an released a load. As I have several gaming servers and would love to run this on all of them but can't til I learn how to do the phrases, hehe. :-)

Last edited by Calystos; 11-10-2012 at 15:16.
Calystos is offline
Send a message via ICQ to Calystos Send a message via AIM to Calystos Send a message via MSN to Calystos Send a message via Yahoo to Calystos Send a message via Skype™ to Calystos
minimoney1
SourceMod Donor
Join Date: Dec 2010
Old 11-10-2012 , 16:22   Re: Simple Chat Processor (Redux)
Reply With Quote #45

Quote:
Originally Posted by Calystos View Post
How do you actually go abouts finding the required items to do translations/phrases for other games? EG: GoldenEye Source, Nuclear Dawn, Half-Life 2: DeathMatch, Garrys Mod, etc, etc, etc?

Or are they just copies of the generic template, like say you just copy TF2's one an simply rename TF_ to game_? An of course change the outputs accordingly.

As if I knew, I'd have helped out a bit an released a load. As I have several gaming servers and would love to run this on all of them but can't til I learn how to do the phrases, hehe. :-)
From what I know, there is a file located in the "resources" folder named something like cstrike_english.txt. Find a file like that and find the translation names for chat messages.
__________________
Need help? PM me or add me on Steam.
My Steam




Quote:
Originally Posted by Rp.KryptoNite View Post
For some reason his Plugin never worked for me ,
@credits were added
im not stealing any plugins dude its my THING
minimoney1 is offline
TheDOO
Member
Join Date: Nov 2007
Old 11-11-2012 , 05:52   Re: Simple Chat Processor (Redux)
Reply With Quote #46

Quote:
Originally Posted by minimoney1 View Post
I agree with you.

Having said that, beta 2 of the new version is out!
For this version, I will not provide a binary because I have not tested it myself, so right now, I want developers (and experienced server owners) to test this plugin on servers that are not-live, as I don't know what this plugin will do to your servers (in terms of crashing, handle leaks, etc). This version should definitely be better for developers and for me to support; I have also fixed (or attempted to fix) the issue that HorseDick was talking about with the colors appearing in the chat if you have a specific string entered. Developers, if you could take a look at the code and give me feedback, it'd be awesome.

Thank you.

Tried it out on a test server. Instantly errors out when I typed something.

Code:
L 11/11/2012 - 02:41:00: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 11/11/2012 - 02:41:00: [SM] Native "Call_PushArrayEx" reported: 
L 11/11/2012 - 02:41:00: [SM] Displaying call stack trace for plugin "simple-chatprocessor.smx":
L 11/11/2012 - 02:41:00: [SM]   [0]  Line 370, simple-chatprocessor.sp::OnSayText2()
TheDOO is offline
micazoid
Veteran Member
Join Date: Oct 2010
Location: Munich - Germany
Old 11-26-2012 , 06:09   Re: Simple Chat Processor (Redux)
Reply With Quote #47

Any News about compability with DODS? Would love to have this working for dods
__________________
micazoid is offline
Scipizoa
Senior Member
Join Date: Aug 2012
Location: ask me
Old 12-13-2012 , 18:14   Re: Simple Chat Processor (Redux)
Reply With Quote #48

any reason why this plugin cannot find the l4d2 translation files i already have in the translation folder?


Code:
 
L 12/13/2012 - 18:21:22: [SM] Fatal error encountered parsing translation file "scp.left4dead2.phrases.txt"
L 12/13/2012 - 18:21:22: [SM] Error (line 5, column 16): A property was declared outside of a section
L 12/13/2012 - 18:21:22: [simple-chatprocessor.smx] A property was declared outside of a section on line 5, col 16 of addons/sourcemod/translations/scp.left4dead2.phrases.txt
L 12/13/2012 - 18:21:22: [simple-chatprocessor.smx] [SCP] Could not parse the translation file
L 12/13/2012 - 18:21:22: [SM] Plugin encountered error 25: Call was aborted
L 12/13/2012 - 18:21:22: [SM] Native "SetFailState" reported: Could not parse the translation file
L 12/13/2012 - 18:21:22: [SM] Displaying call stack trace for plugin "simple-chatprocessor.smx":
L 12/13/2012 - 18:21:22: [SM]   [0]  Line 149, C:\compiler\simple-chatprocessor.sp::OnPluginStart()
__________________

ZaBaGaBe Gaming Community: http://steamcommunity.com/groups/ZBGB

Last edited by Scipizoa; 12-13-2012 at 18:25.
Scipizoa is offline
minimoney1
SourceMod Donor
Join Date: Dec 2010
Old 12-13-2012 , 18:24   Re: Simple Chat Processor (Redux)
Reply With Quote #49

Quote:
Originally Posted by Scipizoa View Post
any reason why this plugin cannot find the l4d2 translation files i already have in the translation folder?
Any (error) logs?
__________________
Need help? PM me or add me on Steam.
My Steam




Quote:
Originally Posted by Rp.KryptoNite View Post
For some reason his Plugin never worked for me ,
@credits were added
im not stealing any plugins dude its my THING
minimoney1 is offline
Scipizoa
Senior Member
Join Date: Aug 2012
Location: ask me
Old 12-13-2012 , 18:50   Re: Simple Chat Processor (Redux)
Reply With Quote #50

well never mind renaming the translation file fixed it but now.... all my chat text and stuff is invisable...

ok found this...

Code:
L 12/13/2012 - 18:30:56: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 12/13/2012 - 18:30:56: [SM] Native "Format" reported: Language phrase "L4D_Chat_AllSpec" not found
L 12/13/2012 - 18:30:56: [SM] Displaying call stack trace for plugin "simple-chatprocessor.smx":
L 12/13/2012 - 18:30:56: [SM]   [0]  Line 355, C:\compiler\simple-chatprocessor.sp::ResendMessage()
L 12/13/2012 - 18:30:59: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 12/13/2012 - 18:30:59: [SM] Native "Format" reported: Language phrase "L4D_Chat_AllSpec" not found
L 12/13/2012 - 18:30:59: [SM] Displaying call stack trace for plugin "simple-chatprocessor.smx":
L 12/13/2012 - 18:30:59: [SM]   [0]  Line 355, C:\compiler\simple-chatprocessor.sp::ResendMessage()
L 12/13/2012 - 18:31:01: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 12/13/2012 - 18:31:01: [SM] Native "Format" reported: Language phrase "L4D_Chat_AllSpec" not found
L 12/13/2012 - 18:31:01: [SM] Displaying call stack trace for plugin "simple-chatprocessor.smx":
L 12/13/2012 - 18:31:01: [SM]   [0]  Line 355, C:\compiler\simple-chatprocessor.sp::ResendMessage()
L 12/13/2012 - 18:31:05: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 12/13/2012 - 18:31:05: [SM] Native "Format" reported: Language phrase "L4D_Chat_All" not found
L 12/13/2012 - 18:31:05: [SM] Displaying call stack trace for plugin "simple-chatprocessor.smx":
L 12/13/2012 - 18:31:05: [SM]   [0]  Line 355, C:\compiler\simple-chatprocessor.sp::ResendMessage()
L 12/13/2012 - 18:49:07: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 12/13/2012 - 18:49:07: [SM] Native "Format" reported: Language phrase "L4D_Chat_All" not found
L 12/13/2012 - 18:49:07: [SM] Displaying call stack trace for plugin "simple-chatprocessor.smx":
L 12/13/2012 - 18:49:07: [SM]   [0]  Line 355, C:\compiler\simple-chatprocessor.sp::ResendMessage()
__________________

ZaBaGaBe Gaming Community: http://steamcommunity.com/groups/ZBGB

Last edited by Scipizoa; 12-13-2012 at 18:53.
Scipizoa 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 23:56.


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