Kadagaden / shogi-pieces

Shogi (Japanese Chess) pieces and boards
Creative Commons Attribution 4.0 International
34 stars 4 forks source link

Xboard fails to use your themes #3

Open WPFilmmaker opened 3 years ago

WPFilmmaker commented 3 years ago

Hello, first of all thank you for your beautiful sets! I hope to see more for chess variants in the future too.

I am having issues to use them though.

Any idea? Ps: do you know a good engine (possibily opensource) to play shogi and xiangqi which is not Hachu?

I am on Lubuntu 18.04 Xboard 4.9.1

Kadagaden commented 3 years ago

Hi,

That's because the XBoard filename format was dropped in 5864d5ba22a09925346f35193c97f2e45ea5aff2

The filenames are for pychess.org by default, but you can use them with XBoard or other programs by renaming the files. I made a shell script for this, see shogitool.sh which now I uploaded to this repository. Copy shogitool.sh into the directory of a piece set (eg. kanji_red_wood) and run ./shogitool.sh --help for more information. For example, you can rename the files to the XBoard naming format by ./shogitool.sh p2x

You can permanently add themes by editing the Theme list: View -> Edit Theme List -> here you can add the themes like this (one line, one theme):

"shogi kanji red wood" -ubt true -lbtf /PATH_TO/tile_wood4.png -dbtf /PATH_TO/tile_wood4.png -pid /PATH_TO/kanji_red_wood

(note: this is one line!)

Of course, you need to edit the PATH, the line above is just an example.

Sorry, I'm not familiar with Hachu and I cannot really recommend an engine for XBoard. Maybe on Reddit you can find some recommendation. I used XBoard mainly for testing the themes/pieces, not really for playing against an engine.