Raised This Month: $442 Target: $400
 110% 

[ANY / CSGO] BanId Fix (v0.5, 17/07/17)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
SM9
Veteran Member
Join Date: Sep 2013
Location: United Kingdom
Plugin ID:
5666
Plugin Version:
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    A replacement for handling engine bans which are created using the "banid" command.
    Old 06-19-2017 , 17:19   [ANY / CSGO] BanId Fix (v0.5, 17/07/17)
    Reply With Quote #1

    [ANY / CSGO] BanId Fix

    IF YOU ARE USING CSGO, PLEASE INSTALL THIS: https://github.com/komashchenko/BanId_Fix/releases AND REMOVE MY PLUGIN (Credits to komashchenko)

    If you know how to make gamedata for other games please let me know or submit a PR to github above, this is a better solution than my plugin but it currently only supports CSGO.

    What is BanId Fix?

    BanId fix was originally written to fix a bug in CSGO where players who joined the server while banned would get stuck and end up wasting slots, it now serves as a replacement for handling engine bans which are created using the "banid" command.

    Why replace the engine bans?

    Well, if you ban somebody using the "banid" command and then restart your server you will notice that player is unbanned again (At least from my experience in CSGO) so this plugin will seamlessly handle all engine bans using its own logic and an SQLite database and by doing this we are also killing 2 birds with one stone, we fix a known bug which causes ghost players to get stuck which waste slots and we also make the banid command work as it should of (Yes we are fixing bugs which Valve are too lazy to fix)

    Can you be more specific about the Ghost bug?

    A couple of months back Valve changed some code related to the ban list filter ("Server ban list filter is now enforced in early stages of client connection packet handling.") When they did this, they introduced a bug which results in servers being filled with "Ghost players" or stuck clients which are impossible to get rid of without a server restart. It appears to happen directly after a banned client tries to connect to the server, so this plugin will attempt to deal with them clients using safer logic to prevent the bug.



    As you can see from the image, 4 players ("Ghosts") are stuck wasting slots, this happened because they joined the server while they were banned.

    But I use SourceBans or something else so do I still need this?

    Most likely yes, you will still have the ghost bug, (At least with an unmodified version of SourceBans) because when a banned player joins SourceBans will issue a shorter temp ban using "banid" to prevent them wasting server resources and spam rejoining.

    What are the requirements?

    These are optional but they provide the ability for the plugin to handle bans at a much earlier state, if you choose not to install these extensions then you should still be fine but I do recommend you run one of them.
    Installation
    • Copy the folder structure to your gameserver.
    • Install one of the extensions depending on your game.
    • Restart server.

    Notes / Known issues
    • No known issues.

    Credits
    I would like to thank everyone who has helped made this project possible, I am sorry if I forgot anyone.
    • MAMAC Helping me test and finding the cause of the bug.
    • komashchenko For PTAH once again, thanks to PTAH we can kick clients at an even earlier stage.
    • Forlix For Temp Ban Fix Borrowed some code.

    Enjoy
    Attached Files
    File Type: zip BanId-Fix-0.5.zip (19.4 KB, 4552 views)

    Last edited by SM9; 02-17-2020 at 14:44.
    SM9 is offline
    hustl4
    Junior Member
    Join Date: Jan 2016
    Location: USA
    Old 06-20-2017 , 13:20   Re: [ANY / CSGO] BanId Fix
    Reply With Quote #2

    Amazing, thank you so much for this! Been using it on all my servers since you released it yesterday, and not a single stuck player since!
    hustl4 is offline
    vortex.
    AlliedModders Donor
    Join Date: Jan 2017
    Location: OnGameFrame()
    Old 06-20-2017 , 14:31   Re: [ANY / CSGO] BanId Fix
    Reply With Quote #3

    Cool, working. Thank you!
    __________________
    vortex. is offline
    egorka2
    Member
    Join Date: Jun 2010
    Old 06-20-2017 , 21:04   Re: [ANY / CSGO] BanId Fix
    Reply With Quote #4

    L 06/21/2017 - 04:010: [SM] Exception reported: String formatted incorrectly - parameter 2 (total 1)
    L 06/21/2017 - 04:010: [SM] Blaming: BanIdFix.smx
    L 06/21/2017 - 04:010: [SM] Call stack trace:
    L 06/21/2017 - 04:010: [SM] [0] PrintToServer
    L 06/21/2017 - 04:010: [SM] [1] Line 259, C:\Users\Michael\Documents\Development\PAWN\P rojects\BanIdGhostFix\addons\sourcemod\script ing\BanIdFix.sp::AddBan
    L 06/21/2017 - 04:010: [SM] [2] Line 186, C:\Users\Michael\Documents\Development\PAWN\P rojects\BanIdGhostFix\addons\sourcemod\script ing\BanIdFix.sp::Event_AddBan

    20 mb error logs for hour
    egorka2 is offline
    SM9
    Veteran Member
    Join Date: Sep 2013
    Location: United Kingdom
    Old 06-20-2017 , 22:52   Re: [ANY / CSGO] BanId Fix
    Reply With Quote #5

    Updated to 0.4 -
    • Fixed missing parameter causing error spam (Thanks egorka2)
    SM9 is offline
    A_RM
    AlliedModders Donor
    Join Date: Oct 2016
    Location: Canada
    Old 06-24-2017 , 16:02   Re: [ANY / CSGO] BanId Fix (v0.4, 21/06/17)
    Reply With Quote #6

    Thank you for your work man, much appreciated! This bug was such a headache for so long, glad someone was finally able to resolve it
    A_RM is offline
    Ejziponken
    AlliedModders Donor
    Join Date: Apr 2008
    Old 07-14-2017 , 07:12   Re: [ANY / CSGO] BanId Fix (v0.4, 21/06/17)
    Reply With Quote #7

    https://gyazo.com/3fddedce401403adb8f76510bb7d5fe0
    Ejziponken is offline
    SM9
    Veteran Member
    Join Date: Sep 2013
    Location: United Kingdom
    Old 07-14-2017 , 09:33   Re: [ANY / CSGO] BanId Fix (v0.4, 21/06/17)
    Reply With Quote #8

    Quote:
    Originally Posted by Ejziponken View Post
    All you need for CSGO + this plugin is PTAH, the others are not required.
    SM9 is offline
    Ejziponken
    AlliedModders Donor
    Join Date: Apr 2008
    Old 07-14-2017 , 14:35   Re: [ANY / CSGO] BanId Fix (v0.4, 21/06/17)
    Reply With Quote #9

    Quote:
    Originally Posted by xCoderx View Post
    All you need for CSGO + this plugin is PTAH, the others are not required.
    Yeah I know, but kinda weird they showing up there even when I only have PTAH.
    Ejziponken is offline
    SM9
    Veteran Member
    Join Date: Sep 2013
    Location: United Kingdom
    Old 07-16-2017 , 19:37   Re: [ANY / CSGO] BanId Fix
    Reply With Quote #10

    Updated to 0.5 -
    • Fixed crash if no extension is installed.

    Last edited by SM9; 07-16-2017 at 19:37.
    SM9 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 17:26.


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