AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   SourceBans / SourceBans++ (https://forums.alliedmods.net/forumdisplay.php?f=152)
-   -   Webpanel fix for Steam3 format (SourceBans 1.4.11) (https://forums.alliedmods.net/showthread.php?t=251904)

Nolongerinthegame 12-07-2014 08:00

Re: Webpanel fix for Steam3 format (SourceBans 1.4.11)
 
Should CSGO servers use this update?

Peace-Maker 12-07-2014 08:21

Re: Webpanel fix for Steam3 format (SourceBans 1.4.11)
 
Quote:

Originally Posted by nelioneil (Post 2232146)
Should CSGO servers use this update?

You don't need to. CSGO renders steamids as STEAM_X:Y:Z.
But you could, so you don't have to do it later, in case it changes.

taRik 12-12-2014 13:04

Re: Webpanel fix for Steam3 format (SourceBans 1.4.11)
 
Running into the "Can't kick <name>. Player not on the server anymore!" error with the updated files (and old files), anyone find a viable fix to this? I have searched and nothing works.

Thanks.

[csgo]

Dustin 01-06-2015 06:47

Re: Webpanel fix for Steam3 format (SourceBans 1.4.11)
 
This "fix" ruined CSGO panel settings. It doesn't work anymore. So if you run TF2, use 1.4.11, if CSGO, use 1.4.10.

werybigmonk 01-07-2015 13:28

Re: Webpanel fix for Steam3 format (SourceBans 1.4.11)
 
1.4.11 regex to fix "player is not on the server anymore" errors ( https://code.google.com/p/sourcebans...e/detail?r=158 ) seems to have broken CS:GO status parsing.
CSGO status reply is # userid name uniqueid connected ping loss state rate adr, and userid seems to be 2-part, not sure why. I assumed second part is the needed one, maybe both would work.
ex: # 3942 1 "playername" STEAM_1:0:1234567 08:43 62 0 active 80000 127.1.2.3:27005

For TF2, reply is userid name uniqueid connected ping loss state adr
ex: # 35 "player name" [U:1:1234567] 00:37 20 0 active 127.2.3.4:27005

I haven't tested following on SB, but with php regex matching it does work for both cases:
# .* +([0-9]+) +"(.+)" +(STEAM_[0-9]:[0-9]:[0-9]+|\[U:[0-9]:[0-9]+\]) +([0-9:]+) +([0-9]+) +([0-9]+) +([a-zA-Z]+).* +([0-9.:]+)

Sarabveer 01-07-2015 15:48

Re: Webpanel fix for Steam3 format (SourceBans 1.4.11)
 
Quote:

Originally Posted by Dustin (Post 2245417)
This "fix" ruined CSGO panel settings. It doesn't work anymore. So if you run TF2, use 1.4.11, if CSGO, use 1.4.10.

You mean use 1.4.11 without the Steam3 fix

Dustin 01-07-2015 16:57

Re: Webpanel fix for Steam3 format (SourceBans 1.4.11)
 
Quote:

Originally Posted by Sarabveer (Post 2246167)
You mean use 1.4.11 without the Steam3 fix

No. If SB 1.4.11 is installed, CSGO will break no matter if you use the Steam3 fix or not. This still is the case.

Sarabveer 01-07-2015 19:59

Re: Webpanel fix for Steam3 format (SourceBans 1.4.11)
 
Quote:

Originally Posted by Dustin (Post 2246197)
No. If SB 1.4.11 is installed, CSGO will break no matter if you use the Steam3 fix or not. This still is the case.

Try using 1.4.10, it uses the old php mysql which is deprecated. It also has a few exploits that were fixed in 1.4.11 and the latest svn. It's very outdated, and vulnerable.

@Peace-Maker: Fix this!

Peace-Maker 01-12-2015 09:25

Re: Webpanel fix for Steam3 format (SourceBans 1.4.11)
 
Quote:

Originally Posted by werybigmonk (Post 2246110)
1.4.11 regex to fix "player is not on the server anymore" errors ( https://code.google.com/p/sourcebans...e/detail?r=158 ) seems to have broken CS:GO status parsing.
CSGO status reply is # userid name uniqueid connected ping loss state rate adr, and userid seems to be 2-part, not sure why. I assumed second part is the needed one, maybe both would work.
ex: # 3942 1 "playername" STEAM_1:0:1234567 08:43 62 0 active 80000 127.1.2.3:27005

For TF2, reply is userid name uniqueid connected ping loss state adr
ex: # 35 "player name" [U:1:1234567] 00:37 20 0 active 127.2.3.4:27005

I haven't tested following on SB, but with php regex matching it does work for both cases:
# .* +([0-9]+) +"(.+)" +(STEAM_[0-9]:[0-9]:[0-9]+|\[U:[0-9]:[0-9]+\]) +([0-9:]+) +([0-9]+) +([0-9]+) +([a-zA-Z]+).* +([0-9.:]+)

You're right. One space too many removed in that commit. It's fixed here.
I'll update the package in the first post to include that change.

werybigmonk 01-18-2015 14:09

Re: Webpanel fix for Steam3 format (SourceBans 1.4.11)
 
There is more than just missing space. In CS:GO there is 'rate' column before player's ip address, which is absent in TF2. That probably changed in some update and went unnoticed.
With .* right after ([a-zA-Z]+) regex will leave it be and capture ip address correctly.


All times are GMT -4. The time now is 20:14.

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