1
0
mirror of https://github.com/xPaw/PHP-Source-Query.git synced 2026-05-18 13:53:35 +02:00

Add Arma 3

This commit is contained in:
xPaw
2014-07-21 18:36:25 +03:00
parent 13b291ab16
commit 266cf6afe7
3 changed files with 10 additions and 5 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
# PHP Source Query
## 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.
@@ -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/)
* [Dino D-Day](http://store.steampowered.com/app/70000/)
* [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/)
* [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!)**
* *and many other games that implement Source Query Protocol*
+2 -1
View File
@@ -350,7 +350,8 @@
case self :: GETCHALLENGE_ALL_CLEAR:
{
$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( );
+6 -2
View File
@@ -59,7 +59,7 @@
<div class="jumbotron">
<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>
<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">
<thead>
<tr>
<th>Players</th>
<th>Player</th>
<th>Frags</th>
<th>Time</th>
</tr>
</thead>
<tbody>
@@ -122,6 +124,8 @@
<?php foreach( $Players as $Player ): ?>
<tr>
<td><?php echo htmlspecialchars( $Player[ 'Name' ] ); ?></td>
<td><?php echo $Player[ 'Frags' ]; ?></td>
<td><?php echo $Player[ 'TimeF' ]; ?></td>
</tr>
<?php endforeach; ?>
<?php else: ?>