AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY / CSGO] BanId Fix (v0.5, 17/07/17) (https://forums.alliedmods.net/showthread.php?t=298672)

SM9 06-19-2017 17:19

[ANY / CSGO] BanId Fix (v0.5, 17/07/17)
 
1 Attachment(s)
[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.

https://bitbucket.org/repo/9p8qBjr/i...71-cy6QIWr.png

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 :)

hustl4 06-20-2017 13:20

Re: [ANY / CSGO] BanId Fix
 
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!

vortex. 06-20-2017 14:31

Re: [ANY / CSGO] BanId Fix
 
Cool, working. Thank you!

egorka2 06-20-2017 21:04

Re: [ANY / CSGO] BanId Fix
 
L 06/21/2017 - 04:01:30: [SM] Exception reported: String formatted incorrectly - parameter 2 (total 1)
L 06/21/2017 - 04:01:30: [SM] Blaming: BanIdFix.smx
L 06/21/2017 - 04:01:30: [SM] Call stack trace:
L 06/21/2017 - 04:01:30: [SM] [0] PrintToServer
L 06/21/2017 - 04:01:30: [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:01:30: [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

SM9 06-20-2017 22:52

Re: [ANY / CSGO] BanId Fix
 
Updated to 0.4 -
  • Fixed missing parameter causing error spam (Thanks egorka2)

A_RM 06-24-2017 16:02

Re: [ANY / CSGO] BanId Fix (v0.4, 21/06/17)
 
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 :)

Ejziponken 07-14-2017 07:12

Re: [ANY / CSGO] BanId Fix (v0.4, 21/06/17)
 
https://gyazo.com/3fddedce401403adb8f76510bb7d5fe0

SM9 07-14-2017 09:33

Re: [ANY / CSGO] BanId Fix (v0.4, 21/06/17)
 
Quote:

Originally Posted by Ejziponken (Post 2535235)

All you need for CSGO + this plugin is PTAH, the others are not required.

Ejziponken 07-14-2017 14:35

Re: [ANY / CSGO] BanId Fix (v0.4, 21/06/17)
 
Quote:

Originally Posted by xCoderx (Post 2535272)
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. :)

SM9 07-16-2017 19:37

Re: [ANY / CSGO] BanId Fix
 
Updated to 0.5 -
  • Fixed crash if no extension is installed.


All times are GMT -4. The time now is 18:35.

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