Website Server Status
I forgot about this. I got it working - here is the code. Check http://www.wdgamers.com/server.php to see what it looks like. I also have another version that works that you can see here http://www.forgottenones.net/index.p...8.100.60:27015
Code:
<?php |
It's hard to see what's wrong with that script exactly,
but I've got a working one on another PC at home, I'll send it to you when I get there... Guess in a week I'll have my serverinfo script ready, which I'll post here aswell. Best regards, Tim |
My scripts (mostly) done
My scripts's now mostly done, meaning it already does
everything it's supposed to do, but if I've got the time I'll expand it some more with off-topic addons. (the useless stuff most people won't even use that is...) It needs PHP3+, MySQL + Database, udp:// Socket and image streaming support to be able to fully function. As for now it does in fact: -Retrieve information from your server every 5 minutes (gather.php) -Show the serverstatus from multiple servers on a webpage (index.php) -Show a small recap all serverstati in a block for a mainpage (small.php) -Let you add and remove servers from a admin-only-webpage (admin.php) -Let you create a personal avatar telling others your playingdetails, in which if there are no details a chosen picture is displayed (avatar.php) -Stuff it does but I forgot for now... (enjoy) The download link is available here: http://www.un4given.nl/tim/serverstatus_sql.zip [3 MB, mostly small pictures from maps] A main page demonstration is available here: http://www.un4given.nl/tim/index.php A small recap demonstration is available here: http://www.un4given.nl/tim/small.php Two avatar demonstrations here: http://www.un4given.nl/tim/avatar.htm The addons I'll be working on allow you to add serverinfo into your server's MOTD and letting you create a signature banner telling forum users where you are currently playing. I'll also be working on writing the serverinformation-recap on the actual mappicture that's being played, which I found better. The addons above could just be plugged in without changing settings so those I'll post here seperately once they're done. Feel free to download / alter / use / distribute these codes, as well as to thank / praise / flame / curse me for making this and posting it here. Best regards, Tim |
If anyone's interested, I can post some code here to display live server status. Instead of the actual webpage doing the querying (which can be a burden if you have lots of visitors), I use a perl-script which will query the server once a minute (can be once every x seconds, depending on the amount of servers to be queried), and insert the results into a MySQL (or whatever flavor) table.
The webpages then pull that info directly from the database. For an example see: http://games.xs4all.nl Currently I'm just displaying simple info. But rules, players scores and filtering can easily be applied. The nice part is that it supports loads of different games, so it's easily extend to other servers should you host any (like I do). This method will also become available as an addon for SourceMod by the way. |
the only problem with your script is that it keeps repeating 11 out of 20 players in the players section, any fixes?
|
Quote:
Quote:
Quote:
As soon as SourceMod supports these features my script will become obsolete. (though I might write a different back-end to it to get the same output) Quote:
If I got you wrong please post a screenshot so I know what you're talking about... Best regards, Tim |
Try this
Code:
<?php |
Re: My scripts (mostly) done
Quote:
|
Re: My scripts (mostly) done
Quote:
So untill I find a not too bad one I think I'll hold off using it... |
heres a SS of the bug i was talking about, i think its showing way too many dynamic images or something, it just goes crazy on it
http://img33.exs.cx/img33/9809/bug3ax.jpg |
| All times are GMT -4. The time now is 03:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.