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

Webpanel fix for Steam3 format (SourceBans 1.4.11)


Post New Thread Reply   
 
Thread Tools Display Modes
nelioneil
AlliedModders Donor
Join Date: Sep 2005
Old 12-07-2014 , 09:00   Re: Webpanel fix for Steam3 format (SourceBans 1.4.11)
Reply With Quote #11

Should CSGO servers use this update?
nelioneil is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 12-07-2014 , 09:21   Re: Webpanel fix for Steam3 format (SourceBans 1.4.11)
Reply With Quote #12

Quote:
Originally Posted by nelioneil View Post
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.
__________________
Peace-Maker is offline
taRik
SourceMod Donor
Join Date: Apr 2010
Old 12-12-2014 , 14:04   Re: Webpanel fix for Steam3 format (SourceBans 1.4.11)
Reply With Quote #13

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]

Last edited by taRik; 12-12-2014 at 15:37.
taRik is offline
Dustin
Member
Join Date: Sep 2005
Location: Finland
Old 01-06-2015 , 07:47   Re: Webpanel fix for Steam3 format (SourceBans 1.4.11)
Reply With Quote #14

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.
Dustin is offline
werybigmonk
New Member
Join Date: Jun 2014
Old 01-07-2015 , 14:28   Re: Webpanel fix for Steam3 format (SourceBans 1.4.11)
Reply With Quote #15

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] 007 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.:]+)
werybigmonk is offline
Sarabveer
Veteran Member
Join Date: Feb 2014
Location: NJ, United States
Old 01-07-2015 , 16:48   Re: Webpanel fix for Steam3 format (SourceBans 1.4.11)
Reply With Quote #16

Quote:
Originally Posted by Dustin View Post
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
__________________
Sarabveer is offline
Send a message via Skype™ to Sarabveer
Dustin
Member
Join Date: Sep 2005
Location: Finland
Old 01-07-2015 , 17:57   Re: Webpanel fix for Steam3 format (SourceBans 1.4.11)
Reply With Quote #17

Quote:
Originally Posted by Sarabveer View Post
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.
Dustin is offline
Sarabveer
Veteran Member
Join Date: Feb 2014
Location: NJ, United States
Old 01-07-2015 , 20:59   Re: Webpanel fix for Steam3 format (SourceBans 1.4.11)
Reply With Quote #18

Quote:
Originally Posted by Dustin View Post
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!
__________________
Sarabveer is offline
Send a message via Skype™ to Sarabveer
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 01-12-2015 , 10:25   Re: Webpanel fix for Steam3 format (SourceBans 1.4.11)
Reply With Quote #19

Quote:
Originally Posted by werybigmonk View Post
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] 007 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.
__________________
Peace-Maker is offline
werybigmonk
New Member
Join Date: Jun 2014
Old 01-18-2015 , 15:09   Re: Webpanel fix for Steam3 format (SourceBans 1.4.11)
Reply With Quote #20

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.
werybigmonk 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 05:36.


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