home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / compsrcs / games / volume14 / dunnet / part03 < prev    next >
Encoding:
Internet Message Format  |  1992-08-30  |  4.6 KB

  1. Path: uunet!zephyr.ens.tek.com!master!saab!billr
  2. From: billr@saab.CNA.TEK.COM (Bill Randle)
  3. Newsgroups: comp.sources.games
  4. Subject: v14i030:  dunnet - emacs-lisp text adventure, Part03/02
  5. Message-ID: <3343@master.CNA.TEK.COM>
  6. Date: 10 Aug 92 03:54:00 GMT
  7. Sender: news@master.CNA.TEK.COM
  8. Lines: 113
  9. Approved: billr@saab.CNA.TEK.COM
  10.  
  11. Submitted-by: Ron Schnell <rschnell@encore.COM>
  12. Posting-number: Volume 14, Issue 30
  13. Archive-name: dunnet/Part03
  14. Environment: gnu-emacs, emacs-lisp
  15.  
  16.     [Somehow, the README file got left out of the dunnet post, so here it is.  -br]
  17.  
  18. #! /bin/sh
  19. # This is a shell archive.  Remove anything before this line, then unpack
  20. # it by saving it into a file and typing "sh file".  To overwrite existing
  21. # files, type "sh file -c".  You can also feed this as standard input via
  22. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  23. # will see the following message at the end:
  24. #        "End of archive 3 (of 2)."
  25. # Contents:  README
  26. # Wrapped by billr@saab on Sun Aug  9 20:53:02 1992
  27. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  28. if test -f 'README' -a "${1}" != "-c" ; then 
  29.   echo shar: Will not clobber existing file \"'README'\"
  30. else
  31. echo shar: Extracting \"'README'\" \(2801 characters\)
  32. sed "s/^X//" >'README' <<'END_OF_FILE'
  33. XThis is "dunnet", a text adventure game written in emacs-lisp.  I decided it
  34. Xwould be interesting to write an elisp program, so for fun I wrote this
  35. Xone.  Try to play it without looking at the code, for two reasons:
  36. X
  37. X1. It's more fun if you don't cheat.
  38. X2. Since I haven't written much lisp, I'm not confident of the quality
  39. X   of the code.
  40. X
  41. XYou'll notice some really different things about this dungeon.  Without
  42. Xgiving anything away, let's just say that like much lisp code seems to
  43. Xbe, this dungeon is sort of recursive in a way.  A minimal knowledge of
  44. XUNIX, and some internet experience is assumed.
  45. X
  46. XINSTALLATION
  47. X------------
  48. X
  49. XModify the first line of dun-main.el to have a logfile that is writable
  50. Xby all.  You only need to do this if you want to log where everyone died
  51. Xor saved, or won.  You will also need to create this file as an empty file,
  52. Xif it doesn't already exist.
  53. X
  54. XYou can use the 'makefile' to compile everything and encrypt the appropriate
  55. Xportions of dunnet.  You may, of course, just run the code as-is.  In either
  56. Xcase, all of the files must be put in your load-path directory, or they
  57. Xmust be in your current directory when it is run.  If you do
  58. Xrun make, all of the compiled/encrypted files are put in ../bin.
  59. X
  60. X*IMPORTANT*
  61. X
  62. XThere are two ways to run the program:
  63. X
  64. X1. dunnet
  65. X2. dunnet.window
  66. X
  67. XI strongly suggest using the non-window version, because otherwise stuff will
  68. Xscroll off the screen, and you'll need to be scrolling back a lot.  These
  69. Xfiles are Unix shellscripts, and one of them should be put in a normal
  70. Xbin directory.  If you are on a non-unix machine, it should be simple to
  71. Xset up similar script files.
  72. X
  73. XNOTE: It may be necessary to modify the script files in order to run out
  74. X      of the current directory.  If it can't seem to find the load file,
  75. X      change the "-l dun-main" to "-l `pwd`/dun-main" for Unix.  For other
  76. X      platforms, use whatever method appropriate to indicate the complete
  77. X      pathname.
  78. X
  79. XI have included part of crypt.el by Kyle E. Jones.  It is needed in order to
  80. Xencrypt and decrypt save files and one of the data files.
  81. X
  82. Xcrypt.el assumes that you can run the "crypt" command.  If you cannot,
  83. Xedit the file 'save.el', and replace the functions 'compile-save-out'
  84. Xand 'restore' with 'compile-save-out-nocrypt' and 'restore-nocrypt'.  If
  85. Xyou aren't using crypt you will also have to make sure to copy
  86. X'dun-globals.el' to the load-path or current directory if you are
  87. Xusing 'make' to compile.
  88. X
  89. XThis software assumes you have "cl.el" (necessary) and "yow.el" (not critical)
  90. Xin the load-path directory.  These come standard with gnu-emacs.
  91. X
  92. XSome hints and tips.
  93. X
  94. XRead the help carefully.
  95. XSave the game often.
  96. XAn abbreviation for examine is 'x'.
  97. XYou can use 'get all', but not 'drop all'.
  98. X
  99. XQuestions or comments to ronnie@eddie.mit.edu.
  100. X
  101. END_OF_FILE
  102. if test 2801 -ne `wc -c <'README'`; then
  103.     echo shar: \"'README'\" unpacked with wrong size!
  104. fi
  105. # end of 'README'
  106. fi
  107. echo shar: End of archive 3 \(of 2\).
  108. cp /dev/null ark3isdone
  109. MISSING=""
  110. for I in 1 2 ; do
  111.     if test ! -f ark${I}isdone ; then
  112.     MISSING="${MISSING} ${I}"
  113.     fi
  114. done
  115. if test "${MISSING}" = "" ; then
  116.     echo You have unpacked both archives.
  117.     rm -f ark[1-9]isdone
  118. else
  119.     echo You still need to unpack the following archives:
  120.     echo "        " ${MISSING}
  121. fi
  122. ##  End of shell archive.
  123. exit 0
  124.