Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while analysing a PGN string. #155

Closed
Hellchess opened this issue Jun 5, 2019 · 5 comments
Closed

Error while analysing a PGN string. #155

Hellchess opened this issue Jun 5, 2019 · 5 comments

Comments

@Hellchess
Copy link

Hellchess commented Jun 5, 2019

Why is this a problem again? It's not so long since I check that the games were ok, but now there's a conflict again. What is the solution?

@Hellchess
Copy link
Author

Error while analysing a PGN string.
Unrecognized character or group of characters.
Occurred at position 0:

[Event "Xtracon Chess Open 2018"]... ^

@yo35
Copy link
Owner

yo35 commented Jun 8, 2019

Hi,
Maybe the line break is missing after the event header. It should be:

[Event "Xtracon Chess Open 2018"]
[Site "Somewhere"]
...

And not:

[Event "Xtracon Chess Open 2018"] [Site "Somewhere"] ...

@GaborHorvath11
Copy link

I have the same error message:

Error while analysing a PGN string.
Unrecognized character or group of characters.
Occurred at position 0:

[Event "Dorset Open 2017"]
... ^

And this is my PGN, straight from Chessbase:

[pgn]

[Event "Dorset Open 2017"] 
[Site "?"]
[Date "2017.10.15"]
[Round "4"]
[White "Horvath, Gabor"]
[Black "Merry, Alan"]
[Result "1-0"]
[ECO "B01"]
[Annotator "Gabor"]
[PlyCount "57"]
[SourceVersionDate "2013.05.04"]

  1. e4 d5 2. exd5 Qxd5 3. Nc3 Qd8 4. d4 g6 5. Nf3 Bg7 6. Bc4 Nf6 7. O-O O-O 8.
    h3 $6 (8. Ne5 Nbd7 9. Re1 Nxe5 10. dxe5 Qxd1 11. Rxd1 Ng4 12. f4 $16) 8... b6
  2. Re1 Bb7 10. Bg5 Nc6 11. a3 $6 (11. Qd2 e6 12. Rad1 Ne7 13. Ne5) 11... h6 12.
    Bf4 e6 13. Qd2 Ne7 14. Ne5 Nf5 15. Rad1 Qe7 $4 (15... Kh7 16. Bh2 Qe7) (15...
    Rc8 16. Nxf7 $6 Rxf7 17. Bxe6 Qf8 18. Qd3 Kh7) 16. Nxg6 fxg6 17. Bxe6+ Kh7 18.
    Bxf5 Qd8 19. Bd3 Nd5 20. Bg3 Nxc3 21. bxc3 Qd7 22. Be5 Rad8 23. Bxg7 Qxg7 24.
    Be4 Bc8 25. Qe3 Rf6 26. Qg3 Rdf8 27. Re2 R8f7 28. Rde1 Qf8 29. Bd5 1-0

[/pgn]

Please advise. Many thanks!

@yo35
Copy link
Owner

yo35 commented Dec 20, 2019

You may have a problem with the line breaks in your PGN. Still the parser should be more robust to this kind of issues. I'll push a fixed.

@yo35
Copy link
Owner

yo35 commented Dec 20, 2019

Hi,
It should be better with RPB Chessboard version 5.6.5 (just released). Let me know if this is not the case.

@yo35 yo35 closed this as completed Dec 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants