[comp.sources.d] spacewar madness...

dent@unocss.UUCP (Dave Caplinger) (06/20/88)

A desperate question: has /anyone/ successfully compiled spacewar
under:

1) SYS V
2) BSD 4.2 (or 4.3)
3) VMS 4.6 (or 4.7)

I have all three systems accessible (in a way) to me here (because the 
Sequent Balance 8000 under DYNIX purports to do both UCB and ATT universes)

Intriguingly, I got it to compile under BSD, after a little messing around;
nothing major, but it simply doesn't work.  It gets far enough to "starting
up the game" (or was that "cranking"? :-)  and it asks me for my name,
turns off echo to my terminal and hangs.  Hitting ctrl-c re-prompts me for
my name, but never does ask for a password.

So anyway, I ctrl-z'ed out and killed the process and noticed that swerr was
filled with "Error 0".

So, I gave it up and tried compiling it in the AT&T universe, but to no avail
because it wouldn't find termlib.a, dbm.a, and m.a.  So I copied them into my
account and it finally gave up with __ctype__ undefined.

So I'm a little lost, and was wondering if anyone could post a "success story"
concerining the successfull compilation and execution of spacewar, on any of
the three systems.  Your help would be /greatly/ appreciated!

-/ Dave Caplinger /--------------+--------------------------------------------
 Microcomputer Specialist        | Internet: UNOCC07%ZEUS.DNET@FERGVAX.UNL.EDU
 Campus Computing                | UUCP:     {ihnp4}!unocss!dent
 University of Nebraska at Omaha | Bitnet:   UNOCC07@UNOMA1
 Omaha, NE 68182                 |   or      dc3a+@andrew.cmu.edu

kus3@sphinx.uchicago.edu (Bob Kusumoto) (06/28/88)

I compiled it under BSD4.3 successfully after messing around a bit. A few
things to note after playing around with it:

a) there is a psw.sh file that is supposed to be executable and run which does
   work fine.

b) after loading in the termcap you choose, it puts out a bunch of numbers on
   the screen (probably delays for vt100) so the screen looks like a mess.

c) there's always the problem with a process lying around from the last person
   in the game who quit by break-ing of it. It can chew up lots of CPU time if
   you leave it alone.


good luck
-- 
	Bob Kusumoto                         |           Follow me!
Internet: kus3@sphinx.uchicago.edu           | I'll play the game you want me,
BITNET:   kus3@sphinx.uchicago.bitnet        |  Until I find a way back home.
UUCP:    {ihnp4!gargoyle,oddjob}!sphinx!kus3 | --- Genesis, "One for the Vine"

kluft@hpcupt1.HP.COM (Ian Kluft) (06/28/88)

dent@unocss.UUCP (Dave Caplinger) writes:
> A desperate question: has /anyone/ successfully compiled spacewar
> under:
>
> 1) SYS V
> 2) BSD 4.2 (or 4.3)
> 3) VMS 4.6 (or 4.7)

I got it running on HP-UX 2.0 which is System V with BSD extentions.  The only
BSD feature I needed to use was the dbm library.

> So, I gave it up and tried compiling it in the AT&T universe, but to no avail
> because it wouldn't find termlib.a, dbm.a, and m.a.  So I copied them into my
> account and it finally gave up with __ctype__ undefined.

Use curses instead of termlib.  You may need to check the comp.sources directory
to find a dbm library for SysV.

> So I'm a little lost, and was wondering if anyone could post a "success story"
> concerining the successfull compilation and execution of spacewar, on any of
> the three systems.  Your help would be /greatly/ appreciated!

Another note is that you need to create a named pipe called swcomm.  Otherwise,
the processes can't talk to each other.

BTW, by giant coincidence, the original author of Spacewar, David Fotland,
(Dan Rosenblatt credits him with the original version in the opening paragraph
of the docs) **just happens** to work downstairs in the same building I work
in.  He says he's got a different version he's been working on and it's for
System V.  So, SysV people may yet have hope of a multi-user spacewar game if
they can't get this working.

------------------------------------------------------------------
    Ian Kluft			RAS Lab
    UUCP: hplabs!hprasor!kluft	HP Systems Technology Division
    ARPA: kluft@hpda.hp.com	Cupertino, CA
------------------------------------------------------------------