Changes between Version 16 and Version 17 of ProtocolZero
- Timestamp:
- Jun 3, 2011 5:13:18 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ProtocolZero
v16 v17 4 4 5 5 == Overview == 6 ProtocolZero commands are sent as plaintext over a TCP/IP socket to Quake on port 6000. Currently, any new connections to this port result in the creation of a new bot. Command format is of the form :A BB IDNUM PARAM_1 PARAM_2 PARAM_3 PARAM_4... \n6 ProtocolZero commands are sent as plaintext over a TCP/IP socket to Quake on port 6000. Currently, any new connections to this port result in the creation of a new bot. Initial commands are simply ASCII strings of the form CMD PARAM. The final initial command given is "ready", after which the bot is spawned, and live commands become usable. Live command format is of the form A BB IDNUM PARAM_1 PARAM_2 PARAM_3 PARAM_4... \n 7 7 * where A is either a 't' or 'n' character, for 'then' or 'now', specifying scheduling (see below). 8 8 * where BB is the opcode of the instruction (always 2 characters). … … 29 29 30 30 '''INITIAL COMMANDS''' 31 * ''r'' - "ready", spawns the bot. 32 31 * ''name'' - "set name", sets what the name of the bot will be when it spawns. Takes one argument: 32 * string name 33 * ''botfile'' - "set botfile", sets the botfile of the bot. Among other things, this determines the bot's in-game model. See [[botfiles]] for a list of options. 34 * string filename 35 * ''skill'' - "set skill", sets the skill level of the bot, which selects subsections from the botfiles. 36 * integer skill 37 * ''team'' - "set team" sets the team of the bot ("red" or "blue") in CTF or team deathmatch mode. 38 * string team 39 * ''ready'' - "ready", spawns the bot. Takes no arguments. 33 40 34 41 '''LIVE COMMANDS'''