2017 © Pedro Peláez
 

library q3tool

Quake 3 Server interaction for PHP

image

stormyy/q3tool

Quake 3 Server interaction for PHP

  • Wednesday, May 24, 2017
  • by Stormyy
  • Repository
  • 1 Watchers
  • 0 Stars
  • 156 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 6 Forks
  • 0 Open issues
  • 2 Versions
  • 9 % Grown

The README.md

Q3Tool

PHP class for working with ioquake3-based game servers. Fork from c9jester/q3tool with fixes from avail/q3tool, (*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

24/05 2017

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

24/05 2017

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