Webpanel fix for Steam3 format (SourceBans 1.4.11)
2 Attachment(s)
There was a change in the representation of a steamid first in TF2 and now in the Source SDK 2013.
Steamids are rendered differently by the game. Instead of STEAM_0:X:Y it's now [U:1:Z]. SourceMod 1.6.2 works around this change transparently for plugins by always providing the "old" STEAM_X representation, so there are no changes needed on the plugin side. The webpanel was parsing the "status" command output to find right player to kick and couldn't handle the new [U:1:Z] format. The attached .zip includes the necassary changes to support both steamid formats and fixes the kicking of players through the player context menu on the servers page as well as viewing the player's community profile. Installation Download the attached .zip and extract the contents in your installation of SourceBans 1.4.11. Overwrite all files. To check the actual modifications, have a look at revisions 163 and 164 in the SVN. |
Re: Webpanel fix for Steam3 format (SourceBans 1.4.11)
I see. :) Should have posted this long ago, since the commit was pushed long ago.
|
Re: Webpanel fix for Steam3 format (SourceBans 1.4.11)
Thanks Peace-Maker!
|
Re: Webpanel fix for Steam3 format (SourceBans 1.4.11)
If you have Sourcecomms installed this will remove the tab FYI. You will need to reedit the pages to get the tab back.
|
Re: Webpanel fix for Steam3 format (SourceBans 1.4.11)
Quote:
|
Re: Webpanel fix for Steam3 format (SourceBans 1.4.11)
Quote:
|
Re: Webpanel fix for Steam3 format (SourceBans 1.4.11)
Quote:
Is there a release for people who only want to update the files and keep Sourcecomms without setting it back up? I do not want to totally reinstall sourcebans or sourcecomms. I just want to update the files needed for Steam3 and keep the Sourcecomms. |
Re: Webpanel fix for Steam3 format (SourceBans 1.4.11)
how can I install it correctly on my SourceBans?
|
Re: Webpanel fix for Steam3 format (SourceBans 1.4.11)
Quote:
Quote:
|
Re: Webpanel fix for Steam3 format (SourceBans 1.4.11)
1 Attachment(s)
Quote:
The attached zip works fine with sourcecomms. And its still sourcebans 1.4.11 Sorry for my poor english. Best regards, Newbie1992 |
Re: Webpanel fix for Steam3 format (SourceBans 1.4.11)
Should CSGO servers use this update?
|
Re: Webpanel fix for Steam3 format (SourceBans 1.4.11)
Quote:
But you could, so you don't have to do it later, in case it changes. |
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] |
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.
|
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.:]+) |
Re: Webpanel fix for Steam3 format (SourceBans 1.4.11)
Quote:
|
Re: Webpanel fix for Steam3 format (SourceBans 1.4.11)
Quote:
|
Re: Webpanel fix for Steam3 format (SourceBans 1.4.11)
Quote:
@Peace-Maker: Fix this! |
Re: Webpanel fix for Steam3 format (SourceBans 1.4.11)
Quote:
I'll update the package in the first post to include that change. |
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. |
Re: Webpanel fix for Steam3 format (SourceBans 1.4.11)
Does I need this for sb fork 1.5?
|
Re: Webpanel fix for Steam3 format (SourceBans 1.4.11)
Quote:
|
Re: Webpanel fix for Steam3 format (SourceBans 1.4.11)
Im not sure if this fix was the the unbanning but i ban someone and unban in sourcebans but the ban doesnt remove?
|
Re: Webpanel fix for Steam3 format (SourceBans 1.4.11)
IIRC unbanning might still be broken, because the built-in engine commands don't handle the old steamid format in their arguments when they should. When the change first came to TF2 a valve employee stated, that the old steamid format would still work for engine commands. "removeid" and friends don't seem to support the steam2 format though :(
|
All times are GMT -4. The time now is 01:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.