[comp.unix.questions] Hack/Nethack and Xenix

XBR1YD3O%DDATHD21.BITNET@cunyvm.cuny.edu (10/10/88)

I have problems running Hack or Nethack on a machine with
SCO Xenix. When I use the ready compiled version 1.0.2 of Hack
distributed on the SCO Games Disk, the program crashes with the
message "memory fault", when I try to get below level 27.

I got Nethack 2.2 from archives@mcf.uucp including a makefile
for xenix. When I try to compile it, "make" stops after the
"makedefs -o" command with an "error code 1". After running
"make" a second time, the compiler indicates a syntax error
in line 4 of permonst.h, but I cannot see a mistake there.

Does anyone know how to compile Nethack or where to get
Hack 1.0.3 for xenix?

Juergen Baumgartl, xbr1yd3o@ddathd21.bitnet

JPLILER@simtel20.army.mil (John R. Pliler) (10/12/88)

Which xenix machine are you trying to compile 2.2 on?  I was able
to get it to compile on a Intel 320 machine with Xenix 3.5 after
some *serious* tweaking.

John R. Pliler
Electronics Engineer
White Sands Missile Range, New Mexico
-------

jtc@tessera.UUCP (J.T. Conklin) (10/13/88)

In article <17278@adm.ARPA> XBR1YD3O%DDATHD21.BITNET@cunyvm.cuny.edu writes:
>I have problems running Hack or Nethack on a machine with
>SCO Xenix. When I use the ready compiled version 1.0.2 of Hack
>distributed on the SCO Games Disk, the program crashes with the
>message "memory fault", when I try to get below level 27.
>

I have found three bugs in SCO's hack.  Here is the fix for one, and 
how the others can be avoided.

  * SCO linked hack without enough stack space.  This causes it to dump
    core when you get to a maze level.  Fix by doing a "fixhdr -F 3000"
    to the hack executable, "/usr/games/lib/hackdir/hack."

  * Wishing for an item that doesn't exist, or misspelling one that does,
    causes hack to dump core.  No fix for this, just be _very_ careful
    when wishing.

  * Engraving with your finger drops a cursed weapon.  Strong willpower
    will keep you from exercising this bug to your own advantage.

By the way, wizard mode is enabled for the account "eric"
Just hack -D and away you go.

	-- jtc

-- 
J.T. Conklin	(..!ubc-cs!fornax!syssol!seacbc!tessera!jtc)
		4831 Hickory Court, Burnaby, B.C  Canada
		(604) 435-9458