Server Webpage

Muffen_ManMuffen_Man Join Date: 2003-09-26 Member: 21227Members
<div class="IPBDescription">Server Status WebPage</div> Is there anyway you can have a webpage running to show the current server status. Like how many players there are, the current map...just general stuff like that in realtime? Im running Psychostats, but i update that once a day. Is there any thing that can do it in real time by just showing number of players and current map?

I'm running a dedicated server at my university, so bandwidth isnt a problem.

Comments

  • DepotDepot The ModFather Join Date: 2002-11-09 Member: 7956Members
    There is a method to have HLSW posted as a webpage.
  • Muffen_ManMuffen_Man Join Date: 2003-09-26 Member: 21227Members
    How does it work, consider that im a totaly n00b, ok maybe not so much a n00b but close...explain how i get it on to the webserver. Im running the Webserver and dedicated server off one PC
  • BryBry Join Date: 2003-01-23 Member: 12609Members
    edited September 2003
    Yes this can be easily done:

    I recommend webmod which you can get from here:
    <a href='http://djeyl.net/w.php?language=english' target='_blank'>http://djeyl.net/w.php?language=english</a>

    However, you may wish to integrate this into your psychostats like:


    <a href='http://www.brywright.co.uk/ns/stats/live.php' target='_blank'>http://www.brywright.co.uk/ns/stats/live.php</a>
    (i havent got my psychostats workign with steamids yet due to the logging problems <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html/emoticons/sad.gif' border='0' style='vertical-align:middle' alt='sad.gif'><!--endemo--> )


    After installign webmod do this :

    In the header.php file in your theme directory add:

    1)

    <!--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-->
    <td> <a href="/stats/live.php">Live Stats</a> </td>
    <!--c2--></td></tr></table><span class='postcolor'><!--ec2-->

    after this
    <!--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-->
    <table width="100%" border="0">
    ?<tr class="listhead" align="center">
    <!--c2--></td></tr></table><span class='postcolor'><!--ec2-->

    so it looks something like

    <!--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-->
    <table width="100%" border="0">
    ?<tr class="listhead" align="center">
    <td> <a href="/stats/live.php">Live Stats</a> </td>
    ? ?<td<?=(ereg('srvstats\.php$',$PHP_SELF)) ?? ' class="selhead"' : ''?>><a class="headlink" href="srvstats.php">Server Stats</a></td>
    <!--c2--></td></tr></table><span class='postcolor'><!--ec2-->

    2) Download the attached file, edit it with notepad or similar and find near the bottom the line

    <!--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-->
    <iFrame frameborder="0" height="1800" width="630" src="http://ENTER IP FOR WEBMOD HERE">
    <!--c2--></td></tr></table><span class='postcolor'><!--ec2-->
    where it says ENTER IP FOR WEBMOD HERE delete this and add the url to your webmod (should be the same as your server ip if not read webmoad readme)

    Then copy this file to your themefolder in your psychostats instalaltion

    3) In the theme.cfg file in your themes folder you should have a line similar to:

    <!--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-->
    index.html = index.php, weaponlist.php, awardlist.php, srvstats.php, cheaters.php, faq.php, motd.txt
    <!--c2--></td></tr></table><span class='postcolor'><!--ec2-->

    change it so it reads:

    <!--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-->
    index.html = index.php, weaponlist.php, awardlist.php, srvstats.php, cheaters.php, faq.php, motd.txt , live.php
    <!--c2--></td></tr></table><span class='postcolor'><!--ec2-->

    4)Run pyschostats and it should now work fine <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->

    (This is documented on the pyschostats site but it can get a bit confusing so i have explained it here as well)
  • H_U_M_PH_U_M_P Join Date: 2002-11-05 Member: 7013Members
    For our webpage we use www.serverspy.net <a href='http://www.serverspy.net/site/search/server.html?a=69.56.131.86:27025&g=0' target='_blank'>http://www.serverspy.net/site/search/serve...31.86:27025&g=0</a>

    With this you can show your server rank in NS and out of all HL servers. Players in game/game time ect.

    Or the list of servers by rank <a href='http://www.serverspy.net/site/serverranks/?g=0&ty=ns&country=ssany&sname=&Submit=Show+Servers' target='_blank'>http://www.serverspy.net/site/serverranks/...it=Show+Servers</a>

    Take a look at this. Should be easy. <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif'><!--endemo--> <!--emo&::nerdy::--><img src='http://www.unknownworlds.com/forums/html/emoticons/nerd.gif' border='0' style='vertical-align:middle' alt='nerd.gif'><!--endemo--> <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif'><!--endemo-->
  • Muffen_ManMuffen_Man Join Date: 2003-09-26 Member: 21227Members
    Thnax, i'll give it a try!
  • Muffen_ManMuffen_Man Join Date: 2003-09-26 Member: 21227Members
    edited September 2003
    I got the webmod to work (wow), but i cannt get the psychostats to update the header? i set the theme to the php theme, but still doesnt add the extra header <!--emo&???--><img src='http://www.unknownworlds.com/forums/html/emoticons/confused.gif' border='0' style='vertical-align:middle' alt='confused.gif'><!--endemo-->

    And how did yoou get a map pic on to it as well?
  • BryBry Join Date: 2003-01-23 Member: 12609Members
    Sorry i gtg work now
    If you coudl email me your theme.cfg from your theme fodler and your header.php to bry@brywright.co.uk ill take a looka s sono as ig et back tonight
  • cy8zcy8z Join Date: 2003-04-01 Member: 15102Members
    do you mean something like mine?
    <a href='http://www.tekwar.org/status.php' target='_blank'>http://www.tekwar.org/status.php</a>

    I would try using psychoquery. Instant updates.
    Webmod is nice, but I found it easier to use psychoquery <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
    <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif'><!--endemo-->
  • DepotDepot The ModFather Join Date: 2002-11-09 Member: 7956Members
    This is off topic but <!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->i havent got my psychostats workign with steamids yet due to the logging problems  <!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->PsychoStats works fine with STEAM IDs as verified by <a href='http://calvintosh.ath.cx:8081/dominant/psychostats/index.html' target='_blank'>viewing my server's stats</a>.

    In response to the topic I shall reply shortly with how to post a HLSW webpage.
  • DepotDepot The ModFather Join Date: 2002-11-09 Member: 7956Members
    The instructions for setting up your HLSW as a webpage are <a href='http://readme.hlsw.net/eng/index.php?section=start' target='_blank'>viewable here</a> Click on "hlsw:// urls"
    "
  • CheesyPetezaCheesyPeteza Join Date: 2002-11-24 Member: 9784Members, NS1 Playtester, Constellation
    I can give you the php code for something like <a href='http://www.yoclan.com/yons.php' target='_blank'>this</a> if you wish.
  • Muffen_ManMuffen_Man Join Date: 2003-09-26 Member: 21227Members
    Any help would be great!

    Also do you maybe have any other cool tools/plugins for NS.

    And how can the marines also win a bit more?
  • verboseverbose Join Date: 2002-11-25 Member: 9968Members, Constellation
    <!--QuoteBegin--Muffen Man+Oct 2 2003, 05:33 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Muffen Man @ Oct 2 2003, 05:33 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> And how can the marines also win a bit more? <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
    There's a plugin floating around that automatically electrifies marine res nodes and TFs right after they're built. Helps pub marines and inexperienced commanders a ton. It's a pretty big balance shift though, so make sure your marines aren't too good; they could easily dominate unorganized aliens with that much help.
  • DepotDepot The ModFather Join Date: 2002-11-09 Member: 7956Members
    <a href='http://www.unknownworlds.com/forums/index.php?act=ST&f=8&t=43534' target='_blank'>This Topic</a> lists a lot of NS plugins. Onosblocker is probably your best bet, as you can set how many players and how many hives you need for onos or fades.
  • BigBullBigBull Join Date: 2003-04-02 Member: 15123Members
    My fav server has the status thing. www.guns4back2school.com
  • ZycaRZycaR Join Date: 2002-11-12 Member: 8263Members
    look here .. php code for something like #yo page <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
    no plugins .. only PHP

    <a href='http://www.resourcecode.de/view.php?id=774' target='_blank'>http://www.resourcecode.de/view.php?id=774</a>
  • DashelDashel Join Date: 2003-03-24 Member: 14847Members
    Personally, I prefer the Gameserver PHP-Nuke plugin. You can check it out here:

    <a href='http://games.gtw.net/modules.php?name=Gameserver&type=detail&serverid=1' target='_blank'>http://games.gtw.net/modules.php?name=Game...tail&serverid=1</a>
Sign In or Register to comment.