ELKS port of Adventure - help needed :)

Paul Nasrat
2002-12-10T13:07:28Z

I grabbed the src of adventure

wget -r -l 1 -nH --cut-dirs=5 \
http://www.cise.ufl.edu/class/cop4600/minix/src/commands/advent/

make clean to get rid of the binaries.

I've fixed up the make file which compiles. (patch below)

Install the dat files to /usr/lib/advent and use elksemu to run
adventure

[paul@bender advent]$ file advent
advent: Linux-8086 executable not stripped
[paul@bender advent]$ ./advent
<Generic Adventure -- Version:7.0, July 1994>
...

The game will accept y/n for the first input for instructions but the
word processing is b0rked.

> north
I didn't understand the word "north"

I imagine it's something fixable in the src's, I'd like to get it
running though as I'm going to a lan party with only an 8086 laptop to
take :)

Any adventure hackers got any clue

Paul

--- Makefile.old 1997-09-22 15:46:59.000000000 +0100
+++ Makefile 2002-12-10 12:35:50.000000000 +0000
@@ -9,10 +9,11 @@
#
# On Minix, use '-m' in CFLAGS and '-i' in LDFLAGS.

-CC = mcc
-CFLAGS = -D_POSIX_SOURCE
+CC = bcc
+GCC = gcc
+LD = ld86
+CFLAGS = -0
LDFLAGS =
-GCC = /usr/local/bin/gcc

OBJS = advent.o database.o english.o initial.o itverb.o score.o\
travel.o turn.o utility.o verb.o vocab.o
@@ -22,7 +23,7 @@
all: $(DAT) advent

advent: $(OBJS)
- $(CC) $(LDFLAGS) -o advent -S 16kw $(OBJS)
+ $(CC) $(LDFLAGS) -o advent $(OBJS)

setup: setup.c advent.h
$(GCC) -o setup setup.c