meulenbr@cst.philips.nl (Frans Meulenbroeks) (07/13/90)
Hi! Recently I obtained the sources for a 550 point adventure written in C. With minor changes I got this running under MINIX ST 1.5 (That is, I think so, I did not yet complete the game, so maybe there are some pitfalls left) The sources I got were written by Ken C. Wellsch, and were posted to net.sources.games on 7-Jul-86. There are 7 or 8 parts. Below I include a shar with cdiffs of the files I made. Don't ask me for the original sources. They are too large to post. I will only mail them if you are within the .nl domain. mailing is expensive too. Find a closer archive site to retrieve the sources if you are not in the .nl domain. Happy adventuring, Frans Meulenbroeks (signature at end) shar: saving mdiffs (Text) #!/bin/sh # This is a shell archive (shar 3.24) # made 07/13/1990 07:36 UTC by meulenbr@cstw68 # Source directory /usr/cstu10/meulenbr/src/adventure # # existing files will NOT be overwritten # The unsharer will be INTERACTIVELY queried. # # This shar contains: # length mode name # ------ ---------- ------------------------------------------ # 4697 -rw-r--r-- mdiffs # if touch 2>&1 | fgrep '[-amc]' > /dev/null then TOUCH=touch else TOUCH=true fi wish= # ============= mdiffs ============== if test X"$1" != X"-c" -a -f 'mdiffs'; then case $wish in A*|a*) echo x - overwriting 'mdiffs';; *) echo "? - overwrite 'mdiffs' -- [No], [Y]es, [A]ll, [Q]uit? " read wish;; esac case $wish in Q*|q*) echo aborted; exit 86;; A*|a*|Y*|y*) x=Y;; *) x=N;; esac else x=Y fi if test $x != Y; then echo x - skipping 'mdiffs' else echo "x - extracting mdiffs (Text)" sed 's/^X//' << 'SHAR_EOF' > mdiffs && Xdiff -r -c 550c/src/adv/Makefile m550c/src/adv/Makefile X*** 550c/src/adv/Makefile Fri Jun 8 10:48:47 1990 X--- m550c/src/adv/Makefile Wed Jun 13 00:00:50 1990 X*************** X*** 29,37 **** X -ar x $(ALIB) X cc $(CFLAGS) -c $? X rm -f $(ALIB) X! -ar ru $(ALIB) $(OBJ) X! rm -f *.o X! ranlib $(ALIB) X X clean: X rm *.o X--- 29,37 ---- X -ar x $(ALIB) X cc $(CFLAGS) -c $? X rm -f $(ALIB) X! -ar r $(ALIB) $(OBJ) X! # rm -f *.o X! # ranlib $(ALIB) X X clean: X rm *.o Xdiff -r -c 550c/src/adv/adv.c m550c/src/adv/adv.c X*** 550c/src/adv/adv.c Fri Jun 8 10:49:23 1990 X--- m550c/src/adv/adv.c Wed Jun 13 22:22:05 1990 X*************** X*** 13,19 **** X X main () X { X! srandom (time(0)+getpid()) ; X X setup () ; X opendb (ADV) ; X--- 13,19 ---- X X main () X { X! srand (time(0)+getpid()) ; X X setup () ; X opendb (ADV) ; Xdiff -r -c 550c/src/adv/condition.c m550c/src/adv/condition.c X*** 550c/src/adv/condition.c Fri Jun 8 10:49:05 1990 X--- m550c/src/adv/condition.c Wed Jun 13 00:00:43 1990 X*************** X*** 10,15 **** X--- 10,16 ---- X */ X X #include "adefs.h" X+ #include <stdio.h> X X int condition (bp,cbuf,len) X int bp, len ; Xdiff -r -c 550c/src/adv/exec.c m550c/src/adv/exec.c X*** 550c/src/adv/exec.c Fri Jun 8 10:49:25 1990 X--- m550c/src/adv/exec.c Wed Jun 13 00:02:16 1990 X*************** X*** 135,139 **** X int rnd (n) X int n ; X { X! return ((random())%n) ; X } X--- 135,139 ---- X int rnd (n) X int n ; X { X! return ((rand())%n) ; X } Xdiff -r -c 550c/src/adv/say.c m550c/src/adv/say.c X*** 550c/src/adv/say.c Fri Jun 8 10:49:09 1990 X--- m550c/src/adv/say.c Wed Jun 13 00:00:28 1990 X*************** X*** 10,15 **** X--- 10,16 ---- X */ X X #include "adefs.h" X+ #include <stdio.h> X X int say (key) X register int key ; Xdiff -r -c 550c/src/kio/Makefile m550c/src/kio/Makefile X*** 550c/src/kio/Makefile Fri Jun 8 10:49:31 1990 X--- m550c/src/kio/Makefile Wed Jun 13 00:01:21 1990 X*************** X*** 25,33 **** X -ar x $(KLIB) X -cc $(CFLAGS) -c $? X rm -f $(KLIB) X! -ar ru $(KLIB) $(OBJ) X! rm -f *.o X! ranlib $(KLIB) X X clean: X rm *.o X--- 25,33 ---- X -ar x $(KLIB) X -cc $(CFLAGS) -c $? X rm -f $(KLIB) X! -ar r $(KLIB) $(OBJ) X! # rm -f *.o X! # ranlib $(KLIB) X X clean: X rm *.o Xdiff -r -c 550c/src/kio/kio.h m550c/src/kio/kio.h X*** 550c/src/kio/kio.h Fri Jun 8 10:49:38 1990 X--- m550c/src/kio/kio.h Tue Jun 12 21:55:52 1990 X*************** X*** 9,15 **** X--- 9,17 ---- X ** X */ X X+ #if 0 X #include <sys/file.h> X+ #endif X X #define MAXENTRIES 16 X #define MAXIBLK 1024 Xdiff -r -c 550c/src/munge/Makefile m550c/src/munge/Makefile X*** 550c/src/munge/Makefile Fri Jun 8 10:49:41 1990 X--- m550c/src/munge/Makefile Wed Jun 13 00:01:38 1990 X*************** X*** 27,35 **** X -ar x $(MLIB) X -cc $(CFLAGS) -c $? X rm -f $(MLIB) X! -ar ru $(MLIB) $(OBJ) X! rm -f *.o X! ranlib $(MLIB) X X clean: X rm *.o X--- 27,35 ---- X -ar x $(MLIB) X -cc $(CFLAGS) -c $? X rm -f $(MLIB) X! -ar r $(MLIB) $(OBJ) X! # rm -f *.o X! # ranlib $(MLIB) X X clean: X rm *.o Xdiff -r -c 550c/src/munge/fio.c m550c/src/munge/fio.c X*** 550c/src/munge/fio.c Fri Jun 8 10:54:46 1990 X--- m550c/src/munge/fio.c Wed Jun 13 00:32:46 1990 X*************** X*** 25,36 **** X--- 25,39 ---- X X static struct files fx[15] = X { X+ #if 0 X { "(stdin)", 0, stdin }, X { "(stdout)", 0, stdout }, X { "(stderr)", 0, stderr }, X+ #else X { "", 0, NULL }, X { "", 0, NULL }, X { "", 0, NULL }, X+ #endif X { "", 0, NULL }, X { "", 0, NULL }, X { "", 0, NULL }, X*************** X*** 39,44 **** X--- 42,50 ---- X { "", 0, NULL }, X { "", 0, NULL }, X { "", 0, NULL }, X+ { "", 0, NULL }, X+ { "", 0, NULL }, X+ { "", 0, NULL }, X { "", 0, NULL } X } ; X X*************** X*** 47,52 **** X--- 53,71 ---- X X static char inbuf[MAXLINE] ; X static short int ibp = MAXLINE ; X+ X+ int initf() X+ { X+ char *fnam ; X+ int cnt ; X+ FILE *fd ; X+ fx[0].fnam = "(stdin)"; X+ fx[0].fd = stdin; X+ fx[1].fnam = "(stdout)"; X+ fx[1].fd = stdout; X+ fx[2].fnam = "(stderr)"; X+ fx[2].fd = stderr; X+ } X X int openf (name) X Xdiff -r -c 550c/src/munge/majors.c m550c/src/munge/majors.c X*** 550c/src/munge/majors.c Fri Jun 8 10:54:48 1990 X--- m550c/src/munge/majors.c Tue Jun 12 22:59:01 1990 X*************** X*** 127,133 **** X return ; X } X X! #include <strings.h> X X int inc () X { X--- 127,133 ---- X return ; X } X X! #include <string.h> X X int inc () X { Xdiff -r -c 550c/src/munge/munge.c m550c/src/munge/munge.c X*** 550c/src/munge/munge.c Fri Jun 8 10:49:45 1990 X--- m550c/src/munge/munge.c Wed Jun 13 00:33:04 1990 X*************** X*** 17,22 **** X--- 17,23 ---- X char *argv[] ; X X { X+ initf(); X if ( argc > 2 ) X { X printf ("Usage: %s [commandfile]\n",argv[0]) ; SHAR_EOF $TOUCH -am 0713093290 mdiffs && chmod 0644 mdiffs || echo "restore of mdiffs failed" set `wc -c mdiffs`;Wc_c=$1 if test "$Wc_c" != "4697"; then echo original size 4697, current size $Wc_c fi fi exit 0 -- Frans Meulenbroeks (meulenbr@cst.philips.nl) Centre for Software Technology ( or try: ...!mcsun!phigate!prle!cst!meulenbr)