Menu

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

Log in to post a comment.