Page 1 of 1

XBoard bitmaps problem.

PostPosted: 18 Sep 2014, 19:01
by GiorgosK
Hi! :D

I'm using the latest XBoard with latest Crafty, at OpenSUSE 13.1 x64 KDE.
I was trying to use Montauk pieces with XBoard.
I unzipped them to /usr/share/games/xboard/themes/ and I entered the path, at View -> Board -> Directory -> (path) -> OK.
(Or alternatively set -pieceImageDirectory "/usr/share/games/xboard/themes/xboard/alpha/montauk/" at ~/.xboardrc.

However, nothing was happened.
This setting, doesn't seems to work.

I also tried unzipping the bitmaps at my home directory (instead of /usr/share/games/xboard/themes/), with no visible difference.
Does someone knows, any details about that?

TIA! :D
Giorgos.

Re: XBoard bitmaps problem.

PostPosted: 18 Sep 2014, 21:26
by H.G.Muller
The only Google hit I got for Montauk + Chess pieces led me to .xpm piece images.

XBoard does not support .xpm anymore. The only formats that are still supported are PNG and SVG. If it cannot find any SVG in the directory you specify it tries to find PNG, and if that doesn't work it falls back on its default SVG images. You could try to convert the .xpm to .png, e.g. through the command

convert k72ll.xpm WhiteKing.png

(and 11 similar commands for the other pieces), so that you at least have them in png format for 72x72 squares. XBoard could then use those for 72x72 (where they should give exactly the same result as you are used to for the XPM), and can scale them to nearby sizes without too much loss of quality (unlike SVG, PNG cannot be scaled to any size without getting very ugly). Or you could repeat the conversion process for other size bitmaps (putting them in another directory, as the image files now have the same name for all sizes), and use that directory as -pid when you run XBoard with that board size.

Re: XBoard bitmaps problem.

PostPosted: 18 Sep 2014, 23:46
by GiorgosK
MANY THANKS!!! :D
I'll try that.