User Tools

Site Tools


client_side_scripting:client_scripting_interface-basic_howto

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
Next revision Both sides next revision
client_side_scripting:client_scripting_interface-basic_howto [2021/04/07 05:16]
boingman Corrected client tick (replaced with server tick).
client_side_scripting:client_scripting_interface-basic_howto [2021/04/11 15:07]
partmedia Update documentation for drawextinfo/drawinfo
Line 139: Line 139:
  
   * //watch <command type>// - watch the given command from server-client protocol. <command type> specifies the commands we want to watch. Set to empty to get all commands.   * //watch <command type>// - watch the given command from server-client protocol. <command type> specifies the commands we want to watch. Set to empty to get all commands.
-    * Besides what is already documented, watch also supports "​tick",​ "drawinfo" (GTK2 client) and "drawextinfo" (JXClient).+    * Besides what is already documented, watch also supports "​tick",​ "drawextinfo" (for most servers)and "drawinfo" (for very old servers)
     * The "​tick"​ argument will provide the script with "watch tick <​integer>",​ as a tick of the server'​s clock.     * The "​tick"​ argument will provide the script with "watch tick <​integer>",​ as a tick of the server'​s clock.
-    * The "​drawinfo"​ and "​drawextinfo" ​arguments are functionally equivalent in the GTK2 client and the JXClient with some minor differences. Both will provide the script with text printed in the Messages text area. The GTK2 provides the script with "​watch ​drawinfo ​<​integer>​ <​message>", ​while the JXClient will provide ​"​watch ​drawextinfo <​integer> ​<​integer>​ <​message>"​.+    * "​drawextinfo"​ provide the script with text printed in the Messages text area. The format is "​watch ​drawextinfo <​integer> ​<​integer>​ <​message>"​. For some very old servers (none of them which are online at the time of writing)"​drawextinfo"​ is not supported and you must fall back to "​drawinfo",​ which has the arguments ​"​watch ​drawinfo ​<​integer>​ <​message>"​.
   * //unwatch <command type>// - unwatch the given command from server-client protocol. <command type> specifies the commands we want to watch. Set to empty to get all commands.   * //unwatch <command type>// - unwatch the given command from server-client protocol. <command type> specifies the commands we want to watch. Set to empty to get all commands.
-  * //request <data type>// - Request a piece of informations ​from client memory. Following is a table of <data type> allowed:+  * //request <data type>// - Request a piece of information ​from client memory. Following is a table of <data type> allowed:
  
 <box round | Data Type Table> <box round | Data Type Table>
Line 199: Line 199:
  
 ==== The issue command ==== ==== The issue command ====
-This command has it'​s ​particularities.+This command has it'​s ​peculiarities.
  
 Usage: Usage:
client_side_scripting/client_scripting_interface-basic_howto.txt ยท Last modified: 2021/06/19 08:12 by boingman