Kingwolf

[Plugin Release] Cod4X Antispam 2017

Recommended Posts

                                                                         Presenting Cod4X Antispam Plugin 

 

Plugin tested and reported to be working full on both UNIX and WIN32 platforms.
This version fixes all of the bugs in the previous beta release.

 

  • Intelligently Reduce Server Chat Spam !
  • The final  and official version (2.5) of the Cod4X antispam plugin is released today ! :D

    How to Use the plugin and how to install it  :  Github .

 

This version fixes all of the bugs reported and is tested on both UNIX and WIN32 platforms.

Attaching the precompiled binaries below :

antispam.dll

antispam.so

Edited by Kingwolf
  • Like 1

Share this post


Link to post
Share on other sites

Server is crashing, and it seems like the problem is with antispam:

 

 

]exec config.cfg
execing config.cfg
Plugin antispam loaded successfully. Server is currently running 1 plugins.
Censor_Plugin: Can not open badwords.txt for reading
Plugin censor loaded successfully. Server is currently running 2 plugins.
Plugin simplebanlist loaded successfully. Server is currently running 3 plugins.
Adding a plugin script function for plugin 3, command name: TS_Quality.
Adding a plugin script function for plugin 3, command name: TS_Rate.
Adding a plugin script function for plugin 3, command name: TS_AddPlayer.
Adding a plugin script function for plugin 3, command name: TS_ClearAllPlayers.
Adding a plugin script function for plugin 3, command name: TS_UpdateMu.
Adding a plugin script function for plugin 3, command name: TS_UpdateDraw.
Plugin trueskillplugin loaded successfully. Server is currently running 4 plugins.
Plugin b3hide loaded successfully. Server is currently running 5 plugins.
Plugin pchat loaded successfully. Server is currently running 6 plugins.
Error: Init failure. Cvar sourcebans_url or sourcebans_identkey is not set
Error in plugin's OnInit function!
Plugin load failed.
Warn_System: File has been opened!
Plugin warn loaded successfully. Server is currently running 8 plugins.
Player CooLMaN, 5 dropped: EXE_DISCONNECTED
This program has crashed with signal: Segmentation fault
The current Gameversion is: CoD4 X 1.8 linux-i386 type 'e' build 2062 Dec 10 2017
File is ./cod4x18_dedrun Hash is: f3b6d050579a15b34807d4265b3063e1aa7abb38455686cba5622f92f0ef5bfa
---------- Crash Backtrace ----------
   19: ./cod4x18_dedrun(Sys_DumpCrash+0xfa) [0x2028530]
   18: ./cod4x18_dedrun(Sys_SigHandler+0x3c) [0x202868b]
   17: [0xb7751c14]
   16: /home/asif/.callofduty4/plugin.antispam.tmp(OnPlayerDC+0x1d9) [0xb7748495]
   15: ./cod4x18_dedrun(PHandler_Event+0x122) [0x2065f17]
   14: ./cod4x18_dedrun(SV_DropClientInternal+0x233) [0x2081a30]
   13: ./cod4x18_dedrun(SV_DropClient+0x20) [0x2081cf8]
   12: ./cod4x18_dedrun() [0x2083d58]
   11: ./cod4x18_dedrun(SV_ExecuteClientCommand+0x6d) [0x2084431]
   10: ./cod4x18_dedrun(SV_ClientCommand+0x334) [0x20847b8]
    9: ./cod4x18_dedrun(SV_ExecuteClientMessage+0x154) [0x2083bf9]
    8: ./cod4x18_dedrun(NET_UDPPacketEvent+0x8c) [0x209b4cb]
    7: ./cod4x18_dedrun(NET_Event+0x8a) [0x203f4a2]
    6: ./cod4x18_dedrun(NET_Sleep+0x303) [0x203f851]
    5: ./cod4x18_dedrun(SV_Frame+0x35c) [0x207e28f]
    4: ./cod4x18_dedrun(Com_Frame+0x80) [0x20bfa8a]
    3: ./cod4x18_dedrun(Sys_Main+0x9a) [0x2072c91]
    2: ./cod4x18_dedrun(main+0x1bd) [0x2026f9d]
    1: /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf7) [0xb73a4637]
    0: ./cod4x18_dedrun() [0x2026063]
 
-- Registers ---
edi 0x1473d718
esi 0x1473d718
ebp 0xbff2f0b8
esp 0xbff2f040
eax 0xfffffffc
ebx 0x49
ecx 0xffffffff
edx 0x1480eb18
eip 0xb7748495
-------- Backtrace Completed --------
Received signal: Segmentation fault, exiting...
Server received signal: Segmentation fault
Shutting down server...
----- Server Shutdown -----
 
With the reason:
Server received signal: Segmentation fault
Terminating server...
==== ShutdownGame (1) ====
Player |MS|=-D3viL-=, 0 dropped: EXE_DISCONNECTED
]Segmentation fault (core dumped)

Share this post


Link to post
Share on other sites

@Devil-Spark
1- Please attach the cvar values you set for antispam. See here
2- Are you connecting externally(using exernal ip address) or to a local machine.
3-  Please confirm if the antispam was working when you were NOT disconnected.(Try spamming)
4- The server crashed when you exited the game or it automatically just crashed?

BTW, both your sourcebansplugin and censor plugin are not configured correctly,and they are infact not running.

Edited by Kingwolf

Share this post


Link to post
Share on other sites

Ignore the above post because I assumed you were the only person in the server.

Please pm me the full log so i can better find the error, since i checked with up to 5 players and there were no issues that i found.

Share this post


Link to post
Share on other sites

Thanks for a plugin dude! Just a small wish - would be great if it didnt cause segfault on map change if Bot clients are on server.

16: [0xf7fa1dd0]

15: ./plugin.antispam.tmp(OnPlayerDC+0x142) [0xf7f92e39]

 

Share this post


Link to post
Share on other sites
10 minutes ago, Kingwolf said:

Can you tell me how to load and test bot clients , since i never worked with them before.
 

Yep its simple as

bot = AddTestClient(); // add
removeAllTestClients(); // remove

P.S. segfault actually happen on bot disconnect (remove)

I believe you just need to check player's (netchan.remoteAddress.type == NA_BOT), and if its true just ignore him with your plugin functions

Edited by volkv

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.