Blog

Posted 2006/03/16

Tycho API updates

This week while writing Tycho game services for Quake 3 I have made some modifications to Tycho to either fix problems or add new functionality me or Rich needed. The current version will become Tycho 0.7.3, here is the change log so far.

Bugs:

  • -Fixed a bug in the IRC connector which meant bots did not join a project specific channel.
  • -Fixed a bug in the IRC connector which meant simultaneous query responses from different mediators could get mixed up.

New API features:

  • -Added constructors to mediator to allow it to be started within another Java class. (Both me and Rich wanted this for Tycho games and Slogger).
  • -Added a new function to the TychoConnector which allows a client to update it’s schema and schema_url fields after it has been registered. (I wanted this for Tycho games).

Behind the scenes stuff:

  • -Changed mediator to detect next available port for when it is created without lan or wan port being specified.
  • -Replaced all System.out calls with a Debug.out method which means you can stop the Tycho library from printing what it is doing to STDOUT.
  • -Updated all error handling to be consistent as well as never use System.exit(), this makes it easier for normal people to debug Tycho apps.
  • -Added an EmbeddedMediator class to the client API to wrap the real mediator and simplify using it.
  • -Moved the Tycho VR into uk.ac.port.dsg.tycho.core.vr, since the VR is core functionality it should be here, it had it’s own packge for legacy reasons from when it was first developed.

I am keeping the working version of the javadocs on-line here so Rich can refer to them.