Server Webpage
Muffen_Man
Members Join Date: 2003-09-26 Member: 21227Posts: 9

Server Status WebPage
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.
Do YOU Know The Muffen Man?
Comments
modNS Forums - NS1 and NS2: We Wrote The Book On NS Modding
I recommend webmod which you can get from here:
http://djeyl.net/w.php?language=english
However, you may wish to integrate this into your psychostats like:
http://www.brywright.co.uk/ns/stats/live.php
(i havent got my psychostats workign with steamids yet due to the logging problems
After installign webmod do this :
In the header.php file in your theme directory add:
1)
<td> <a href="/stats/live.php">Live Stats</a> </td>
after this
<table width="100%" border="0">
?<tr class="listhead" align="center">
so it looks something like
<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>
2) Download the attached file, edit it with notepad or similar and find near the bottom the line
<iFrame frameborder="0" height="1800" width="630" src="http://ENTER IP FOR WEBMOD HERE">
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:
index.html = index.php, weaponlist.php, awardlist.php, srvstats.php, cheaters.php, faq.php, motd.txt
change it so it reads:
index.html = index.php, weaponlist.php, awardlist.php, srvstats.php, cheaters.php, faq.php, motd.txt , live.php
4)Run pyschostats and it should now work fine
(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 http://www.serverspy.net/site/serverranks/...it=Show+Servers
Take a look at this. Should be easy.
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 [email protected] ill take a looka s sono as ig et back tonight
http://www.tekwar.org/status.php
I would try using psychoquery. Instant updates.
Webmod is nice, but I found it easier to use psychoquery
Never Knows Best!
In response to the topic I shall reply shortly with how to post a HLSW webpage.
modNS Forums - NS1 and NS2: We Wrote The Book On NS Modding
"
modNS Forums - NS1 and NS2: We Wrote The Book On NS Modding
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.
modNS Forums - NS1 and NS2: We Wrote The Book On NS Modding
no plugins .. only PHP
http://www.resourcecode.de/view.php?id=774
http://games.gtw.net/modules.php?name=Game...tail&serverid=1
GTW Game Hosting