MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
Perl + server query = Help
Perl + server query = Help
Posts: 13
Threads: 3
Joined: Jan 2008
Reputation:
0
01-21-2008, 01:26 AM
(This post was last modified: 02-15-2008, 02:23 AM by prevail .)
Hi!
Does anyone know how to find number of players on a game server? Is it possible to make a script that does this?
Thanks in advance
Posts: 340
Threads: 10
Joined: Jul 2005
Reputation:
0
From the server console? Over a website?
Posts: 61
Threads: 4
Joined: Jul 2007
Reputation:
0
From a website:
Php Class
(You obviously need php knowledge for that but I could help you)
From gameserver:
Take a look at mattie.info
Q: What would an omnipotent computer to?
A: Get rid of humanity!
Posts: 13
Threads: 3
Joined: Jan 2008
Reputation:
0
Hi!
I was thinking from a game server. I'm just wondering how they manage to find the number since interaction between clients and server happens through UDP packets
Thanks for the replies, i'll check it out
Posts: 61
Threads: 4
Joined: Jul 2007
Reputation:
0
They do it on server side, the engine actually knows how many peeps there are (stores it in its internal memory-database)
Q: What would an omnipotent computer to?
A: Get rid of humanity!
Posts: 13
Threads: 3
Joined: Jan 2008
Reputation:
0
02-13-2008, 02:07 AM
(This post was last modified: 02-14-2008, 08:26 PM by prevail .)
d4f Wrote: They do it on server side, the engine actually knows how many peeps there are (stores it in its internal memory-database)
Hi!
I see there is a source query protocol. Has anyone here used this with Perl? Or is there anyone with perl knowledge that can help me out?
Posts: 13
Threads: 3
Joined: Jan 2008
Reputation:
0
02-19-2008, 04:17 AM
(This post was last modified: 02-19-2008, 04:22 AM by prevail .)
Bump
I figured out how to retrieve the a2s_info packet respons the server sends back, but not how to get information like max players, server name etc from the packet. Can someone help me with this as I've spent countless of hours googeling and posting on other forums.
This is how it is done in PHP (below), but i have to do this in
Perl .
PHP Code:
<?php
function getServerData ()
{
$this -> writeData ( $this -> getQuery ( "A2S_INFO" ));
$this -> getData ( "byte" );
$this -> getString ();
$this -> serverData [ 'hostname' ] = $this -> getString ();
$this -> serverData [ 'map' ] = $this -> getString ();
$this -> getString ();
$this -> serverData [ 'mod' ] = $this -> getString ();
$this -> serverData [ 'players' ] = $this -> getData ( "byte" );
$this -> serverData [ 'maxplayers' ] = $this -> getData ( "byte" );
$this -> getData ( "byte" );
$this -> serverData [ 'servertype' ] = ( chr ( $this -> getData ( "byte" )) == "d" ) ? "Dedicated" : "Listen" ;
$this -> serverData [ 'server_os' ] = ( chr ( $this -> getData ( "byte" )) == "w" ) ? "Windows" : "Linux" ;
$this -> serverData [ 'password' ] = $this -> getData ( "byte" );
$this -> getData ( "byte" );
$this -> getString ();
$this -> getString ();
$this -> getString ();
$this -> getData ( "long" );
$this -> getData ( "long" );
$this -> getData ( "byte" );
$this -> getData ( "byte" );
$this -> serverData [ 'vac' ] = $this -> getData ( "byte" );
$this -> getData ( "byte" );
}
Posts: 3,906
Threads: 404
Joined: Oct 2007
Reputation:
21
I will try to forward a link off to LART next time I see him online.
~ Mooga ...w00t? -
SRCDS.com on Twitter
Please do not PM me for server related help
fqdn Wrote: if you've seen the any of the matrix movies, a game server is not all that different. it runs a version of the game that handles the entire world for each client connected. that's the 2 sentence explanation.
Posts: 13
Threads: 3
Joined: Jan 2008
Reputation:
0
02-19-2008, 05:05 AM
(This post was last modified: 02-20-2008, 09:30 PM by prevail .)
Mooga Wrote: I will try to forward a link off to LART next time I see him online.
Hi!
Thanks! I appreciate you doing that!
Edit: Problem solved
Users browsing this thread: 1 Guest(s)