[comp.sources.d] Spacewar not running under Ultrix

gph@unh.UUCP (Gerard P Hickey) (06/30/88)

In article <12189@prls.UUCP>, gordon@prls.UUCP (Gordon Vickers) writes:
>   However, it doesn't seem to be doing much. When the SWMASTER invokes
>   the program, a message indicating that the program is initalizing appears
>   but nothing happened after that.  I let the program 'run' for five
>   minutes during which time the cpu load factor never exceeded 0.4 so
>   I assume the program simply hung up somewhere..... 

I too got Space war to compile correctly, but I have the same problems. I even
let the program run for about a half hour as I was looking at the source code.

My investigations into the program have been profitless. When I try to execute
SW directly, it gives me a partial listing of FINGER -S. If I try to execute
it with ./SW, the program either immediatly exits or it returns with an error
saying that SWCOMM exists. 

I have been compiling the program with the BSD and DEBUG flags set, and have
been able to get up to the GETINP routine before the program exits. Although 
the system prompt comes back when the object file is closed.  

Another odd thing is that when I try to start the program up from PSW (since
I have been recompiling the code, with no real change other than a few debug
statements), I get an error saying that there was not enough swap space.

Another thing that I have done, is changed the /dev/con in SW.C to /dev/tty, 
which seems to give better results. What does this do? It does not really 
write to the console. It seems useless because a lot of the people that 
would be playing the game do not have the ability to read the console.

I would appretiate any help anyone can spare. I would like to set up a small
group to send messages back and forth to discuss the progress made on this 
program.

                                               Gerard Hickey
                                               University of New Hampshire
                                               Durham, NH    USA
                                               gph@unh.UUCP