No more console "result pls" spam

Forum for discussing ET TV

Moderators: Forum moderators, developers

Post Reply
chromepeer
Posts: 2
Joined: Sun Oct 29, 2006 9:56 am

No more console "result pls" spam

Post by chromepeer »

These two commands in next version of ettv would be very nice:

>/matchtime
>29 oct 2006 17:35:56 UTC

>/matchstate
>1st map, 2nd stage, timetobeat 12:56

matchtime is, ofcourse, the time when watched events took place, not the begining of the match. these data shouldn't be reset with match reset.

is it doable?
jump3r
Posts: 159
Joined: Sun Apr 18, 2004 1:11 am

Re: No more console "result pls" spam

Post by jump3r »

chromepeer wrote:>/matchstate
>1st map, 2nd stage, timetobeat 12:56
how would server recognise if the current map is first or second or ...?
Syd
Posts: 7
Joined: Tue Oct 25, 2005 6:22 am

Post by Syd »

arni's ETTVd scripts tell you both..
Xeon_vl
Posts: 33
Joined: Fri Feb 10, 2006 3:44 am

Post by Xeon_vl »

his ettvd scripts are php based. It starts counting on match start.
User avatar
arni
Posts: 188
Joined: Sun Feb 20, 2005 2:32 pm

Post by arni »

Xeon_vl wrote:his ettvd scripts are php based. It starts counting on match start.
yes, actually it counts the demo files since start of match.

someone recently discovered that recent versions of php4 also run the scripts just fine - so on most recent distros you dont even need to install php5 anymore :-)

(more recents: recent recent recent)
Image
chromepeer
Posts: 2
Joined: Sun Oct 29, 2006 9:56 am

Re: No more console "result pls" spam

Post by chromepeer »

jump3r wrote:
chromepeer wrote:>/matchstate
>1st map, 2nd stage, timetobeat 12:56
how would server recognise if the current map is first or second or ...?
If you don't want to rely on PHP scripts, you can read 3 environment variables, 2 of them could be set by referees:

Code: Select all

  match_mapcount
  match_stagecount
and 3rd

Code: Select all

  match_timetobeat
can be set automaticly. It is not your problem if refs dont set variables correctly. Once the community start using them, any decent admin would set them right - its just a handfull of commands during the match. Important thing is that those variables shouldn't be reseted by match reset, refs reset matches often for millions of reasons - miss-spawn at start etc.
Post Reply