Menu

SRCDS.py / News: Recent posts

SRCDS.py 2.11 Released

This release fixes a bug in the "status" function and expands its functionality.

In addition, convenience functions have been added to easily ban/unban players, check on cvars, and get information about the server (such as the current map) easily.

RELEASE_2_10 + RELEASE_2_11
* MODIFICATION: the "status" function, rather than returning a list of
dictionaries, now returns two dictionaries. The first dictionary (info) is a dictionary
containing 'version', 'map','players',and 'slots' that can be gleaned from the "rcon
status" command (more to come). The second dictionary is a dictionary of player
dictionaries, with the keys being the user id's. The contents of each individual player
dictionary is the
same as before.
* bugfix: the status() function would fail if there were no players present.
* added capability to run the script directly, and either it will execute its
test suite, or it will run the given rcon command.
* added more keys to the info dictionary (returned by the status function):
fps,cpu_usage,in,out,ip,port,uptime
* added even more keys to the info dictionary (returned by the status functions):
secure,passworded,exe_version,server_os,server_type,current_botcount,max_players,
current_playercount,app_id,game_description,game_directory,current_map,server_name,
protocol_version,hl_version
* bugfix: fixed 'IndexError' in the status function
* added the following functions: ban, unban, restart, version, currentmap, nplayers
* added the cvar patch (function to return the value of a console variable)
* added simple unit testing of the module at the bottom

Posted by dhyams 2008-06-25

SRCDS.py 2.02 Released

Two releases in one day means we're extra-good! (or girlscoutcookie forgot to fully test the last version, which he promises won't happen again.)
RELEASE_2_02
* Fixed details() bug which raised an exception when calculating 'app_id'

Posted by Christopher Munn 2006-03-04

SRCDS.py 2.01 Released

SRCDS.py 2.01 has been released. It contains a few bug fixes but no major changes.

Changlog for 2.01:
* Fixed players() bug which occured when players() was queried while a player was connecting
* Fixed bug in status() where method didn't iterate past the first player
* Fixed details() query to return 'app_id' instead of 'unknown1' and 'unknown2'

Posted by Christopher Munn 2006-03-04

SRCDS.py 2.00 Released, HLDS.py deprecated

A near complete rewrite of SRCDS.py has been released. Version 2.00 supports Valve's new protocol for Source servers, as well as support for Half-Life 1 servers, including automatic detection of the Half-Life version of the server.
Now that SRCDS.py fully supports Half-Life 1 server queries and RCON, HLDS.py is now considered DEPRECATED. SRCDS.py includes a HLDS class which can be used for a (near) drop-in replacement of the HLDS.py package.... read more

Posted by Christopher Munn 2006-02-06

SRCDS.py 2.0 Forthcoming

Thanks to the hard work of girlscoutcookie, SRCDS.py has received a major overhaul. Updates you're about to see include:
* Queries updated to use new request formats, and challenge numbers.
* SRCDS._any_response(QUERY) now supports multi-packet responses.
* SRCDS.init() now supports hostnames as well as ip.
* SRCDS.init() also supports timeout=secs argument, to specify upd/tcp socket timeouts.
* SRCDS now fully supports HL1 servers (with automatic discovery of hl
version), with HLDS subclassed from SRCDS for backwards compatibility
HLDS.
* No longer attempts tcp connection unless required for HL2 RCON
* RCON support almost completely rewritten:
* More accurate RCON password checking for Source
* Fixed multi-packet TCP recv bug from 1.01
* HL1 RCON support added (with automatic discovery of hl version)
* SRCDS.status() method rewritten without StringIO module
* Better Exception raising
* Some other minor bugfixes

Posted by steegness 2006-02-02

SRCDS.py 1.01

A minor bugfix for SRCDS.py has been released. The players() function was dropping a player by mistake. Update as soon as possible.

Posted by steegness 2005-05-14

SRCDS.py Reaches 1.0

SRCDS.py, the Python library for accessing Half-Life2 Dedicated Servers, has reached version 1.0. To documentation is there, and it's as stable as I can prove it to be. Please enjoy.

Posted by steegness 2005-02-01

SRCDS.py Initial Release

SRCDS.py, a Python library for interfacing with Source (Half-Life2) gaming servers, has made its inital release on SourceForge. To my knowledge, this is the first Python implementation of a Source library. It includes support for standard queries and full RCON.

Posted by steegness 2005-01-15