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

Simple Chat Processor (Redux)


Post New Thread Reply   
 
Thread Tools Display Modes
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 08-03-2013 , 19:04   Re: Simple Chat Processor (Redux)
Reply With Quote #151

Quote:
Originally Posted by Cerobug View Post
I know custom colors can be used in DoD:S/HL2DM as the gameME plugin allows people to use x07 and x08 to set custom colors using x07thenrgbhexrightafter. Not sure why everyone is so against adding support for DoD:S as the stuff to make custom color codes is already in the engine just need the plugin to hook into it. If gameME can add simple support to get any color working for their messages and not require any kind of dependancy it can't be that hard to make customs colors work for DoD:S.

These are the custom "messages" that can be changed using x07/x08 on gameME

Base Message
Global Chat
Player Action
Team Action
Player Team A
Player2 Team A
Player Team B
Player2 Team B
Team A
Team B
It's not the colors that won't work, it's the method by which this plugin intercepts chat.
__________________
Dr. McKay is offline
minimoney1
SourceMod Donor
Join Date: Dec 2010
Old 08-08-2013 , 18:04   Re: Simple Chat Processor (Redux)
Reply With Quote #152

Hello friends. I know I've been inactive for a while, and as a matter of fact, my inactivity will unfortunately continue as I have a lot of work to do for my classes, restricting the time I have to play games.
I initially had an idea of adding DOD:S support, but I never got around doing it as I don't have DOD:S installed on my computer nor do I have a server to test it on.
I've seen that McKay is in the process of making a version that supports DOD:S (he forked the BitBucket project), and with a quick glance, I can see that he's done what I initially wanted to do (but I had the doubt that the SayText usermsg doesn't work exactly the same way as SayText2). If he's tested it and it works, i'd be glad to update this thread with the new changes.

Sorry for the inactivity guys,
Mini
__________________
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
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 08-08-2013 , 21:00   Simple Chat Processor (Redux)
Reply With Quote #153

Yes, I have tested it in both TF2 and DoD:S with CCC v3.0.1, the version I sent you in a pull request should be good to go.
__________________
Dr. McKay is offline
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 08-08-2013 , 23:10   Re: Simple Chat Processor (Redux)
Reply With Quote #154

Hello,

It seems I run into the problem with using advertisements (0.6) plugin with simple-chatcolors plugin. I was curious as to how I would go about allowing advertisements to not be bottled up in the chatcolors plugin; so to say, would giving it a placement in the config allow for it to display the messages? As well it could very well just be that the plugin calls for all messages and processes it as it sees fit, in this case doesn't know what to do with the messages spewing from advertisements as it doesn't follow the same guidelines, or something of that nature. Maybe I missed a version or something along these posts that may fix my issue, any help would be appreciated as I do understand CS:GO support is not everyone's cup of tea at the moment.

Game:
CS:GO

Error log:
Code:
L 08/08/2013 - 19:47:57: SourceMod error session started
L 08/08/2013 - 19:47:57: Info (map "ar_shoots") (file "errors_20130808.log")
L 08/08/2013 - 19:47:58: [SM] Plugin encountered error 21: Native is not bound
L 08/08/2013 - 19:47:58: [SM] Native "BfWriteByte" reported: 
L 08/08/2013 - 19:47:58: [SM] Displaying call stack trace for plugin "simple-chatcolors.smx":
L 08/08/2013 - 19:47:58: [SM]   [0]  Line 1770, D:\Libraries\Documents\Dropbox\SourceMod Plugins\scripting\include\smlib/clients.inc::Client_PrintToChatRaw()
L 08/08/2013 - 19:47:58: [SM]   [1]  Line 1807, D:\Libraries\Documents\Dropbox\SourceMod Plugins\scripting\include\smlib/clients.inc::Client_PrintToChat()
L 08/08/2013 - 19:47:58: [SM]   [2]  Line 163, C:\Users\Alex\AppData\Local\Temp\Temp1_Simple Chat Colors.zip\addons\sourcemod\scripting\simple-chatcolors.sp::Command_PrintColors()
L 08/08/2013 - 19:48:07: [SM] Native "PrintToChat" reported: Could not send a usermessage
L 08/08/2013 - 19:48:07: [SM] Displaying call stack trace for plugin "advertisements.smx":
L 08/08/2013 - 19:48:07: [SM]   [0]  Line 267, advertisements.sp::Timer_DisplayAds()
L 08/08/2013 - 19:48:09: [SM] Native "StartMessage" reported: Unable to execute a new message, there is already one in progress
L 08/08/2013 - 19:48:09: [SM] Displaying call stack trace for plugin "simple-chatprocessor.smx":
L 08/08/2013 - 19:48:09: [SM]   [0]  Line 469, C:\Users\Administrator\Documents\Repositories\Simple Chat Processor\scripting\simple-chatprocessor.sp::OnGameFrame()
SIMPLE-CHATCOLORS.CFG
Code:
"admin_colors"
{
    "STEAM_1:0:1234567890"
    {
        "tag"                        "[Owner]"
        "tagcolor"                "{R}"
        "namecolor"            "{G}"
    }
    "Admins"
    {
        "flag"                        "z"
        "tag"                        "[A]"
        "tagcolor"                "{R}"
        "namecolor"            "{G}"
    }
    "VIP"
    {
        "flag"                        "a"
        "tag"                        "[VIP]"
        "tagcolor"                "{B}"
        "namecolor"            "{T}"
        "textcolor"            "{OG}"
    }
}
META VERSION
Code:
Metamod:Source version 1.10.0-dev
    Build ID: 849:43df9a463b6e-dev
    Loaded As: Valve Server Plugin
    Compiled on: Jul 11 2013
    Plugin interface version: 15:14
    SourceHook version: 5:5
    http://www.metamodsource.net/
SM VERSION
Code:
SourceMod Version Information:
    SourceMod Version: 1.5.0-dev+3877
    SourcePawn Engine: SourcePawn 1.1, jit-x86 (build 1.5.0-dev+3877)
    SourcePawn API: v1 = 4, v2 = 4
    Compiled on: Aug  5 2013 10:22:36
    Build ID: 3877:85ab61768bb0
    http://www.sourcemod.net/
SM PLUGINS LIST
Code:
[SM] Listing 19 plugins:
  01 "Fun Commands" (1.5.0-dev+3877) by AlliedModders LLC
  02 "Basic Comm Control" (1.5.0-dev+3877) by AlliedModders LLC
  03 "MapChooser" (1.5.0-dev+3877) by AlliedModders LLC
  04 "Admin File Reader" (1.5.0-dev+3877) by AlliedModders LLC
  05 "Donate" (1.2) by FreakyLike
  06 "Admin Help" (1.5.0-dev+3877) by AlliedModders LLC
  07 "Basic Chat" (1.5.0-dev+3877) by AlliedModders LLC
  08 "Basic Info Triggers" (1.5.0-dev+3877) by AlliedModders LLC
  09 "Player Commands" (1.5.0-dev+3877) by AlliedModders LLC
  10 "Client Preferences" (1.5.0-dev+3877) by AlliedModders LLC
  11 "Simple Chat Colors" (2.0.0) by Simple Plugins
  12 "Anti-Flood" (1.5.0-dev+3877) by AlliedModders LLC
  13 "Fun Votes" (1.5.0-dev+3877) by AlliedModders LLC
  14 "Map Nominations" (1.5.0-dev+3877) by AlliedModders LLC
  15 "Sound Commands" (1.5.0-dev+3877) by AlliedModders LLC
  16 "Simple Chat Processor (Redux)" (1.1.5) by Simple Plugins, Mini
  17 "Admin Menu" (1.5.0-dev+3877) by AlliedModders LLC
  18 "Basic Commands" (1.5.0-dev+3877) by AlliedModders LLC
  19 "Basic Votes" (1.5.0-dev+3877) by AlliedModders LLC
Maxximou5 is offline
mr3army
Member
Join Date: Aug 2013
Old 08-09-2013 , 14:42   Re: Simple Chat Processor (Redux)
Reply With Quote #155

L 08/09/2013 - 19:41:29: [SM] Plugin encountered error 21: Native is not bound
L 08/09/2013 - 19:41:29: [SM] Native "PbReadRepeatedString" reported:
L 08/09/2013 - 19:41:29: [SM] Displaying call stack trace for plugin "simple-chatprocessor.smx":
L 08/09/2013 - 19:41:29: [SM] [0] Line 302, simple-chatprocessor.sp::OnSayText2()

What does this mean
mr3army is offline
micazoid
Veteran Member
Join Date: Oct 2010
Location: Munich - Germany
Old 08-10-2013 , 05:46   Re: Simple Chat Processor (Redux)
Reply With Quote #156

Quote:
Originally Posted by Dr. McKay View Post
Yes, I have tested it in both TF2 and DoD:S with CCC v3.0.1, the version I sent you in a pull request should be good to go.
Hm tried to compile this by myself and failed =(

I wanted to test this on my Server (as I am waiting for ages now for DOD-Support =) ) and wanted to give further feedback
__________________
micazoid is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 08-10-2013 , 12:53   Simple Chat Processor (Redux)
Reply With Quote #157

Quote:
Originally Posted by micazoid View Post
Hm tried to compile this by myself and failed =(

I wanted to test this on my Server (as I am waiting for ages now for DOD-Support =) ) and wanted to give further feedback
Did you try it in the web compiler? That won't work.

I'll attach a compiled version shortly.
__________________
Dr. McKay is offline
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 08-10-2013 , 20:17   Re: Simple Chat Processor (Redux)
Reply With Quote #158

Quote:
Originally Posted by Maxximou5 View Post
Hello,

It seems I run into the problem with using advertisements (0.6) plugin with simple-chatcolors plugin. I was curious as to how I would go about allowing advertisements to not be bottled up in the chatcolors plugin; so to say, would giving it a placement in the config allow for it to display the messages? As well it could very well just be that the plugin calls for all messages and processes it as it sees fit, in this case doesn't know what to do with the messages spewing from advertisements as it doesn't follow the same guidelines, or something of that nature. Maybe I missed a version or something along these posts that may fix my issue, any help would be appreciated as I do understand CS:GO support is not everyone's cup of tea at the moment.
To my earlier question, is it possible to make it simply ignore any messages that come from the advertisement plugin?
Maxximou5 is offline
minimoney1
SourceMod Donor
Join Date: Dec 2010
Old 08-10-2013 , 20:22   Re: Simple Chat Processor (Redux)
Reply With Quote #159

Quote:
Originally Posted by Maxximou5 View Post
To my earlier question, is it possible to make it simply ignore any messages that come from the advertisement plugin?
Having seen the code of the Adverts plugin, unless you're doing something crazy, SCP shouldn't have anything to do with the Adverts plugins.
__________________
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
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 08-10-2013 , 20:34   Re: Simple Chat Processor (Redux)
Reply With Quote #160

Quote:
Originally Posted by minimoney1 View Post
Having seen the code of the Adverts plugin, unless you're doing something crazy, SCP shouldn't have anything to do with the Adverts plugins.
Advertisements uses colors.inc, which fires SayText2. It also doesn't pass USERMSG_BLOCKHOOKS.

====

I've attached the compiled version of my DoD:S-supported version of SCP for anyone who wants to try it out before it goes official.
Attached Files
File Type: smx simple-chatprocessor.smx (12.3 KB, 370 views)
File Type: sp Get Plugin or Get Source (simple-chatprocessor.sp - 296 views - 21.5 KB)
__________________
Dr. McKay 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 07:22.


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