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)

Peace-Maker 11-21-2014 21:41

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.

Sarabveer 11-22-2014 12:13

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.

PolyQuad 11-24-2014 17:02

Re: Webpanel fix for Steam3 format (SourceBans 1.4.11)
 
Thanks Peace-Maker!

Creampuffyness 11-26-2014 17:43

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.

dotexe 11-27-2014 01:42

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

Originally Posted by Creampuffyness (Post 2228611)
If you have Sourcecomms installed this will remove the tab FYI. You will need to reedit the pages to get the tab back.

Can you upload the edited pages for Sourcecomms?

Sarabveer 11-27-2014 23:38

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

Originally Posted by dotexe (Post 2228696)
Can you upload the edited pages for Sourcecomms?

I have made another release of SourceBans, it includes this fix and some other fixes in the plugins (family sharing ban evasion). I have 2 links, one with and without sourcecomms. Please look for the 1.4.2 thread.

Creampuffyness 11-30-2014 23:46

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

Originally Posted by Sarabveer (Post 2228983)
I have made another release of SourceBans, it includes this fix and some other fixes in the plugins (family sharing ban evasion). I have 2 links, one with and without sourcecomms. Please look for the 1.4.2 thread.

Sarabveer,
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.

Muscle Brazil 12-01-2014 09:08

Re: Webpanel fix for Steam3 format (SourceBans 1.4.11)
 
how can I install it correctly on my SourceBans?

Rytis 12-01-2014 09:48

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

Originally Posted by Muscle Brazil (Post 2230083)
how can I install it correctly on my SourceBans?

Quote:

Originally Posted by Peace-Maker (Post 2226943)
Installation
Download the attached .zip and extract the contents in your installation of SourceBans 1.4.11. Overwrite all files.


Newbie1992 12-02-2014 14:21

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

Originally Posted by dotexe (Post 2228696)
Can you upload the edited pages for Sourcecomms?

Hi, done!

The attached zip works fine with sourcecomms. And its still sourcebans 1.4.11
Sorry for my poor english.

Best regards,
Newbie1992

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.

DarkEvil 01-26-2015 14:02

Re: Webpanel fix for Steam3 format (SourceBans 1.4.11)
 
Does I need this for sb fork 1.5?

Sarabveer 01-26-2015 17:57

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

Originally Posted by DarkEvil (Post 2254337)
Does I need this for sb fork 1.5?

no

Sarin 09-22-2015 03:07

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?

Peace-Maker 09-23-2015 08:31

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.