AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] Ignore list (https://forums.alliedmods.net/showthread.php?t=198385)

FaTony 10-15-2012 03:57

[ANY] Ignore list
 
2 Attachment(s)
Ignore list

This plugin provides a way to ignore other client's chat or voice or both. Requested here. Untested.

Requirements:
ConVars:
  • ftz_ignorelist_version: The version of ignore list.

Client commands:
  • ftz_ignore <#userid|name>: Toggle both chat and voice ignore status.
  • sm_ignore <#userid|name>: Same as above for convenient chat triggers.
  • ftz_ignore_chat <#userid|name>: Toggle the chat ignore status.
  • ftz_ignore_voice <#userid|name>: Toggle the voice ignore status.

Compile requirements:
Known issues:
  • None.

ToDo:
  • Translations and prettier code.

Changelog:
  • 0.95 (23.10.2012): Bug fix.

C0nw0nk 10-15-2012 08:14

Re: [ANY] Ignore list
 
Wow cool idea :D thanks to valve for the mute key and thanks to you for this <3

eric0279 10-15-2012 09:28

Re: [ANY] Ignore list
 
Thanks Tony :P


but :
Quote:

L 10/15/2012 - 13:59:26: [SM] Plugin encountered error 15: Array index is out of bounds
L 10/15/2012 - 13:59:26: [SM] Displaying call stack trace for plugin "ftz_ignorelist.smx":
L 10/15/2012 - 13:59:26: [SM] [0] Line 49, F:\SRCDS\l4d2\left4dead2\left4dead2\addons\so urcemod\scripting\ftz_ignorelist.sp::OnChatMe ssage()

FaTony 10-15-2012 10:24

Re: [ANY] Ignore list
 
Quote:

Originally Posted by eric0279 (Post 1819315)
Thanks Tony :P
but :

Hm, not sure what exactly can be out of bounds. I've released new version which fixes a few bugs unrelated to this one.

EDIT: I've made it so it will check for bounds and if it's a bad value, it will log it into errors log. I'm very curious about this problem, post the output after you've tested it.

eric0279 10-15-2012 10:49

Re: [ANY] Ignore list
 
Quote:

L 10/15/2012 - 16:44:14: [SM] Plugin encountered error 15: Array index is out of bounds
L 10/15/2012 - 16:44:14: [SM] Displaying call stack trace for plugin "ftz_ignorelist.smx":
L 10/15/2012 - 16:44:14: [SM] [0] Line 53, F:\SRCDS\l4d2\left4dead2\left4dead2\addons\so urcemod\scripting\ftz_ignorelist.sp::OnChatMe ssage()
Line 52 is uncommented... :

Quote:

[DEBUG ftz_ignorelist] client: -618611880, author: 1

FaTony 10-15-2012 11:17

Re: [ANY] Ignore list
 
Quote:

Originally Posted by eric0279 (Post 1819351)
Line 52 is uncommented... :

Can you download the source code of Simple Chat Processor, open it and change line 235 from:
PHP Code:

new Handle:cpRecipients CreateArray(11); 

to:
PHP Code:

new Handle:cpRecipients CreateArray(); 

then compile locally and report back?

eric0279 10-15-2012 12:45

Re: [ANY] Ignore list
 
So, here are the tests:

Code:

ftz_ignore Black
returns:
Quote:

[SM] More than one client matched the given filter.
test only with bots (Francis, Louis and Zoey)

Code:

ftz_ignore BlackLagon or ftz_ignore <userid>
returns:
Quote:

[SM] More than one client matched the given filter.
(2 bots and 2 players)

No error Effective change >> new Handle:cpRecipients = CreateArray();

FaTony 10-15-2012 13:18

Re: [ANY] Ignore list
 
Quote:

Originally Posted by eric0279 (Post 1819409)
So, here are the tests:

Code:

ftz_ignore Black
returns:

*facepalm* Forgot GetCmdArg. Fixed.

Quote:

Originally Posted by eric0279 (Post 1819409)
No error Effective change >> new Handle:cpRecipients = CreateArray();

Does this mean that out of bounds error has been fixed?

eric0279 10-15-2012 13:38

Re: [ANY] Ignore list
 
yes of bounds has been fixed.

plugin work's but ftz_ignore <userid> return :
[SM] Aucun Client correspondant trouvé.

Sreaper 10-15-2012 13:46

Re: [ANY] Ignore list
 
Can you please also add an option to ignore a clients voice but not the chat?
And possibly add an option to prevent admins from being ignored?

ecca 10-15-2012 13:48

Re: [ANY] Ignore list
 
Voice mute is built in on source engine ?

Sreaper 10-15-2012 13:49

Re: [ANY] Ignore list
 
Quote:

Originally Posted by ecca (Post 1819464)
Voice mute is built in on source engine ?

Muting a player also mutes future texts from that person.

FaTony 10-15-2012 13:50

Re: [ANY] Ignore list
 
Quote:

Originally Posted by eric0279 (Post 1819456)
yes of bounds has been fixed.

plugin work's but ftz_ignore <userid> return :
[SM] Aucun Client correspondant trouvé.

That's progress. Try
Code:

ftz_ignore @all

TnTSCS 10-15-2012 14:07

Re: [ANY] Ignore list
 
simple plugin now went to a bit more involved of a plugin with that request...

Sreaper 10-15-2012 14:10

Re: [ANY] Ignore list
 
Quote:

Originally Posted by TnTSCS (Post 1819492)
simple plugin now went to a bit more involved of a plugin with that request...

I admin on a server where mic spamming is permitted(tons of spammers). The owner is fine with the mic spam but I personally don't care for it which is why I would like to have it for the server.

eric0279 10-15-2012 15:14

Re: [ANY] Ignore list
 
Could you add an announcement to the players that they can make quiet a player who write in the chat?

edit : ok i test after

Mr. Man 10-15-2012 15:28

Re: [ANY] Ignore list
 
Wow! Thanks a lot for completing my request! I really appreciate it :bacon!:

Quote:

Originally Posted by ecca (Post 1819464)
Voice mute is built in on source engine ?

Like he said, there's no need to build voice muting into this plugin. It's in TF2 by default.

InB 10-15-2012 15:52

Re: [ANY] Ignore list
 
Does it also mute radio cmd?

Sreaper 10-15-2012 17:15

Re: [ANY] Ignore list
 
Quote:

Originally Posted by Mr. Man (Post 1819557)
Like he said, there's no need to build voice muting into this plugin. It's in TF2 by default.

I'll say it again so you understand better. If you mute a client via Escape - Mute, you block all voice communication as well as text outputs.
Since blocking text is built into TF2 by default, what was your reason for needing this plugin created Mr. Man?

Mr. Man 10-15-2012 17:28

Re: [ANY] Ignore list
 
Quote:

Originally Posted by Sreaper (Post 1819649)
I'll say it again so you understand better. If you mute a client via Escape - Mute, you block all voice communication as well as text outputs.
Since blocking text is built into TF2 by default, what was your reason for needing this plugin created Mr. Man?

Is that the case? Last time I checked TF2 muting only blocks voice communications.

Sreaper 10-15-2012 18:03

Re: [ANY] Ignore list
 
Quote:

Originally Posted by Mr. Man (Post 1819655)
Is that the case? Last time I checked TF2 muting only blocks voice communications.

It is the case and always has been the case. You probably just never noticed.

Mr. Man 10-15-2012 18:15

Re: [ANY] Ignore list
 
Quote:

Originally Posted by Sreaper (Post 1819669)
It is the case and always has been the case. You probably just never noticed.

Just did some digging around and it appears as if servers using customized chat messaging processors (such as SimpleChatProcessor) are affected in that muting only blocks voice, but not chat. Perhaps this works in a vanilla server?

Sreaper 10-15-2012 18:20

Re: [ANY] Ignore list
 
Quote:

Originally Posted by Mr. Man (Post 1819674)
Just did some digging around and it appears as if servers using customized chat messaging processors (such as SimpleChatProcessor) are affected in that muting only blocks voice, but not chat. Perhaps this works in a vanilla server?

I'm running SimpleChatProcessor on my server and Esc > Mute blocks voice comms as well as text just fine. I just now reconfirmed it on my own server just to make sure.

FaTony 10-15-2012 22:42

Re: [ANY] Ignore list
 
Quote:

Originally Posted by Sreaper (Post 1819649)
If you mute a client via Escape - Mute, you block all voice communication as well as text outputs.

Now I feel stupid. It's been a long time since I last muted someone.

Mr. Man 10-15-2012 22:50

Re: [ANY] Ignore list
 
Quote:

Originally Posted by FaTony (Post 1819803)
Now I feel stupid. It's been a long time since I last muted someone.

I am still going to use this since muting someone from the menu didn't do the trick for me.

Sreaper 10-15-2012 23:00

Re: [ANY] Ignore list
 
Quote:

Originally Posted by FaTony (Post 1819803)
Now I feel stupid. It's been a long time since I last muted someone.

Your plugin still is still very useful as it only blocks one and not the other. Is there any chance you can also add an option to block voice but not chat?

FaTony 10-15-2012 23:11

Re: [ANY] Ignore list
 
Quote:

Originally Posted by Sreaper (Post 1819816)
Your plugin still is still very useful as it only blocks one and not the other. Is there any chance you can also add an option to block voice but not chat?

It would require VoiceHook extension. It would probably be better to rename ftz_ignore to ftz_ignore_chat and release separate plugin for voice.

eric0279 10-16-2012 03:36

Re: [ANY] Ignore list
 
Quote:

Originally Posted by FaTony (Post 1819471)
That's progress. Try
Code:

ftz_ignore @all


plugin work's but ftz_ignore <userid> return :
[SM] Aucun Client correspondant trouvé.


same problem.

ftz_ignore @all > work's

minimoney1 10-17-2012 07:02

Re: [ANY] Ignore list
 
Quote:

Originally Posted by FaTony (Post 1819819)
It would require VoiceHook extension.

No it doesn't...
I'm also in the process of making a plugin that integrates into xenForo and updates all blocked players on there.

FaTony 10-17-2012 07:42

Re: [ANY] Ignore list
 
Quote:

Originally Posted by minimoney1 (Post 1820458)
No it doesn't...
I'm also in the process of making a plugin that integrates into xenForo and updates all blocked players on there.

Ah, never looked inside sdktools_voice. I'll update plugin soon.

EDIT: Done.

eric0279 10-22-2012 14:27

Re: [ANY] Ignore list
 
Version 0.94 :

Quote:

L 10/22/2012 - 19:02:53: [SM] Displaying call stack trace for plugin "ftz_ignorelist.smx":
L 10/22/2012 - 19:02:53: [SM] [0] Line 65, F:\SRCDS\l4d2\left4dead2\left4dead2\addons\so urcemod\scripting\ftz_ignorelist.sp::OnChatMe ssage()
L 10/22/2012 - 19:02:53: [SM] Native "GetArraySize" reported: Invalid Handle d558 (error: 4)
L 10/22/2012 - 19:02:53: [SM] Displaying call stack trace for plugin "ftz_ignorelist.smx":
L 10/22/2012 - 19:02:53: [SM] [0] Line 65, F:\SRCDS\l4d2\left4dead2\left4dead2\addons\so urcemod\scripting\ftz_ignorelist.sp::OnChatMe ssage()
L 10/22/2012 - 19:02:59: [SM] Native "SetListenOverride" reported: Sender client index 0 is invalid
L 10/22/2012 - 19:02:59: [SM] Displaying call stack trace for plugin "ftz_ignorelist.smx":
L 10/22/2012 - 19:02:59: [SM] [0] Line 52, F:\SRCDS\l4d2\left4dead2\left4dead2\addons\so urcemod\scripting\ftz_ignorelist.sp::OnClient Disconnect()
L 10/22/2012 - 19:03:02: [SM] Native "SetListenOverride" reported: Sender client index 0 is invalid

FaTony 10-22-2012 15:18

Re: [ANY] Ignore list
 
Quote:

Originally Posted by eric0279 (Post 1823676)
Version 0.94 :

Ok, gonna setup a server tomorrow and finally test all the stuff. Should be fixed soon.

EDIT: First error is probably because of other plugin and second error has been fixed.

eric0279 10-23-2012 06:06

Re: [ANY] Ignore list
 
a conflict between plugins?

Quote:

First error is probably because of other plugin
Should be Simple Chat Processor ?


Test :


Quote:

] ftz_ignore 2
[SM] Aucun Client correspondant trouvé.

