pull/29/head
xPaw 11 years ago
parent 13b291ab16
commit 266cf6afe7

@ -1,7 +1,7 @@
# PHP Source Query # PHP Source Query
## Description ## Description
This class was created to query game server which use the Source query protocol, this includes all source games, half-life 1 engine games and Call of Duty: Modern Warfare 3 This class was created to query game server which use the Source query protocol, this includes all source games, and all the games that implement Steamworks.
The class also allows you to query servers using RCON although this only works for half-life 1 and source engine games. The class also allows you to query servers using RCON although this only works for half-life 1 and source engine games.
@ -17,8 +17,8 @@ The class also allows you to query servers using RCON although this only works f
* [The Ship](http://store.steampowered.com/app/2400/) * [The Ship](http://store.steampowered.com/app/2400/)
* [Dino D-Day](http://store.steampowered.com/app/70000/) * [Dino D-Day](http://store.steampowered.com/app/70000/)
* [Nuclear Dawn](http://store.steampowered.com/app/17710/) * [Nuclear Dawn](http://store.steampowered.com/app/17710/)
* [Just Cause 2: Multiplayer Mod](http://store.steampowered.com/app/259080/)
* [Call of Duty: Modern Warfare 3](http://store.steampowered.com/app/115300/) * [Call of Duty: Modern Warfare 3](http://store.steampowered.com/app/115300/)
* [Arma 3](http://store.steampowered.com/app/107410/) *(add +1 to the server port, their implementation also violates Source query protocol spec.)*
* [Minecraft](http://www.minecraft.net/) **(RCON ONLY!)** * [Minecraft](http://www.minecraft.net/) **(RCON ONLY!)**
* *and many other games that implement Source Query Protocol* * *and many other games that implement Source Query Protocol*

@ -350,7 +350,8 @@
case self :: GETCHALLENGE_ALL_CLEAR: case self :: GETCHALLENGE_ALL_CLEAR:
{ {
$this->Socket->Write( self :: A2S_PLAYER, $this->Challenge ); $this->Socket->Write( self :: A2S_PLAYER, $this->Challenge );
$this->Socket->Read( ); $this->Socket->Read( 14000 ); // Moronic Arma 3 developers do not split their packets, so we have to read more data
// This violates the protocol spec, and they probably should fix it: https://developer.valvesoftware.com/wiki/Server_queries#Protocol
$Type = $this->Buffer->GetByte( ); $Type = $this->Buffer->GetByte( );

@ -59,7 +59,7 @@
<div class="jumbotron"> <div class="jumbotron">
<h1>Source Query PHP Class</h1> <h1>Source Query PHP Class</h1>
<p>This class was created to query game server which use the Source query protocol, this includes all source games, half-life 1 engine games and Call of Duty: Modern Warfare 3</p> <p>This class was created to query game server which use the Source (Steamworks) query protocol.</p>
<p> <p>
<a class="btn btn-large btn-primary" href="http://xpaw.me">Made by xPaw</a> <a class="btn btn-large btn-primary" href="http://xpaw.me">Made by xPaw</a>
@ -114,7 +114,9 @@
<table class="table table-bordered table-striped"> <table class="table table-bordered table-striped">
<thead> <thead>
<tr> <tr>
<th>Players</th> <th>Player</th>
<th>Frags</th>
<th>Time</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -122,6 +124,8 @@
<?php foreach( $Players as $Player ): ?> <?php foreach( $Players as $Player ): ?>
<tr> <tr>
<td><?php echo htmlspecialchars( $Player[ 'Name' ] ); ?></td> <td><?php echo htmlspecialchars( $Player[ 'Name' ] ); ?></td>
<td><?php echo $Player[ 'Frags' ]; ?></td>
<td><?php echo $Player[ 'TimeF' ]; ?></td>
</tr> </tr>
<?php endforeach; ?> <?php endforeach; ?>
<?php else: ?> <?php else: ?>

Loading…
Cancel
Save