msw@cpsc.ucalgary.ca (Mark Williams) (05/09/89)
I'm having some problems with xtrek: (if this has been covered before apologies
and could some kind soul email me the solutions %).
Machine: NFS Suns 3/50 3/60 3/75 running from 3/180 and Sun4. All running
Sun4.0 OS
Game: xtrek v1.2
Problems:
1) I don't have access to the root passwd so I'm unable to put the
following lines into the required /etc files:
xtrek stream tcp wait games /usr/games/lib/xtrek/in.xtrekd in.xtrekd
---> inetd.conf
xtrek 5701/tcp xtrek # take a guess
---> services
What I had to do was change main.c so that it always grabs port 5701
i.e.: xtrekAddress.sin_port = 5701
Is this the right solution to run the daemon without using the /etc
stuff?
2) The game runs fine if you play it by yourself but no-one else can
enter the same game from another machine. When someone else types
xtrek <firedup machine name> it either throws up the xtrek on the
<firedup machine name>'s machine or complains that it can't access the
display (Problems with display <otherplayer's machine name>). I've
traced the problem to the line:
if ((p->display = XOpenDisplay(p->p_monitor)) == NULL) {
in newwin. I didn't compile X with -g so I can't debug any further than
this (I want to avoid re-compiling with -g as it *only* takes 8 hours).
What do I have to do to get more than one player in the same system?
All help much appreciated.
Thanks in advance,
Mark Williams
In reality: msw@cpsc.UCalgary.CA or ...!{uunet!ubc-cs, utai}!calgary!msw