FaTony 10-23-2012 13:11

Re: [ANY] Ignore list
 
Quote:

Originally Posted by eric0279 (Post 1824003)
a conflict between plugins?

Should be Simple Chat Processor ?


Test :

http://wiki.alliedmods.net/Admin_Com...#How_to_Target

try
Code:

ftz_ignore #2

guybrush_threepwood 10-24-2012 03:41

Re: [ANY] Ignore list
 
getting this error, consistently happening with lots of different bounds
Quote:

L 10/24/2012 - 18:27:27: [ftz_ignorelist.smx] [Ignore list] Warning: client is out of bounds: -493551469
L 10/24/2012 - 18:28:11: [ftz_ignorelist.smx] [Ignore list] Warning: client is out of bounds: 147
L 10/24/2012 - 18:28:11: [ftz_ignorelist.smx] [Ignore list] Warning: client is out of bounds: 147

DontWannaName 10-26-2012 02:32

Re: [ANY] Ignore list
 
Does this support client prefs? So they are saved between servers? :)

eric0279 10-26-2012 16:08

Re: [ANY] Ignore list
 
A bug :

mute voice player :
Quote:

ftz_ignore_voice #73
Le chat du joueur YEKeYey est maintenant ignoré.
Tu n'entendra plus la voix du joueur YEKeYey, celle-ci est maintenant ignorée.
mute chat :

