[comp.sources.games.bugs] Help running XConq

emery@Dr_No.mitre.org (David Emery) (06/13/91)

We traded in some Sun-3s for color SparcStations, and I'm trying to
rebuild XConq.  I have the same problem with XConq 5.1 and 5.4.
Everything compiles and links OK, but when I run it I get the
following error messages:
  Can't open fonts "standard" or "/home/aries/emery/XCONQ/lib/standard.snf" on "unix:0.0"
  No font to substitute!!
  Can't open fonts "xconq" or "/home/aries/emery/XCONQ/lib/xconq.snf" on "unix:0.0"
  No font to substitute!!

But the files "home/aries/emery/XCONQ/lib/standard.snf" and
".../xconq.snf" exist!

Does anyone know what's going on here?

			thanks		dave emery

emery@Dr_No.mitre.org (David Emery) (06/13/91)

Two things fixed the problem.  One was runing bdftosnf on each of the
fonts and then running mkfontlib in the font directory.  The other
thing I needed to do is explained in the following note.

	Thanks to everyone who helped.
			dave`
---------------
 From: daybell%sal-sun86.usc.edu@usc.edu (Donald Daybell)

I used to have this problem as well.  Took forever for me to track
down what the problem was.  What is happening is that when xconq goes
to look for the fonts, it cannot find them.  What you need to do is go
to the directory where your fonts are and type "mkfontdir".  This
should set up the directory so that the fonts are locatable.  You also
may need to change your fontpath variable to reflect the fact that the
fonts are not in the standard places.  What I do is run the following
bit of code prior to each time I start the game.  Each player should
do this for his workstation.

#!/bin/csh -f
xset fp= /usr/usc/X11R4/lib/fonts/misc/,/usr/usc/X11R4/lib/fonts/75dpi/,/usr/usc/X11R4/lib/fonts/100dpi/,/home/chaph7/daybell/Bin/Xconq5.4/lib/

note that this resets the fontpath variable, so if you have any
special paths you use, you'll need to add them to the above code.
Also, you should substitute your paths for mine.

Let me know if you have any further problems.

Donald Daybell		daybell@usc.edu

tin@smsc.sony.com (Le Tin) (06/14/91)

In article <EMERY.91Jun12134953@Dr_No.mitre.org> emery@Dr_No.mitre.org (David Emery) writes:
>We traded in some Sun-3s for color SparcStations, and I'm trying to
>rebuild XConq.  I have the same problem with XConq 5.1 and 5.4.
>Everything compiles and links OK, but when I run it I get the
>following error messages:
>  Can't open fonts "standard" or "/home/aries/emery/XCONQ/lib/standard.snf" on "unix:0.0"
>  No font to substitute!!
>  Can't open fonts "xconq" or "/home/aries/emery/XCONQ/lib/xconq.snf" on "unix:0.0"
>  No font to substitute!!
>
>But the files "home/aries/emery/XCONQ/lib/standard.snf" and
>".../xconq.snf" exist!
>
>Does anyone know what's going on here?

I've sent mail but will post too in case someone else has the same problem.


  You need to run "mkfontdir /home/aries/emery/XCONQ/lib" to create
  fonts.dir and fonts.alias files.  X uses that to find the fonts it need.

  You might also need to run 'xset fp rehash' to force X to reread the
  fonts directories.

-- Tin


-- 
.----------------------------------------------------------------------
. Tin Le                    Work Internet: tin@smsc.Sony.COM
. Sony Microsystems              UUCP: {uunet,mips}!sonyusa!tin
. Work: (408) 944-4157      Home Internet: tin@szebra.saigon.com

tjc@ecs.soton.ac.uk (Tim Chown) (06/14/91)

In <EMERY.91Jun12134953@Dr_No.mitre.org> emery@Dr_No.mitre.org (David Emery) writes:

>We traded in some Sun-3s for color SparcStations, and I'm trying to
>rebuild XConq.  I have the same problem with XConq 5.1 and 5.4.
>Everything compiles and links OK, but when I run it I get the
>following error messages:
>  Can't open fonts "standard" or "/home/aries/emery/XCONQ/lib/standard.snf" on "unix:0.0"
>  No font to substitute!!
>  Can't open fonts "xconq" or "/home/aries/emery/XCONQ/lib/xconq.snf" on "unix:0.0"
>  No font to substitute!!
>But the files "home/aries/emery/XCONQ/lib/standard.snf" and
>".../xconq.snf" exist!
>Does anyone know what's going on here?

You need to add the fonts to your fontpath.  

First, run mkfontdir in the /home/aries/emery/XCONQ/lib directory
where your .snf files are.  This will make a fonts.dir file.

Then, after setting your DISPLAY environment variable, type

xset fp+ /home/aries/emery/XCONQ/lib
xset fp rehash

This should reset your fontpath OK.  You can check by typing

xlsfonts | grep "standard"
xlsfonts | grep "xconq"

Both should report the font as existing.

Then you're away.

Maybe.

	Tim
--