The problem here is the w04, which is used on FICS to indicate 'wild' variant number 4.

Before the invention of the PGN Variant tag, XBoard used the value of the event tag for recognizing the variant. This has always been a source of trouble like experienced here, but was difficult to remove without breaking backward compatibility (especially for use as a FICS / ICC client).

It should be possible to be somewhat more selective than inn these examples before accepting occurrence of a certain string as a variant indicator. E.g. if there is no space before the 'w', and it is not at the start of the Event value, is would obviously not be an abbreviation for 'wild', and '960' that is part of a larger number, as evidenced by being prefixed or suffixed by other digits, should rule out it hints at Chess960.

I will look into it.

H.G.


Alan Bennet schreef op 14-11-2025 11:47:
Hi,

When I load the following PGN game:

[Event "rapid club 1sw04 g30m"]
[Result "1-0"]

e4 e5 Nf3 1-0

I get an error dialog:
Variant nocastle not supported by Stockfish 17.

I remember before I had an Event tag like
[Event "... | 1960 | ..."]

triggering a message about Chess960 not being supported so I guess this is something similar.

What pattern should I be avoiding this time?

$ xboard --version
xboard version 4.9.1

configure options: prefix=/usr; datarootdir=/usr/share; datadir=/usr/share; gamedatadir=/usr/share/games/xboard; desktopdir=/usr/share/applications; mimedir=/usr/share/mime/packages; iconsdir=/usr/share/icons/hicolor/48x48/apps; svgiconsdir=/usr/share/icons/hicolor/scalable/apps; infodir=/usr/share/info; sysconfigdir=; update_mimedb=yes; NLS=yes; GTK=yes; Xaw3d=no; Xaw=no; ptys=pipes; zippy=yes; sigint=yes

Reply via email to