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

[ANY] Advanced Filters v1.2 (Name & Chat filtering solution w/ Sourcebans++ support)


Post New Thread Reply   
 
Thread Tools Display Modes
FAQU
Member
Join Date: Sep 2020
Location: Romania
Old 01-21-2021 , 10:55   Re: [ANY?] Simple Filters 1.0.4 (Sourcebans++ support)
Reply With Quote #21

Quote:
Originally Posted by jeremyvillanueva View Post
Hi, FAQU, so much thanks for your work,
I'm using but I have more than 100 words on my banned words list

This is the error in the log:
L 01/21/2021 - 04:10:06: [SM] Exception reported: Array index out-of-bounds (index 100, limit 100)
L 01/21/2021 - 04:10:06: [SM] Blaming: simple-filters.smx
L 01/21/2021 - 04:10:06: [SM] Call stack trace:
L 01/21/2021 - 04:10:06: [SM] [1] Line 542, D:\plugins by FAQU\learning\Simple-Filters\pentru alliedmods si github\scripting\simple-filters.sp::GetFilters
L 01/21/2021 - 04:10:06: [SM] [2] Line 118, D:\plugins by FAQU\learning\Simple-Filters\pentru alliedmods si github\scripting\simple-filters.sp::OnConfigsExecuted

I want to ask, may you help me, is 100 the limit?
I traced to this function:
else BreakString(line, chatfilters[i], sizeof(chatfilters[]));

I was trying to fix it, but I want to know more about that constant number 100,
and how does BreakString works

Thanks
Currently the plugin allows up to 100 filters with a max of 50 characters each.

The actual error that you are getting is: "Array index out-of-bounds (index 100, limit 100)"
This means that the array (buffer) which is used for storing the filters is not big enough to store the amount of data that you want it to.

If you plan on using more than 100 chat filters, just modify the variable "char chatfilters[100][50];" to suit your needs, and recompile.
Example:
PHP Code:
char chatfilters[150][70]; // 150 filters with a max of 70 characters each 
__________________
FAQU is offline
jeremyvillanueva
AlliedModders Donor
Join Date: Jan 2021
Location: dcord:Jeremy333#7632
Old 01-29-2021 , 23:57   Re: [ANY?] Simple Filters 1.0.4 (Sourcebans++ support)
Reply With Quote #22

You are the boss!! Thanks a lot, I'll try it!
jeremyvillanueva is offline
FAQU
Member
Join Date: Sep 2020
Location: Romania
Old 02-02-2021 , 02:30   Re: [ANY] Simple Filters 1.0.5 (Sourcebans++ support)
Reply With Quote #23

Updated plugin to version 1.0.5

Quote:
Version 1.0.5
-General code improvements
-Likely some performance improvements
-Fixed some unwanted behavior
Important: All ConVars got new names, so you should delete your current Simple-Filters.cfg, and let the plugin generate a new file.
__________________
FAQU is offline
FAQU
Member
Join Date: Sep 2020
Location: Romania
Old 02-06-2021 , 03:01   Re: [ANY] Simple Filters 1.0.6 (Sourcebans++ support)
Reply With Quote #24

Updated plugin to version 1.0.6

This might be the final version.

Quote:
Version 1.0.6
-Added option to rename players with names too short
-Further code optimizations
__________________
FAQU is offline
Sajmooooon
Senior Member
Join Date: Nov 2018
Location: Slovakia
Old 02-15-2021 , 04:18   Re: [ANY] Simple Filters 1.0.6 (Sourcebans++ support)
Reply With Quote #25

Hi, from version 1.0.5 doesn't work whitelist.
Sajmooooon is offline
FAQU
Member
Join Date: Sep 2020
Location: Romania
Old 02-15-2021 , 05:26   Re: [ANY] Simple Filters 1.0.6 (Sourcebans++ support)
Reply With Quote #26

Quote:
Originally Posted by Sajmooooon View Post
Hi, from version 1.0.5 doesn't work whitelist.
Whitelist working fine on my end.

I recommend deleting your current .cfg file, and letting the plugin auto-generate a new file. As of version 1.0.5 all cvars got new names, and simple_whitelist is set to 0 (disabled) by default.
__________________
FAQU is offline
Sajmooooon
Senior Member
Join Date: Nov 2018
Location: Slovakia
Old 02-15-2021 , 10:21   Re: [ANY] Simple Filters 1.0.6 (Sourcebans++ support)
Reply With Quote #27

Quote:
Originally Posted by FAQU View Post
Whitelist working fine on my end.

I recommend deleting your current .cfg file, and letting the plugin auto-generate a new file. As of version 1.0.5 all cvars got new names, and simple_whitelist is set to 0 (disabled) by default.
Yep I deleted it and tried it with simple_whitelist 0 then 1 a then 0 and didn't work either.
Nevermind, I will use 1.0.4

+ Kick options showed me only ip without port - I don't know if it should work like this or it's some bug.
Sajmooooon is offline
FAQU
Member
Join Date: Sep 2020
Location: Romania
Old 02-15-2021 , 11:53   Re: [ANY] Simple Filters 1.0.6 (Sourcebans++ support)
Reply With Quote #28

Quote:
Originally Posted by Sajmooooon View Post
Yep I deleted it and tried it with simple_whitelist 0 then 1 a then 0 and didn't work either.
Nevermind, I will use 1.0.4

+ Kick options showed me only ip without port - I don't know if it should work like this or it's some bug.
The IP filtering does not take into account ports. So if you want to allow players to type "connect 127.0.0.1:27015" you should have "127.0.0.1" in the whitelist file.
__________________

Last edited by FAQU; 02-15-2021 at 11:54.
FAQU is offline
Sajmooooon
Senior Member
Join Date: Nov 2018
Location: Slovakia
Old 02-15-2021 , 12:43   Re: [ANY] Simple Filters 1.0.6 (Sourcebans++ support)
Reply With Quote #29

Quote:
Originally Posted by FAQU View Post
The IP filtering does not take into account ports. So if you want to allow players to type "connect 127.0.0.1:27015" you should have "127.0.0.1" in the whitelist file.
Ok that was the problem, I was adding port too. Thanks for your time
Sajmooooon is offline
jugule
AlliedModders Donor
Join Date: Apr 2020
Old 03-30-2021 , 10:40   Re: [ANY] Simple Filters 1.0.6 (Sourcebans++ support)
Reply With Quote #30

You could block for example
Word: test
to block and T E S T (with spaces)
jugule 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 06:27.


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