2017 © Pedro Peláez
 

library q3tool

Quake 3 Server interaction for PHP

image

jester/q3tool

Quake 3 Server interaction for PHP

  • Tuesday, June 11, 2013
  • by jester
  • Repository
  • 5 Watchers
  • 3 Stars
  • 26 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 6 Forks
  • 2 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Q3Tool

PHP class for working with ioquake3-based game servers., (*1)

Overview

Q3Tool is a simple PHP class that allows developers to quickly and easily retrieve information from, or send remote commands (RCON) to game servers that are based on the Quake 3 (ioq3) engine. It was developed for, and has been extensively used with, Urban Terror servers, but should work for just about anything using ioq3 (or even just the same protocol)., (*2)

Usage

// Using composer (https://packagist.org/packages/jester/q3tool)
require('vendor/autoload.php');

// Or stand-alone
require('q3tool.php');

// Default port, no RCON
$tool = new q3tool("myclan.org");

// Non-default port, no RCON
$tool = new q3tool("myclan.org", 27961);

// Including RCON
$tool = new q3tool("myclan.org", 27960, "super1337password");

// Get a list of players as an array
$players = $tool->get_info("playerlist");

// Or just how many players are on
$player_num = $tool->get_info("players");

// Sending an RCON command
$response = $tool->send_rcon('bigtext "Hello all!"');

See DATA_TYPES for more information on retrieving the information you want., (*3)

Known Issues

Getting the console response from sending an RCON command is unreliable at best. This seems to be an issue with ioq3 truncating the reply when sent over the wire. I have not yet figured out a solution. Issuing commands, however, does work., (*4)

The Versions

11/06 2013

dev-master

9999999-dev http://github.com/c9jester/q3tool

Quake 3 Server interaction for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Avatar jester
by Teknix

game q3 quake ioq3

11/06 2013

0.2.1

0.2.1.0 http://github.com/c9jester/q3tool

Quake 3 Server interaction for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Avatar jester
by Teknix

game q3 quake ioq3