View Single Post
werybigmonk
New Member
Join Date: Jun 2014
Old 01-07-2015 , 13: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