View Single Post
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