Raised This Month: $51 Target: $400
 12% 

HLDS server info to textfile


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
calstap
Junior Member
Join Date: Sep 2009
Old 10-10-2009 , 11:39   HLDS server info to textfile
Reply With Quote #1

I need something that reads info from my hlds server and writes it to .txt so I can use that textfile to show serverinfo on my website.

It would be perfect if all these thing could be at .txt:
-Players now/Max players
-Player names
-Player deaths+kills
-How long player have been on server
-Current Map
-Server fps
calstap is offline
Redfalcon
BANNED
Join Date: Sep 2009
Location: Prison Break
Old 10-10-2009 , 12:04   Re: HLDS server info to textfile
Reply With Quote #2

www.gametracker.com

www.game-monitor.com
Redfalcon is offline
Send a message via MSN to Redfalcon
calstap
Junior Member
Join Date: Sep 2009
Old 10-10-2009 , 16:06   Re: HLDS server info to textfile
Reply With Quote #3

Nope.

I want to get it directly from my HLDS. From gamemonitor it doesnt update it every second but with some program it could update it many times each second.
And the 2nd thing is that I dont wanna be dependent on some other websites.
calstap is offline
8088
Veteran Member
Join Date: Jan 2008
Old 10-10-2009 , 21:03   Re: HLDS server info to textfile
Reply With Quote #4

Have a look at this thread.
__________________
steamID converter with OpenSearch browser plugin
8088 is offline
bluechester
AlliedModders Donor
Join Date: Nov 2008
Old 10-10-2009 , 21:17   Re: HLDS server info to textfile
Reply With Quote #5

Quote:
Originally Posted by calstap View Post
I need something that reads info from my hlds server and writes it to .txt so I can use that textfile to show serverinfo on my website.

It would be perfect if all these thing could be at .txt:
-Players now/Max players
-Player names
-Player deaths+kills
-How long player have been on server
-Current Map
-Server fps
Text file is not an option, you would have to use php. Exolent has posted the link. Take a look at it
bluechester is offline
8088
Veteran Member
Join Date: Jan 2008
Old 10-10-2009 , 21:22   Re: HLDS server info to textfile
Reply With Quote #6

You can write to a text file with PHP...
__________________
steamID converter with OpenSearch browser plugin
8088 is offline
calstap
Junior Member
Join Date: Sep 2009
Old 10-17-2009 , 12:49   Re: HLDS server info to textfile
Reply With Quote #7

Well, I made a program that does it. It checks the infos by sending request thru UDP to server and server sends me infos back.

It also saves .txt files to any location u want so u can include em with php. Going to make it better when i have time.

Download it if you want...
http://calstap.dy.fi/ohjelmat/ReadHLDS.exe

Last edited by calstap; 10-27-2009 at 08:43.
calstap is offline
calstap
Junior Member
Join Date: Sep 2009
Old 10-17-2009 , 12:51   Re: HLDS server info to textfile
Reply With Quote #8

E: Doublepost... "Service temporarily unavaible"

Last edited by calstap; 10-17-2009 at 12:54.
calstap is offline
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 10-17-2009 , 14:08   Re: HLDS server info to textfile
Reply With Quote #9

Reading it every second and just blindly writing it isn't a great idea.. the volume of the data would be absurd. I'd suggest either reading it every few minutes, or just recording when data has changed.
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
calstap
Junior Member
Join Date: Sep 2009
Old 10-17-2009 , 14:15   Re: HLDS server info to textfile
Reply With Quote #10

You can change interval to any you want. Minium is 1 sec.
calstap is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:54.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode