1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378
|
<refentry id="cycmd">
<refmeta>
<refentrytitle>cycmd</refentrytitle>
<manvolnum>1</manvolnum>
</refmeta>
<refnamediv>
<refname>cycmd</refname>
<refpurpose>cycmd game server process</refpurpose>
</refnamediv>
<refsynopsisdiv>
<cmdsynopsis>
<command>cycmd</command>
<arg choice="opt" rep="repeat">--section:option=value</arg>
<arg choice="opt">command<arg choice="opt">server</arg></arg>
</cmdsynopsis>
</refsynopsisdiv>
<refsect1><title>Description</title>
<para>
The <command>cycmd</command> program provides a commandline interface to a
cyphesis server.
</para>
</refsect1>
<refsect1><title>Options</title>
<para>
Configuration options are divided up into named sections, which need to
be specified when modifying or overriding the options. In a config file
the name of a section is specified in square brackets at the beginning
of the section. On the command line the section is given at the
beginning of the option specification, as shown in the synopsis above.
</para>
<refsect2><title>Client Options</title>
<para>
The following options used by <command>cycmd</command> are present in the
client section of the config file, and overriden by specifying the client
section name on the command line.
</para>
<variablelist>
<varlistentry>
<term><fieldsynopsis>
<varname>serverhost</varname>
<initializer>=hostname</initializer>
</fieldsynopsis>
</term>
<listitem>
<para>
Hostname of the server to connect to.
</para>
<para>
This setting provides the hostname of the system where cyphesis is running
that <command>cycmd</command> should try and connect to.
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect2>
<refsect2><title>Server Options</title>
<para>
The following options are present in the cyphesis section of the config
file, and overriden by specifying the cyphesis section name on the
command line. These options apply to the server, but are also required
by the client to ensure that the client can connect.
</para>
<variablelist>
<varlistentry>
<term><fieldsynopsis>
<varname>tcpport</varname>
<initializer>=6767</initializer>
</fieldsynopsis>
</term>
<listitem>
<para>
Network port for server TCP connections.
</para>
<para>
Specifies the port number to use when connecting to the server.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><fieldsynopsis>
<varname>unixport</varname>
<initializer>="cyphesis.sock"</initializer>
</fieldsynopsis>
</term>
<listitem>
<para>
Local liston socket for Unix domain connections.
</para>
<para>
Specifies the filename to use to listen for local trusted client connections.
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect2>
</refsect1>
<refsect1><title>Commands</title>
<variablelist>
<varlistentry>
<term><cmdsynopsis>
<command>connect</command>
<arg choice="req">hostname</arg>
</cmdsynopsis>
</term>
<listitem>
<para>
Connect the server to a peer.
</para>
<para>
Try and establish a connection to a peer server.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><cmdsynopsis>
<command>get</command>
<arg choice="req">typename</arg>
</cmdsynopsis>
</term>
<listitem>
<para>
Examine a type on the server.
</para>
<para>
Get a type description from the server, and display its contents.
The type information is typically either an entity class, or an operation
definition.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><cmdsynopsis>
<command>help</command>
</cmdsynopsis>
</term>
<listitem>
<para>
Display online help.
</para>
<para>
Lists all the commands available, with a short description of what each one
does.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><cmdsynopsis>
<command>install</command>
<arg choice="req">type_id</arg>
<arg choice="req">parent_id</arg>
</cmdsynopsis>
</term>
<listitem>
<para>
Install a new type in the server.
</para>
<para>
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><cmdsynopsis>
<command>look</command>
</cmdsynopsis>
</term>
<listitem>
<para>
Return a view of the current server lobby.
</para>
<para>
Look at the current server lobby, where all users currently logged in
are represented. The view is returned and displayed.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><cmdsynopsis>
<command>logout</command>
<arg choice="opt">account</arg>
</cmdsynopsis>
</term>
<listitem>
<para>
Examine a type on the server.
</para>
<para>
Get a type description from the server, and display its contents.
The type information is typically either an entity class, or an operation
definition.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><cmdsynopsis>
<command>monitor</command>
</cmdsynopsis>
</term>
<listitem>
<para>
Enable server monitoring.
</para>
<para>
Direct the server to report all in-game operations to the client. A digest
of each operation is displayed, including the type, which entity the operation
is from and which entity the operation is to.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><cmdsynopsis>
<command>query</command>
<arg choice="req">entity_id</arg>
</cmdsynopsis>
</term>
<listitem>
<para>
Examine an in-game entity.
</para>
<para>
Get an in-game entity description from the server, and display its contents.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><cmdsynopsis>
<command>stat</command>
</cmdsynopsis>
</term>
<listitem>
<para>
Examine the current server status.
</para>
<para>
Get a description of the current server status, and display its contents.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><cmdsynopsis>
<command>unmonitor</command>
</cmdsynopsis>
</term>
<listitem>
<para>
Disable server monitoring.
</para>
<para>
Direct the server to stop reporting all in-game operations to the client.
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1><title>Examples</title>
<para>
The first example shows getting the current server status and checking
the lobby to see if any users are logged in.
</para>
<programlisting>
cyphesis> stat
Info(
builddate: 11:32:45, Sep 27 2004
clients: 1
name: calcitration.ecs.soton.ac.uk
objtype: obj
parents: [ server ]
ruleset: mason
server: cyphesis
uptime: 1728.2
version: 0.3.2
)
cyphesis> look
Sight(
id: lobby
name: lobby
objtype: obj
parents: [ room ]
people: [ 1 ]
rooms: [ ]
)
cyphesis>
</programlisting>
<para>
The first entity returned shows various information about the server,
including when it was built, the number of connected client, the
current ruleset, and the server uptime. The second entity representing
the lobby shows that only one user is current logged in, and no chat
rooms have been created.
</para>
<para>The second example shows how to install a new type.</para>
<programlisting>
cyphesis> get thing
Info(
children: [ feature character plant food stackable structure arm arrow axe barrel block_house board boat boundary bow campfire cleaver coin fire gallows house lumber pelvis ribcage shin skull stall sword thigh tower twobyfour wall weather ]
contains: [ ]
id: thing
loc:
name:
objtype: class
parents: [ game_entity ]
pos: [ 0 0 0 ]
stamp_contains: 0
velocity: [ 0 0 0 ]
)
cyphesis> install box thing
cyphesis>
</programlisting>
<para>
The third example shows server monitoring being enable, followed by information
of a series of in-game operations. The flow of messages in while monitoring the
server can be large. In order to supress the flow, the
<command>unmonitor</command> command must be used.
</para>
<programlisting>
cyphesis> monitor
cyphesis>
tick(from="900006",to="900006")
tick(from="900007",to="900007")
cyphesis>
tick(from="900008",to="900008")
cyphesis>
tick(from="899982",to="899982")
cyphesis>
tick(from="899356",to="899356")
cyphesis>
tick(from="899357",to="899357")
cyphesis>
tick(from="899358",to="899358")
cyphesis>
tick(from="899359",to="899359")
cyphesis>
tick(from="899360",to="899360")
cyphesis>
tick(from="899361",to="899361")
cyphesis>
</programlisting>
</refsect1>
<refsect1><title>Author</title>
<para>
Written by Alistair Riddoch.
</para>
</refsect1>
<refsect1><title>Reporting bugs</title>
<para>
Report bugs to <email>general@worldforge.org</email>.
</para>
</refsect1>
<refsect1><title>Copyright</title>
<para>
Copyright 2004 Alistair Riddoch.
</para>
</refsect1>
<refsect1><title>See Also</title>
<para>
<citerefentry><refentrytitle>cyphesis</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
<citerefentry><refentrytitle>cyclient</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
<citerefentry><refentrytitle>cyphesis-tools</refentrytitle><manvolnum>1</manvolnum></citerefentry>
</para>
</refsect1>
</refentry>
|