1.01-serverfilter Script For Ase

PolygonPolygon Join Date: 2002-11-02 Member: 3971Members
<div class="IPBDescription">Not using the server-name method</div> Hello,

I've heard on IRC that there is already a script doing this, but I also heard that it looks in the server-name for the term "*1.01*". While this will work for most servers it might accidentially filter out some servers which are actually version 1.01 but don't have it in their name. I made a little script for ASE that will filter out only the 1.0-servers leaving all 1.01-servers inside (I hope). The most ns_xx servervars disappeared with 1.01 and so a script checking for one of them should do fine:

Half-Life\Natural Selection\Server 1.01
Group: NSVER2
Mutex: NSVER2
1 if ns_alienrespawntime > "0" remove

BTW: Is there a command that just checks for the existance of a servervar?

Generally I would suggest that the programmers build in a servervar giving out the server-version in the next patch/release/whatever. Shouldn't be too difficult I guess.

Have fun.. <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo-->

Comments

  • PolygonPolygon Join Date: 2002-11-02 Member: 3971Members
    These here might also come in useful when wishing to show only servers running a special map:

    <!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->Half-Life\Natural Selection\ns_bast
    Mutex: NSMAP
    2 if map ~!= "ns_bast" remove

    Half-Life\Natural Selection\ns_caged
    Mutex: NSMAP
    2 if map ~!= "ns_caged" remove

    Half-Life\Natural Selection\ns_eclipse
    Mutex: NSMAP
    2 if map ~!= "ns_eclipse" remove

    Half-Life\Natural Selection\ns_hera
    Mutex: NSMAP
    2 if map ~!= "ns_hera" remove

    Half-Life\Natural Selection\ns_nancy
    Mutex: NSMAP
    2 if map ~!= "ns_nancy" remove

    Half-Life\Natural Selection\ns_nothing
    Mutex: NSMAP
    2 if map ~!= "ns_nothing" remove

    Half-Life\Natural Selection\ns_tanith
    Mutex: NSMAP
    2 if map ~!= "ns_tanith" remove<!--c2--></td></tr></table><span class='postcolor'><!--ec2-->

    Have fun
  • GWARGWAR Join Date: 2002-11-01 Member: 2297Members, Contributor
    Very cool, ive been looking for these <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin.gif' border='0' valign='absmiddle' alt='biggrin.gif'><!--endemo--> thx
Sign In or Register to comment.