SRCDS Steam group


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PHP Socket Help.
#1
I'm looking for help with PHP Sockets, basically all I want to do is query a server to receive information about that server (player count, hostname, etc)

I have been butchering and looking at different php scripts that I have found on the web ( GameQ, AXG, and an old srcds post ). I used to be able to do this with a function from a PHP extension, but it wont run anymore.

What would be really helpful is a simple script that would accomplish this, I have no idea how sockets communicate with game servers, so anything would be helpful.

EDIT: I just found another post with some helpful info. http://forums.srcds.com/viewtopic/4441
Alright, I got what I needed from the above post.
Now what if I wanted to see all the steam ID's playing on a server? Would I have to have the RCON password in order to do this anonymously with sockets?
Looking for a game server? Visit fullfrag.com and pick one up as low as $2.50 / mo!
Reply
#2
(11-14-2009, 09:21 PM)loopyman Wrote:  I'm looking for help with PHP Sockets, basically all I want to do is query a server to receive information about that server (player count, hostname, etc)

I have been butchering and looking at different php scripts that I have found on the web ( GameQ, AXG, and an old srcds post ). I used to be able to do this with a function from a PHP extension, but it wont run anymore.

What would be really helpful is a simple script that would accomplish this, I have no idea how sockets communicate with game servers, so anything would be helpful.

EDIT: I just found another post with some helpful info. http://forums.srcds.com/viewtopic/4441
Alright, I got what I needed from the above post.
Now what if I wanted to see all the steam ID's playing on a server? Would I have to have the RCON password in order to do this anonymously with sockets?

$this->rcon_command("status");
Reply
#3
(11-14-2009, 09:21 PM)loopyman Wrote:  Now what if I wanted to see all the steam ID's playing on a server? Would I have to have the RCON password in order to do this anonymously with sockets?

even HLSW gives you only the steamids if you have the RCON password. so I suppose it's not possible without...
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#4
(11-15-2009, 12:12 AM)BehaartesEtwas Wrote:  
(11-14-2009, 09:21 PM)loopyman Wrote:  Now what if I wanted to see all the steam ID's playing on a server? Would I have to have the RCON password in order to do this anonymously with sockets?

even HLSW gives you only the steamids if you have the RCON password. so I suppose it's not possible without...

Ofcause, it gives you them with "status" and probably implode() or explode() an x amount of characters.
Reply
#5
(11-14-2009, 10:07 PM)realchamp Wrote:  
(11-14-2009, 09:21 PM)loopyman Wrote:  I'm looking for help with PHP Sockets, basically all I want to do is query a server to receive information about that server (player count, hostname, etc)

I have been butchering and looking at different php scripts that I have found on the web ( GameQ, AXG, and an old srcds post ). I used to be able to do this with a function from a PHP extension, but it wont run anymore.

What would be really helpful is a simple script that would accomplish this, I have no idea how sockets communicate with game servers, so anything would be helpful.

EDIT: I just found another post with some helpful info. http://forums.srcds.com/viewtopic/4441
Alright, I got what I needed from the above post.
Now what if I wanted to see all the steam ID's playing on a server? Would I have to have the RCON password in order to do this anonymously with sockets?

$this->rcon_command("status");

Does it require a PHP library ?
Reply
#6
No just standard installation and ofcause a class to read the output from the server.
Reply
#7
(11-15-2009, 12:17 AM)realchamp Wrote:  
(11-15-2009, 12:12 AM)BehaartesEtwas Wrote:  
(11-14-2009, 09:21 PM)loopyman Wrote:  Now what if I wanted to see all the steam ID's playing on a server? Would I have to have the RCON password in order to do this anonymously with sockets?

even HLSW gives you only the steamids if you have the RCON password. so I suppose it's not possible without...

Ofcause, it gives you them with "status" and probably implode() or explode() an x amount of characters.

Would this work without an rcon password?
Looking for a game server? Visit fullfrag.com and pick one up as low as $2.50 / mo!
Reply
#8
No. Smile It should not work without.
Reply
#9
Shit, is there a way to get that info without an RCON password?
Looking for a game server? Visit fullfrag.com and pick one up as low as $2.50 / mo!
Reply
#10
I don't think so.
Reply
#11
Damn, I had a little idea I wanted to try out.
Looking for a game server? Visit fullfrag.com and pick one up as low as $2.50 / mo!
Reply
#12
There should be a way getting it without RCon pass. Because everyones STEAM_ID is public ingame....
Join the Source Dedicated Server Support Group on Steam Community!
Source Dedicated Server (SRCDS)
Free to join, Live support! (When available)

http://forums.srcds.com/viewtopic/5114
Reply
#13
Yea, but is there a way to get it remotely...
Looking for a game server? Visit fullfrag.com and pick one up as low as $2.50 / mo!
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)