Quote:

ftz_ignore_chat #73
Le chat du joueur YEKeYey! est maintenant ignoré.
Tu n'entendra plus la voix du joueur YEKeYey!, celle-ci est maintenant ignorée.

Mr. Man 10-26-2012 16:39

Re: [ANY] Ignore list
 
... why's OP banned?

eric0279 10-29-2012 07:36

Re: [ANY] Ignore list
 
I tested without the translation and so is ...

I connect to the server and here is the test:

Quote:


] ftz_ignore
Usage: ftz_ignore <#userid|name>

] status
hostname: [L4D2 FR] Server Not MODDED ! Versus On ! jsigames.net
version : 2.1.1.4 5072 secure (unknown)
udp/ip : 178.33.190.27:27015 [ public same ]
os : Linux Dedicated
map : c8m5_rooftop
players : 8 humans, 0 bots (8 max) (not hibernating) (reserved 18600005e79c153)

# userid name uniqueid connected ping loss state rate
# 15 1 "$[Dr4goN)[[GER]]" STEAM_1:0:19255405 53:57 104 0 active 25000
# 76 2 "†FetziDielustigeLandmine†" STEAM_1:1:12089776 14:00 97 0 active 25000
# 114 3 "Tankinozor" STEAM_1:1:12157180 01:00 111 0 active 25000
# 115 4 "schneider" STEAM_1:1:1462061 00:45 4822 83 active 30000
# 78 5 "Pharaoh J.N" STEAM_1:1:13985981 13:45 160 0 active 25000
# 91 6 "johnkillleras7" STEAM_1:1:51195144 07:27 138 0 active 25000
# 67 8 "(Weed) Cristi" STEAM_1:1:20908352 15:42 108 0 active 25000
# 109 10 "World Wide Web" STEAM_1:1:2884887 01:28 112 0 active 25000
#113 "Francis" BOT active
#end

] ftz_ignore #15
$[Dr4goN)[[GER]]'s chat is now ignored.
$[Dr4goN)[[GER]]'s voice is now ignored.

] ftz_ignore #15
$[Dr4goN)[[GER]]'s chat is no longer ignored.
$[Dr4goN)[[GER]]'s is no longer ignored.

] ftz_ignore_voice #15
$[Dr4goN)[[GER]]'s chat is now ignored.
$[Dr4goN)[[GER]]'s voice is now ignored.

] ftz_ignore_voice #15
$[Dr4goN)[[GER]]'s chat is no longer ignored.
$[Dr4goN)[[GER]]'s is no longer ignored.

] ftz_ignore_chat #15
$[Dr4goN)[[GER]]'s chat is now ignored.
$[Dr4goN)[[GER]]'s voice is now ignored.


] ftz_ignore_chat #15
$[Dr4goN)[[GER]]'s chat is no longer ignored.
$[Dr4goN)[[GER]]'s is no longer ignored.
thanks for fix...

but because the author is banned from the site, nobody will take it back I think :s

scorpadorp 01-27-2013 03:14

Re: [ANY] Ignore list
 
Since the OP is banned, can anyone else pick up where he left off and fix the "out of bounds" error?


All times are GMT -4. The time now is 16:27.

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