Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
guidelines:adding_message_to_gamebots [2012/02/08 21:27]
martin.cerny
guidelines:adding_message_to_gamebots [2012/02/08 21:34]
martin.cerny
Line 95: Line 95:
  
 In your handler method, you are free to use method GetArgVal(argName) to parse command arguments (it is automagically filled with arguments from most recent command.  In your handler method, you are free to use method GetArgVal(argName) to parse command arguments (it is automagically filled with arguments from most recent command. 
 +
 +If you want to handle commands for the control connection, the process is the same, but use ControlConnection instead of BotConnection.
  
 ====== Triggering Kismet event with a command ====== ====== Triggering Kismet event with a command ======
Line 162: Line 164:
 The ConnectionClass is a string containing fully qualified name of the connection class. If you are not trying to achieve something complicated, it is usually good idea to add your extension classes to GameBotsUDK package, since it does not require to modify any other ini file (adding a package requires you to modify some of the files that are modified by gamebots, so that could lead to some trouble with synchronizing your extension development with the main gamebots extension). The ConnectionClass is a string containing fully qualified name of the connection class. If you are not trying to achieve something complicated, it is usually good idea to add your extension classes to GameBotsUDK package, since it does not require to modify any other ini file (adding a package requires you to modify some of the files that are modified by gamebots, so that could lead to some trouble with synchronizing your extension development with the main gamebots extension).
  
-If you have done that, try running UDK with GameBots as usual you should see "Using YOURCLASS for connection" in the UDK log. If you are not, something is wrong.+If you have done that, try running UDK with GameBots as usual you should see "Using YOURCLASS for bot connection" in the UDK log. If you are not, something is wrong
 + 
 +In a similar way you can replace the default implementation of ControlConnection to parse custom messages. You extend the ControlConnection class, override ProcessRegularAction there, create file called DefaultControlServer.ini and specify your class's name in the ConnectionClass property.
  
guidelines/adding_message_to_gamebots.txt · Last modified: 2012/02/08 21:34 by martin.cerny