| View previous topic :: View next topic |
| Author |
Message |
Wannabe Voice
Joined: 10 Feb 2006 Posts: 17
|
Posted: Thu May 03, 2007 8:06 pm Post subject: HLSTATS (Version 1 ALPHA) |
|
|
Yes you read correctly this is alpha, this is a script provided to prove that this IS possible, and to provide a base code for users who wish to complete there own, its currently setup for NS not CS, but it should give you a good idea of where to begin.
I warn you now, that iam not a good tcl coder! and you will prolly be able to impove this code massivly, however i didnt see the point leaving it sat on my HDD when others could possibly use it.
Download
I wont have much time to work on this, as im working on another project for someone, however if you really need help, drop me a pm on the forums or leave a post here and ill see if i can help |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Thu May 03, 2007 8:29 pm Post subject: |
|
|
Just made a quick skim through the script and I noticed this mistake:
| Code: | } elseif {$backref == 1} {
regexp {player=(.*?)">} $::html match2 plid
unset ::html
urlcheck $plid 2
# variable $lines is a list containing the html source
set notFound 1
set lines [split $::html \n] |
You're using $::html although you have unset it; this will definitely cause a Tcl error. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
Wannabe Voice
Joined: 10 Feb 2006 Posts: 17
|
Posted: Fri May 04, 2007 11:11 am Post subject: |
|
|
| Actually the command urlcheck $plid 2 will set html to something new, the unset just ensures its empty. |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Fri May 04, 2007 11:35 am Post subject: |
|
|
| Wannabe wrote: | | Actually the command urlcheck $plid 2 will set html to something new, the unset just ensures its empty. |
Ah then my bad, didn't notice that detail. However, the unset is not needed (it might cause an error anyway if it doesn't exist). _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Fri May 04, 2007 5:48 pm Post subject: |
|
|
| Just curious what hlstats is and what this script does? =) |
|
| Back to top |
|
 |
Wannabe Voice
Joined: 10 Feb 2006 Posts: 17
|
Posted: Sat May 05, 2007 2:46 pm Post subject: |
|
|
hlstats is a perl script that gathers information from the logs of a hl server, and uses it to generate a stats page for the players who use that server. This script simply allow an irc user to find information from that page and display it in irc.
although right now it only shows one stat (Kills Per Deaths) it wouldnt be too hard to add the rest, and im working on it now and then when i get time |
|
| Back to top |
|
 |
Meropie Voice
Joined: 19 Dec 2007 Posts: 7
|
Posted: Thu Jan 31, 2008 7:45 am Post subject: |
|
|
| sorry for the bump, but anyone can reupload it? |
|
| Back to top |
|
 |
|