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

Advanced Swear Filter + Punishment Menu v2.0


Post New Thread Reply   
 
Thread Tools Display Modes
knocker
Senior Member
Join Date: Mar 2004
Old 03-28-2004 , 10:28  
Reply With Quote #21

well, it happens only with your plugin. and it crashes randomly, i couldnt see any similarities
knocker is offline
Send a message via ICQ to knocker
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 03-28-2004 , 11:23  
Reply With Quote #22

Hrmm, I went thru the code (again, lol) and I really don't know what it is.. The bulk of this plugin is simply String Manipulation, and it only ever runs (does anything at all) when:
  • 1. A player joins (Checks name) (maybe you're crashing here?)
    2. A player chats (Checks what they said) (maybe you're crashing here?)
    • a. if player doesn't swear, plugin does nothing
      b. if player swears, it does stuff (maybe you're crashing here?)
      • i. shows menu (or here?)
        ii. Default punishment (or here?)
    3. A player was punished (if they were gagged, they get ungagged later) (maybe you're crashing on UnGag?)

Other than that, it only runs when you use a specific command like: rs_namecheck -- then it will do another name check run..

Maybe it is a linux thing that i'm missing, but I doubt it, and it runs fine on Windows (I run XP, and my friend runs 2000)

It is funny too, that only you have experienced these errors and you are in the Credits list more than anyone else (for providing much help) for this plugin!!
xeroblood is offline
Send a message via MSN to xeroblood
knocker
Senior Member
Join Date: Mar 2004
Old 03-28-2004 , 11:31  
Reply With Quote #23

i am not sure if linux is the reason because it seems i am the only one with troubles
besides i know the plugin doesnt execute unstable funtions or some delicate things.


anyway - i think i will try it again but without mysql database. perhaps this could be the bug. (although it was working with the db )
knocker is offline
Send a message via ICQ to knocker
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 03-28-2004 , 11:33  
Reply With Quote #24

I don't think it is the MySQL routines or the File routines, they only get run once at the very start of the plugin (plugin_cfg()) and the words are loaded into memory..

After that, they only get run again on server refresh (like changelevel)..

If you see in console:
## Bad Words Loaded From MySQL

or something like that, where ## is greater than 0, then the words are loaded correctly.. no errors there.. same for the file routines
xeroblood is offline
Send a message via MSN to xeroblood
knocker
Senior Member
Join Date: Mar 2004
Old 03-28-2004 , 12:53  
Reply With Quote #25

thats what i think too, but when the plugin was in a stadium without mysql it worked great. i will try the next days.
knocker is offline
Send a message via ICQ to knocker
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 03-28-2004 , 13:42  
Reply With Quote #26

Quote:
Originally Posted by DoubleTap
I will test this on my next Mod X experiment... Your docs are good for all but the location of the swear_config.cfg... since Mod X moves things around I just want to be sure where that goes. For now I assume the obvious and put it in configs folder

Vic/DT
Actually, I have decided now that in my next release, I will move the swear_config.cfg file into the /swear folder where the other files are..

so it will be: amxx/custom/swear/swear_config.cfg

just to make it easier to install!!
xeroblood is offline
Send a message via MSN to xeroblood
VxD
Junior Member
Join Date: Mar 2004
Old 03-28-2004 , 17:40  
Reply With Quote #27

Is there an easy way to disable the menu stuff? When someone says a defined swear word just once, I want it to just go ahead and temp ban the fool.

Would setting rs_swearmenu to off and sv_punishment to 4 effectivly do this? or would I still get some menu?

Thanks, i'll be looking to test and\or modify this to my needs

VxD
VxD is offline
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 03-29-2004 , 08:07  
Reply With Quote #28

rs_swearmenu is a toggle switch for only you, other admins may still see the menu..

I will add a cvar to the next release (coming very soon) to disable the menu and only go with the default punishment..

sv_punishment 4 will by default, Temp-Ban any offenders, but in my next release, it will be 5, cuz I added a slap punishment..

Note that for now, if you are the only admin, then just type in console 'rs_swearmenu' just like that (no 1 or 0 after) and the Swear Menu will not be shown to you (you should see in console: 'You Have Unattached The Swear Menu!')

Then, any offenders will get default punishment (unless another admin joins, they may see the menu, unless they type same command)

Anyway, good idea you brought up, I will add a CVAR for that soon!
xeroblood is offline
Send a message via MSN to xeroblood
DoubleTap
Veteran Member
Join Date: Mar 2004
Location: Harker Heights, TX
Old 03-29-2004 , 18:36  
Reply With Quote #29

Try as I like... I cannot get this to run... any ideas, Linux server...

18:189 meta list
18:189 Currently loaded plugins:
description stat pend file vers src load unlod
[ 1] AMX Mod X RUN - amxx_mm_i386.so v0.16 ini ANY ANY
[ 2] {PAF} HostiTron RUN - hostitron_mm_i38 v3.00.00 ini ANY Pause
[ 3] Hook Mod RUN - hookmod_i486.so v3 ini Start Start
[ 4] Fun RUN - fun_amx_i386.so v0.16 cmd ANY ANY
[ 5] ENGINE RUN - engine_amx_i386. v0.16 cmd ANY ANY
[ 6] Counter-Strike RUN - cstrike_amx_i386 v0.16 ST cmd Pause Pause
[ 7] CS Stats RUN - csstats_amx_i386 v0.16 cmd ANY ANY
7 plugins, 7 running

18:19:12 amxx list
18:19:12 Currently loaded plugins:
name version author file status
[ 24] unknown unknown unknown swear_filter.am bad load
32 plugins, 31 running
__________________
DoubleTap is offline
Send a message via ICQ to DoubleTap
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 03-29-2004 , 18:57  
Reply With Quote #30

hrmm.. it seems Linux doesn't like something about this plugin, you're the second one to mention Linux problems, Knocker has had trouble too, and now I'm thinking it is a Linux issue.. maybe something to do with the natives from amxx.. I really dunno..
xeroblood is offline
Send a message via MSN to xeroblood
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 02:31.


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