Hi, so I looked at it and have a result. You need to look for #Game_connected string followed by 00h and player name, maybe even binary greping demo for #Game_connected would work, but you couldn't obtain player names/player counts this way. I don't know how to write binary/hexa regexps so I keed my mouth shut :).
Here is the format: 00h4Dh 17h01h 23h47h 61h6dh 65h5fh 63h6fh 6eh6eh 65h63h 74h65h 64h00h <name> 00h .M..#Game_connected.<name>. That's the teoretical way, here is the practical: strings hltv.dem | grep "#Game_connected" easy, isn't it? :) Kveri On 29.10.2009, at 10:24, kama wrote: > > Hi! > > Is there an easy way by script to check if there is players in an hltv > demo file? > > Im currently autosaving every round, but if there is noone online or > if > its just 1 player, it doesnt needs to be saved in the archive and > can be > deleted. > > /Bjorn > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list > archives, please visit: > http://list.valvesoftware.com/mailman/listinfo/hlds_linux > > -- > Tato sprava bola prehladana na vyskyt virusov > a nebezpecneho obsahu antivirovym systemom > a zda sa byt cista. > -- Tato sprava bola prehladana na vyskyt virusov a nebezpecneho obsahu antivirovym systemom a zda sa byt cista. _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux

