home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / new / game / role / amigamud / client / doc / mud.txt < prev    next >
Text File  |  1994-07-31  |  49KB  |  1,064 lines

  1. AmigaMUD, Copyright 1994 by Chris Gray
  2.  
  3.  
  4.             The 'MUD' Client Program
  5.  
  6. The MUD client program (the file called "MUD") is used to connect to
  7. an AmigaMUD server, either locally on the same machine as the server,
  8. or remotely through a direct serial port or modem connection. The
  9. operation of the program is the same in both cases, although some
  10. details of starting it up vary. This client program must be used in
  11. order to get graphics and audio output and to use mouse and keypad
  12. input. This is the recommended interface for use with AmigaMUD,
  13. although a remote user can operate in a simple text-only mode using
  14. just a terminal program.
  15.  
  16. When running, MUD displays two windows. The top window displays 32
  17. colour graphics in a 320 by 100 window centered in the display. The
  18. bottom window displays text in a window sized to use up the remainder
  19. of the available display space. It will be wider if overscan is in use
  20. and it is higher on PAL systems. The text window has a scrollbar for
  21. reviewing earlier output, and it is this window that contains the
  22. menus. This means that the menus appear in the middle of the display,
  23. which is a little unusual.
  24.  
  25. The bottom line of the text window is the input area. Output text
  26. lines appear on the line above this one, thus any partial input lines
  27. are not disturbed by output from other events taking place in the MUD.
  28. Input line editing and history retrieval is done in this line and will
  29. be described later. When RETURN is pressed, the current input line is
  30. sent to the server, and is echoed (along with the current prompt) in
  31. the output area. Note that the position of the command in the output
  32. area does not necessarily correspond to the point at which the server
  33. will process it, since the server may not get around to it for a
  34. while, and because the server may already have generated other output
  35. that hasn't arrived yet.
  36.  
  37. MUD can be started either from the Workbench or from a CLI. All of the
  38. tool type values that can be put in the Workbench icon can also be
  39. given on a CLI command line. Additional, shorter, forms for many of
  40. the flags can also be used from a CLI. By default, MUD will attempt to
  41. make a remote connection on the standard serial port at a speed of
  42. 19200 bps. If the environment variable "MUDLOCAL" is set to any of
  43. YES/yes/ON/on/TRUE/true or to no value, then the default action is to
  44. connect to a server running on the local machine.
  45.  
  46. NOTE: in order to run MUD, either locally or remotely, there must be a
  47. copy of "mud.library" in your LIBS: directory.
  48.  
  49. NOTE: MUD requires a stack of at least 10000 bytes. It will exit right
  50. away if the stack is not at least that large. If you are running MUD
  51. from a shell, use the 'Stack' command (perhaps in your shell-startup)
  52. to set a sufficient stack size. If you are running MUD from the
  53. Workbench, use the "Icons"/"Information" Workbench menu item to set
  54. the stack size on the MUD icon to at least 10000.
  55.  
  56. MUD is able to call up an external editor to edit strings (such as
  57. character and room descriptions) and procs (AmigaMUD procedures). What
  58. program to run as the editor can be controlled by setting the "EDITOR"
  59. environment variable to the name (or a full path to) the editor to
  60. use. If the variable is not set, "Ed" is used. The editor used must
  61. accept the name of the text file to edit on the CLI command line, and
  62. must be a able to edit and write a simple text file. MUD does not
  63. understand text processor or word processor documents. Many users will
  64. prefer to just use the simple editor built-in to the MUD program.
  65.  
  66. The MUD client program can display background pictures and brush
  67. images loaded from the machine it is running on. It can also play
  68. sound samples, and, in the future, will be able to play SMUS (and
  69. perhaps CMUS) music. A single assign or volume name of "AmigaMUD:"
  70. must be present when MUD is started. It does not need to contain
  71. anything, but if it does, it should be arranged into the following
  72. subdirectories:
  73.  
  74.     BackGrounds: 320 x 100 x 32 colour background images
  75.     Images: 32 colour images of various sizes
  76.     Brushes: smaller brush images with a mask plane or with a
  77.     transparent colour specified
  78.     Sounds: IFF 8SVX sound samples
  79.     Music: IFF SMUS music scores
  80.     Instruments: IFF 8SVX instruments
  81.  
  82. The text window in MUD has a close box. Clicking on this box will
  83. start an exit sequence, which will normally result in MUD exiting.
  84. This can also be done with a menu selection. If MUD is started from a
  85. shell, using the 'Break' command on its process will also cause it to
  86. exit. If MUD refuses to exit for some reason (such as the server
  87. having been aborted, or the serial connection being lost), then MUD
  88. can be exited with the Abort menu item. Using a 'Break f' shell
  89. command will also cause MUD to abort. Note that you should not abort
  90. unless absolutely necessary, since this can confuse the server if it
  91. is still active. In particular, manual intervention on the server will
  92. be required before you can log on again.
  93.     
  94. Following sections of this document will cover the CLI command line
  95. and icon tool type flags in more detail. Others will cover the use of
  96. the menus in MUD and the use of the internal editor. After that will
  97. be a discussion of the the various types of caching done by the
  98. program.
  99.  
  100.  
  101. Using MUD to Connect to an AmigaMUD Server
  102.  
  103. When connecting to a server running on the same machine as MUD, the
  104. connection is direct and immediate. The prompt to enter a character
  105. name will appear right away, and the text window will be used only for
  106. MUD input and output.
  107.  
  108. When connecting via a serial port (with or without a modem), the text
  109. window will initially play the role of a very simple terminal program.
  110. This mode has no emulations, does not support any escape sequences,
  111. etc. You can, however, use the logging facility to do the equivalent
  112. of "ASCII capture". The "Serial" menu can also be used to change the
  113. CD (Carrier Detect) status, change the connection speed, and generate
  114. BREAK conditions. When in this "terminal mode", characters typed are
  115. not locally echoed (full duplex), and no special processing or
  116. translation is done on sent or received carriage return or linefeed
  117. characters.
  118.  
  119. When remotely connected, the MUD program on the remote machine uses a
  120. reliable bidirectional binary protocol to talk to a copy of the
  121. "MUDAgent" program running on the server machine. This means that
  122. information (messages) can be sent in both directions at the same
  123. time, and that messages are not limited to printable characters. Also,
  124. the programs will automatically retry messages that are not
  125. acknowledged by the other end.
  126.  
  127. This protocol operates quite differently than the simple "terminal
  128. mode", so the programs must recognize and agree on when they switch to
  129. the protocol. Normally, the MUDAgent on the server will attempt to
  130. enter the protocol as soon as it is started up (e.g. as a result of a
  131. menu option entered on a BBS). When the local MUD program recognizes
  132. the special sequence sent out, it will display "REMOTE END DETECTED"
  133. and switch into the protocol mode. If this message is not seen when
  134. expected, then something is wrong in the connection. You may see the
  135. data lights on a modem blink at one-second intervals - this is the
  136. remote end resending its startup characters. If, however, the remote
  137. end is setup to allow either a full binary or a text-only connection,
  138. then it will not try to start the protocol until it sees a request.
  139. In that case, you must use the 'Serial/Connect' menu item to start the
  140. protocol from your end. If you don't know how the other end is set up,
  141. just wait a few seconds to see if MUD connects automatically. If it
  142. doesn't, then force the connection.
  143.  
  144. Because of the binary protocol, a serial connection for MUD must be an
  145. 8-bit no-parity connection. Other modes will not work, and will most
  146. likely result in either a failure to connect, or a hung connection. In
  147. that case, you must disconnect by exiting MUD, and try again with a
  148. proper connection.
  149.  
  150. In the most common case, that of using MUD to connect to an AmigaMUD
  151. server running elsewhere, the sequence of operations goes something
  152. like this:
  153.  
  154.     - start MUD, possibly specifying options to change the baud rate,
  155.     use a different serial po