
Some tcsh scripts to run HL servers under linux and a perl script to
parse the console output to make the server console a nice place to be
including making the status command one per line so talking to/kicking/
admining players is much easier. (it also makes a single readable log
file of all output, and can be used to make per map specific configs).
People who already have good setups can just pick and choose parts.
Feedback appreciated as these have been taken out of a much more
complicated system just so people can have a quick simple script setup
without having to understand all the scripts/programs... especially screen.

You need tcsh, perl and screen installed to use them ALL, but
e.g. you don't need screen if you just use the Loop and log scripts. 

TO INSTALL:

1) Expand the zip to your halflife directory...  better to not do
   this as root.. but as the user that will be running the server.

2) Turn logging on all your servers. 
   One way to do that is edit your server.cfgs and add 'log on'.

3) Read and edit all files you want to use. (READ MORE SCRIPT DETAIL BELOW).

4) Kill current servers.

5) Run one or both of the screen scripts (./ScreenHLTFC, ./ScreenHLDM).
   (to run both you must edit ip or port in one of the loop scripts)

6) Your Done.
   Use './con' to use your consoles. Use 'say' to talk to players.
   Type in 'status' for example and marvel at the pretty output ;)

NOTES:
_If_ you want the per-map cfg's to be run... then edit the server.cfg
of the server concerned, and add to the end the line: 'exec map.cfg'
e.g. if you're running LoopHLTFC edit tfc/server.cfg
and add that line to the end. Then create files for your maps e.g.
edit tfc/well.cfg with your specific time/fraglimit mp_teamplay lines.

You can also watch the single log file created by using e.g.
'tail -f valve/log' or even better 'less valve/log' and hit 'F'.

If you want a useful log its a good idea to crontab a status
command at regular intervals so you know who did what from where.
I'll release my rcon perl script shortly.

COPYRIGHT:
If you have a patch then email it and I'll include it
with recognition......., don't just steal code and redistribute it
without permission, that aint how free code works... :)

bugs/abuse/ideas to hllog@rod.net

KK    (Rod May)

-------------------------------------------------------------------
ScreenHLDM
ScreenHLTFC

Scripts to run the Loop scripts in an auto-detaching screen which you
can re-attach to at any time (eg after telnet-ing in). Just use e.g.:
./ScreenHLTFC
YOU MUST HAVE SCREEN INSTALLED!
you can then use e.g. './con tfc' (or just ./con for a list)
to re-attach to the screen... you use ESC to detach again.
-------------------------------------------------------------------
LoopHLDM
LoopHLTFC

Scripts to run a HL server in a loop in case of crashes.
You should read (and possibly edit) them!
NOTES: if you're going to run both you must change the ip or port in one!
       even if you don't use these, read it to see how to setup log script.
use e.g. './LoopHLTFC' (only if you're not using the screen scripts) 
or MUCH better use screen scripts above.  YOU MUST HAVE TCSH INSTALLED!
-------------------------------------------------------------------
hllog.pl

Log parser/creator
see Loop scripts to see how to set it up. If you get a lot of
DNS-TIMEOUTS then change $dodns to 0 at the top of the hllog.pl script.
YOU MUST HAVE PERL INSTALLED! and check the first line of the
script to make sure this is the location of perl (RH users are ok).
-------------------------------------------------------------------
con		allows you to easily re-attach to screens e.g. './con tfc'
screenrc	screen setup file (Screen scripts use it)
