Advertisement
Guest User

spring rts lobby dev meeting proposals 26. feb. 2012

a guest
Feb 27th, 2012
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.00 KB | None | 0 0
  1. <!-- ####################################################################### -->
  2. <!-- Proposal 0: Presentation of compat flags query protocol addendum -->
  3.  
  4. <Command Name="LISTCOMPFLAGS" Source="client">
  5. <Description>
  6. Client may send this command after it has received <clink name="TASSERVER"/> to query server for supported compFlags that may be specified on <clink name="LOGIN" />.
  7. </Description>
  8. <Response>
  9. See <clink name="COMPFLAGS"/>.
  10. </Response>
  11. </Command>
  12.  
  13. <Command Name="COMPFLAGS" Source="server">
  14. <Arguments>
  15. <Argument Name="compFlag1" />
  16. <Argument Name="compFlag2" />
  17. <Argument Name="..." />
  18. </Arguments>
  19. <Description>
  20. Sent as a response to a <clink name="LISTCOMPFLAGS"/> command.
  21. Server sends a list of supported compFlags that may be specified by client on <clink name="LOGIN" />.
  22. </Description>
  23. <Response />
  24. <Examples>
  25. <Example>COMPFLAGS a b</Example>
  26. <Example>COMPFLAGS a b sp</Example>
  27. </Examples>
  28. </Command>
  29.  
  30. <!-- ####################################################################### -->
  31. <!-- Proposal 1: FORCEJOINBATTLE -->
  32.  
  33. <Command Name="FORCEJOINBATTLE" Source="client">
  34. <Arguments>
  35. <Argument Name="user" />
  36. <Argument Name="BATTLE_ID" />
  37. <Argument Name="battlePassword" optional="true" />
  38. </Arguments>
  39. <Description>
  40. Client may send this command if it is a battle host or lobby moderator. Server will decide if they are and send <clink name="FORCEJOINBATTLE"/> to user.
  41. </Description>
  42. <Response>
  43. See <clink name="FORCEJOINBATTLE"/>.
  44. </Response>
  45. </Command>
  46.  
  47. <Command Name="FORCEJOINBATTLE" Source="server">
  48. <Arguments>
  49. <Argument Name="BATTLE_ID" />
  50. <Argument Name="battlePassword" optional="true"/>
  51. </Arguments>
  52. <Description>
  53. Sent to user specified by previous <clink name="FORCEJOINBATTLE"/> command from client. Client must subsequently comply by sending a <clink name="JOINBATTLE"/> command to server.
  54. </Description>
  55. <Response />
  56. </Command>
  57.  
  58. <!-- ####################################################################### -->
  59. <!-- Proposal 2: CONNECTUSER -->
  60.  
  61. <Command Name="CONNECTUSER" Source="client">
  62. <Arguments>
  63. <Argument Name="user" />
  64. <Argument Name="IP:port" />
  65. <Argument Name="scriptPassword" optional="true" />
  66. </Arguments>
  67. <Description>
  68. Client may send this command if it is a battle host or lobby moderator. Server will decide if they are and send <clink name="CONNECTUSER"/> to user.
  69. </Description>
  70. <Response>
  71. See <clink name="CONNECTUSER"/>.
  72. </Response>
  73. </Command>
  74. <Command Name="CONNECTUSER" Source="server">
  75. <Arguments>
  76. <Argument Name="IP:port" />
  77. <Argument Name="scriptPassword" optional="true" />
  78. </Arguments>
  79. <Description>
  80. Client connects spring to given IP:port with given script password <clink name="CONNECTUSER"/> to user.
  81. </Description>
  82. <Response>
  83. See <clink name="CONNECTUSER"/>.
  84. </Response>
  85. </Command>
  86.  
  87. <!-- ####################################################################### -->
  88. <!-- Proposal 3: REQUESTDOWNLOAD -->
  89.  
  90. <Command Name="REQUESTDOWNLOAD" Source="client">
  91. <Arguments>
  92. <Argument Name="user" />
  93. <Argument Name="type" values="map|game|engine"| />
  94. <Argument Name="resource" />
  95. </Arguments>
  96. <Description>
  97. Client may send this command if it is a battle host or lobby moderator. Server will decide if they are and send <clink name="REQUESTDOWNLOAD"/> to user.
  98. </Description>
  99. <Response>
  100. See <clink name="REQUESTDOWNLOAD"/>.
  101. </Response>
  102. </Command>
  103.  
  104. <Command Name="REQUESTDOWNLOAD" Source="server">
  105. <Arguments>
  106. <Argument Name="user" />
  107. <Argument Name="type" values="map|game|engine" />
  108. <Argument Name="resource" />
  109. </Arguments>
  110. <Description>
  111. Client starts download of given resource unless its already present <clink name="REQUESTDOWNLOAD"/>.
  112. </Description>
  113. <Response>
  114. See <clink name="REQUESTDOWNLOAD"/>.
  115. </Response>
  116. </Command>
  117.  
  118. <Command Name="REPORTDOWNLOADPROGRESS" Source="client">
  119. <Arguments>
  120. <Argument Name="user" />
  121. <Argument Name="resource" />
  122. <Argument Name="progress"/>
  123. <Argument Name="eta"/>
  124. </Arguments>
  125. <Description>
  126. Client sends that at least 1x per 30s to requestor of download and sends 100 if resource is present
  127. Progress is in percents = 100 = done
  128. -1 = download failed
  129. Eta is in seconds
  130. <clink name="REQUESTDOWNLOAD"/>.
  131. </Description>
  132. <Response>
  133. See <clink name="REQUESTDOWNLOAD"/>.
  134. </Response>
  135. </Command>
  136.  
  137. <Command Name="REPORTDOWNLOADPROGRESS" Source="server">
  138. <Arguments>
  139. <Argument Name="user" />
  140. <Argument Name="resource" />
  141. <Argument Name="progress"/>
  142. <Argument Name="eta"/>
  143. </Arguments>
  144. <Description>
  145. Client sends that at least 1x per 30s to requestor of download<clink name="REQUESTDOWNLOAD"/>.
  146. </Description>
  147. <Response>
  148. See <clink name="REQUESTDOWNLOAD"/>.
  149. </Response>
  150. </Command>
  151.  
  152. <!-- ####################################################################### -->
  153. <!-- Proposal 4: FORCEJOINBATTLE -> JOINBATTLEFORCE -->
  154.  
  155. <!-- see title, thats all there is, there isn't anymore -->
  156.  
  157. <!-- ####################################################################### -->
  158. <!-- Proposal 5: Change CPU info -->
  159.  
  160. <!-- ??? was this the... adding a table about special CPU values to the protocol doc? -->
  161.  
  162. <!-- ####################################################################### -->
  163. <!-- 1.B Protocol - Add new commands for joining User -->
  164.  
  165. <!--
  166. // Suggest user to join me (Battleroom)
  167. JOINROOM {password}
  168.  
  169. // User must tell Server that he wants to play some Game with Cooperative / FFA / Bugs
  170. JOINWANTED {game, mode, ...}
  171.  
  172. // Then, the user status changed on Server
  173. // Then Server can join that user by force to any battleroom
  174. JOINROOMFORCE {password}
  175.  
  176. // Suggest user to join me (Channel)
  177. JOINCHANNEL {password}
  178. this is hugely incomplete.. there would need to be a way to register matchamking agents to server, to register game types, to exahcnge data from server to agent, to manage multiple agents etc..
  179. too complex.. any such commands should be exchanged directly between user and agent
  180. using private messages because its no concern for server
  181. for that i propose
  182. !juggler_list_preferences
  183. lists in format ffa=2,1v1=0 etc
  184. and
  185. !juggler_set_preferneces
  186. in same format
  187. sent to Nightwatch
  188. -->
  189.  
  190. <!-- ####################################################################### -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement