Server status on website [message #234622] |
Sun, 17 December 2006 09:26 |
DodgeThis
Messages: 29 Registered: December 2006
Karma: 0
|
Recruit |
|
|
Hi there,
I'm wondering if someone knows a script to show server info on a website. (online/offline status, player status, map etc)
Thanks in advance,
Robin (a.k.a. DodgeThis)
|
|
|
|
|
|
|
|
|
|
|
|
Re: Server status on website [message #234961 is a reply to message #234622] |
Tue, 19 December 2006 06:53 |
|
Creed3020
Messages: 1438 Registered: February 2003 Location: Toronto, Canada
Karma: 0
|
General (1 Star) |
|
|
Well that took all of 5 minutes to find it:
Quote: | FDS_PostInfo - Version 1.1
Author - Tom "Dante" Anderson
Fixes:Changes in 1.1
Fixed an Arithmitic function problem that was causing some IP addresses to error out.
Changed the Interval from minutes to seconds, I would recommend changing your time before starting it up.
******************************************************************************** *************************************************
Use this program to display your servers current game_info on a web page.
This application will HTTP POST the game_info and your remote admin pass to a web page, you can use
the remote admin pass to error check to see that it isn't being spoofed, or just omit it
(for the example i used this method).
To install, simply plop these files in a directory with the fdstalk.dll (you WILL need the .Net
framework available from Microsoft Windows Update (www.windowsupdate.com).).
Then open up the app, set the settings, and you are good to go, just click on File->Run and it will
update to the specified web page.
You will need to have a file that you specify from your upload page (example is stats_upload.php)
that is 777 so that the stats can be written, or just dump to a db, however you choose.
INI File Explained:
[Settings]
Remote admin IP from your server.ini or gamespy.ini
RemoteAdminIP=127.0.0.1
remote admin password from your server.ini or gamespy.ini
RemoteAdminPass=33333333
remote admin port from your server.ini or gamespy.ini
RemoteAdminPort=5000
local port to use for the UDP remote administration (fdstalk.dll)
LocalAdminPort=5003
how often it updates in minutes
UpdateInterval=1
optional message to display when it updates
NotThereMessage=Updating Server Stats...
page to post the information to, see the included php files for protocol
HTTPPostPage=http://www.renevo.com/renfds_stats/stats_upload.php
Any problems, just check out the RenEvo forums and ask away (http://www.renevo.com/)
Tom "Dante" Anderson
|
[Updated on: Tue, 19 December 2006 06:54] Report message to a moderator
|
|
|
|
|
|
|
|
Re: Server status on website [message #235021 is a reply to message #234622] |
Tue, 19 December 2006 12:06 |
DodgeThis
Messages: 29 Registered: December 2006
Karma: 0
|
Recruit |
|
|
I first editted the file /stats_upload.php and changed the settings (just change the remotepass)
After that, I uploaded the files from the map ./web/ to my webserver and CHmodded /stats_upload.php it to 777...
then followed the instructions for the ini file and clicked on file>run.
And i recommend you to empty the box with the message which will be send to the FDS, cuz else it spams like every 1-10 secs a message
If you want to view your serverinfo just go to http://yourdomain.com/stats.php
[Updated on: Tue, 19 December 2006 12:11] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|