home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / t / toaster.zip / Compat / README.3.0-DR < prev    next >
Text File  |  1991-12-31  |  5KB  |  115 lines

  1. This is LPMud version 3.0-DR (Darker Realms' version).
  2.  
  3. This version should run with any existing mudlib of version 2.4.x or
  4. above if run in compatibility mode, although the compiler is a bit 
  5. more picky, so you might find some actual syntax errors in your code 
  6. that 2.4.x allowed to slip by.
  7.  
  8. Please read the README.3.0 file, and DONE, for information on new
  9. functions and abilities of 3.0.
  10.  
  11. In addition, please edit the Makefile and config.h, and change the path names
  12. to be appropriate paths, and make a 'secure' directory wherever you untarred
  13. the game, to place your security.h file.
  14.  
  15.  
  16. New to 3.0-DR:
  17.  
  18. You now have the ability to have "privilege" hosts, that can get into
  19. the game even if the game is full to 'mortals'.  In config.h, you'll
  20. see the #define's MAX_PLAYERS and MAX_MORTALS.  MAX_MORTALS is used for
  21. the maximum number of players, excluding priv users, you will allow
  22. on your mud.  MAX_PLAYERS is the total number of users ever that can be
  23. on your mud.  Right now these are set to 40 and 32, meaning that 32 
  24. non-priv players can be on, and at least 8 priv people can be on.  Please
  25. look at the function priv_host() in comm1.c, and put the appropriate 
  26. hex representation of the ip address for each priv host you want.  If
  27. you don't care to use this feature, comment out the #define MAX_MORTALS
  28. in config.h.
  29.  
  30.    Example:  Say you have 31 players on, and 9 priv people.  The game
  31.        is full to everyone.  If a players logs out, someone can take
  32.        their place, that being a priv player or a mortal.  Now, say
  33.        you have 32 players and 8 priv people, and a priv person logs
  34.        out. No more players can log in, since the number of players is
  35.        32, which is max. 
  36.  
  37. attributes  --  The functions add_attribute, query_attribute, delete_attribute,
  38.                 and get_attribute, have been added for dynamic manipulation
  39.                 of properties on objects.  To get the full benifit of these,
  40.                 your  mudlib will probably have to be rewritten to use them.
  41.                 (like add a property "NT" for no teleport realms).
  42.  
  43. files(path) --  This primative returns an array of all the files in a directory.
  44.  
  45. grab_file(path) -- This returns an array of a file, one line per element.
  46.  
  47. format(str, width) -- formats str to width characters, putting \n's in the 
  48.                       string when necessary.  Default width (configurable in
  49.                       config.h) is 70.
  50.  
  51. print(str, width)  -- write(format(str, width))
  52.  
  53. in_editor(ob) -- returns true if ob is in the editor.
  54.  
  55. possessive(ob) -- returns "his", "her", or "its" depending on the
  56.                   return value of query_gender() on ob.  default would
  57.                   be "its".
  58. objective(ob)  -- returns "him", "her", or "it".
  59. subjective(ob) -- returns "he", "she", or "it".
  60.  
  61. remove_interactive(ob) -- forces ob to go net-dead.
  62.  
  63. memused() -- returns the amound of memory being used, if using smalloc.c
  64.  
  65. searcha() -- has been overloaded to take a string as it's first argument.
  66.              also, index(str, char, start) is also there, which is identical
  67.              to searcha(str, char, start)
  68.  
  69. extract() -- has been overloaded to take an array for the first argument, 
  70.              as well as the string.
  71.  
  72. explode(str, "") now works, and creates an array of size strlen(str), 
  73.              with each element being a letter in the string.  The types
  74.              of each element is a string.
  75.  
  76. add_action(fun, verb, matchlength) -- This will allow for "abbreviated" matches,
  77.              or rather, any common beginning substring of matchlength characters
  78.              or more will match.
  79.  
  80.              For example, if you did 
  81.  
  82.                 add_action("function", "command", 3);
  83.  
  84.              com  comm  comma  comman  command
  85.  
  86.              would all match, and call function.  
  87.  
  88.              This new style will break the old add_action(fun,verb,flag)
  89.              style, so I have made allowances for that with a 
  90.              #define OLD_ADD_ACTION in config.h.  If you don't use this
  91.              old style, use the new one, it's much more useful. :-)
  92.  
  93. addition works on arrays, as does the += operator.
  94.  
  95. Many memory leaks have also been fixed.  Memory structures have been 
  96. packed down, to reduce size.  You may or may not see a size decrease,
  97. however, due to the way some machines align structures.  (Sparcs will
  98. not see a reduction, but both a Sun3, HP 9000/300, and a NeXT saw
  99. some size reduction) Also, this version compiles with no problems under 
  100. HPUX.  I am currently working on porting this to a NeXT.
  101.  
  102. LPMud.doc.me isn't in this distribution for some reason.  I'll 
  103. get it from alcazar.cd.chalmers.se, and put it up for ftp on 
  104. worf.tamu.edu.
  105.  
  106. If you have any questions, or find a function that is in 2.4.5-D that 
  107. isn't supported, please mail me at john@stat.tamu.edu.
  108.  
  109. I added the trace() efun, although I have no idea what it's supposed 
  110. to do.  *chuckle*
  111.  
  112. I will try to go through an document ALL the efuns available in 3.0
  113. whenever I get the chance.  If anyone out there wants to do this, please
  114. feel free. 
  115.