Server Webpage
Muffen_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.
I'm running a dedicated server at my university, so bandwidth isnt a problem.
Comments
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)
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-->
And how did yoou get a map pic on to it as well?
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
<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-->
In response to the topic I shall reply shortly with how to post a HLSW webpage.
"
Also do you maybe have any other cool tools/plugins for NS.
And how can the marines also win a bit more?
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.
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>
<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>