Oh, and don't get me wrong. The logging system could be made much
better. Making a character that surrounds data fields and CANNOT be
placed into any field supplied by a user (name mainly). It would make
the whole process a lot less painful (believe me I spent a lot of time
trying to break my own parsing code).

Ideally you would have player info as a unique format. As it is now is
fine, but you'd want to lock out quotes as a usable character.

You could then have something like:

EVENTCODE,NUMPLAYERS,PLAYER1,PLAYER2......,event specific args (as
many as you'd expect).
So perhaps the above example of mine might be:

ATTACK,2,"player1<21><STEAM_0:1:345><TERRORIST>","player2<23><STEAM_0:1:5432><CT>","weapon=deagle","damage=18","damage_armor=3","health=82","armor=97"

But, at the end of the day - we can't expect the format to be changed
by valve overnight (or even ever) so.. You just have to work your best
at writing a parser that does the best it can and sometimes has to
discard attempts at forgery.

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux

Reply via email to