You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting from a valid PGN file with {bracketed comments}, opening in Stockfish and then saving it, Stockfish removes all the "{" and "}" in all the games, rendering the PGN invalid. See the attachment for a minimal before and after example.
$ pgn-extract -r -s test0.pgn
$ pgn-extract -r -s test1.pgn
No knight move possible to g7.
File test1.pgn: Line number: 11
Failed to make move 2... Nxg7+ in the game:
.q.k...r
.p.nb.Np
pB....b.
N...p.P.
r.......
..Q.....
PPP.....
..KR.R..
I am also having this issue. This can be rather frustrating as most PGNs from online chess come with at least one comment these days, it seems. The fix should be simply respecting the brackets currently present where they are, or adding comment logic to the software itself.
Starting from a valid PGN file with {bracketed comments}, opening in Stockfish and then saving it, Stockfish removes all the "{" and "}" in all the games, rendering the PGN invalid. See the attachment for a minimal before and after example.
Steps to reproduce:
$ cp test0.pgn test1.pgn
$ cp test0.pgn test2.pgn
Stockfish
Stockfish
$ pgn-extract -r -s test0.pgn
$ pgn-extract -r -s test1.pgn
No knight move possible to g7.
File test1.pgn: Line number: 11
Failed to make move 2... Nxg7+ in the game:
.q.k...r
.p.nb.Np
pB....b.
N...p.P.
r.......
..Q.....
PPP.....
..KR.R..
[big snip/]
Stockfish Version 2.2.3 (31)
MacBookAir9,1
macOS Catalina Version 10.15.7
test-Stockfish-Save-pgn.zip
The text was updated successfully, but these errors were encountered: