AFAIK, maximum player name is limited at 32 characters."player2<2><STEAM_0:0:2222><Red>") (position1 "2 2 2") (player2 "player1" is way over 32 characters. A while back, I made a HLSW style match reporting bot in Java for my server so I could monitor the server even when I wasn't playing on it. To solve this parsing problem, I included a regular expression that grabs these so-called user strings. From there, I counted the number of <'s(as <'s are also allowed in names) the within the string, and reconstructed the name.
Originally, I had constructed the bot assuming that " were illegal characters. I was a little miffed when I had almost finished the bot to find out that the original way I was parsing, around " wouldnt work at all, and I would have to rebuild the parsing module from the ground up. However, the log files are still perfectly able parsed. -Patrick On Thu, May 8, 2008 at 11:10 AM, Nephyrin Zey <[EMAIL PROTECTED]> wrote: > I disagree. Log parsers, like all programs, that take input which we > already know the limits of, are responsible for parsing it to the best > of their ability. Just because quotes 'should' be escaped somehow or > blocked in this log format, doesn't mean that they are, or ever have > been. Nobody is having a problem with mister > > "player2<2><STEAM_0:0:2222><Red>") (position1 "2 2 2") (player2 > "player1" joining games and making certain logging situations > ambiguous. The issue is parsers treating quotes as the ultimate > delimiters on player names when they have no basis to be. > > So it's valves fault, but writing a parser that doesn't take into > account all possible input isn't acceptable just because 'valve > shouldn't have allowed this'. > > So yes, please institute escaping or filtering for player names, but > your log parsers still are not doing their jobs properly. > > - Neph > > > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlds_linux > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux

