Been tinkering a few hours and hitting a wall.
https://openchessdb.com/game-report.html
Says the move is invalid, but its a legal move. Have tried variations and even loading test data from the pgn4web pgns (puzzles) and the syntax of my pgn data appears valid.
After clicking next move, the top left corner will blink that is pgn4webs debugger you can click on it to see the error log.
Any help is greatly appreciated.
Pgn4Web Help Requested
Moderator: Ras
-
jshriver
- Posts: 1388
- Joined: Wed Mar 08, 2006 9:41 pm
- Location: Morgantown, WV, USA
-
Guenther
- Posts: 4718
- Joined: Wed Oct 01, 2008 6:33 am
- Location: Regensburg, Germany
- Full name: Guenther Simon
Re: Pgn4Web Help Requested
Are you sure pgn4web supports this long simplified format (looks like plain engine pv output) at all? At least it is not pgn of course.jshriver wrote: ↑Mon Feb 15, 2021 9:14 am Been tinkering a few hours and hitting a wall.
https://openchessdb.com/game-report.html
Says the move is invalid, but its a legal move. Have tried variations and even loading test data from the pgn4web pgns (puzzles) and the syntax of my pgn data appears valid.
After clicking next move, the top left corner will blink that is pgn4webs debugger you can click on it to see the error log.
Any help is greatly appreciated.
Code: Select all
1... d6d3 2. c2d3 e5b2 3. g2h1 e3e2 4. d3d4 e2e1q 5. g5g1 e1g1 6. h1g1 c5d4 7. f4d4 b2d4 8. g1f1 d4a4 9. f1e2 a4c2 10. e2e3 a5a4 11. h3h4 a4a3 12. e3f3 c2e4 13. f3g3 a3a2 14. h4h5 e4g4 15. g3f2-
jshriver
- Posts: 1388
- Joined: Wed Mar 08, 2006 9:41 pm
- Location: Morgantown, WV, USA
Re: Pgn4Web Help Requested
Thanks, I was also surprised to see the pgn4web author reply within an hour as well. Didn't know that PGN required Rxd3, figured everything supported plain algebraic notation. You are correct its PV output. Looks like I will have to write code to convert from pv to pgn, unless something already exists.Guenther wrote: ↑Mon Feb 15, 2021 9:46 am
Are you sure pgn4web supports this long simplified format (looks like plain engine pv output) at all? At least it is not pgn of course.Code: Select all
1... d6d3 2. c2d3 e5b2 3. g2h1 e3e2 4. d3d4 e2e1q 5. g5g1 e1g1 6. h1g1 c5d4 7. f4d4 b2d4 8. g1f1 d4a4 9. f1e2 a4c2 10. e2e3 a5a4 11. h3h4 a4a3 12. e3f3 c2e4 13. f3g3 a3a2 14. h4h5 e4g4 15. g3f2
Thanks Guenther.
-
Guenther
- Posts: 4718
- Joined: Wed Oct 01, 2008 6:33 am
- Location: Regensburg, Germany
- Full name: Guenther Simon
Re: Pgn4Web Help Requested
Did a google search and found this (used google because 'pv' is too short for being used in the forum search here)jshriver wrote: ↑Mon Feb 15, 2021 10:33 amThanks, I was also surprised to see the pgn4web author reply within an hour as well. Didn't know that PGN required Rxd3, figured everything supported plain algebraic notation. You are correct its PV output. Looks like I will have to write code to convert from pv to pgn, unless something already exists.Guenther wrote: ↑Mon Feb 15, 2021 9:46 am
Are you sure pgn4web supports this long simplified format (looks like plain engine pv output) at all? At least it is not pgn of course.Code: Select all
1... d6d3 2. c2d3 e5b2 3. g2h1 e3e2 4. d3d4 e2e1q 5. g5g1 e1g1 6. h1g1 c5d4 7. f4d4 b2d4 8. g1f1 d4a4 9. f1e2 a4c2 10. e2e3 a5a4 11. h3h4 a4a3 12. e3f3 c2e4 13. f3g3 a3a2 14. h4h5 e4g4 15. g3f2
Thanks Guenther. :D
http://www.talkchess.com/forum3/viewtopic.php?t=69220
Norms' tool seems to do what you want :)
Ouch, it seems the download does not work anymore.
You should look directly at Norms site for his tool collections. Good luck.
http://40h.000webhostapp.com/
Edit:
It's also possible that pgn-extract does this directly. (Norms tools often work together with pgn-extract anyway)
-
Guenther
- Posts: 4718
- Joined: Wed Oct 01, 2008 6:33 am
- Location: Regensburg, Germany
- Full name: Guenther Simon
Re: Pgn4Web Help Requested
That assumption was very true. It can read all kind of input and output valid pgn. Your example is a cake for it :)
Code: Select all
pgn-extract josh.pgn -ojoshx.pgninput(directly from your example via 'c8' square pgn4web):
Code: Select all
[Result "1-0"]
[SetUp "1"]
[FEN "8/6k1/1p1r2p1/p1b1qpQ1/P4R2/3Bp2P/1PP3K1/8 b - - 1 1"]
1... d6d3 2. c2d3 e5b2 3. g2h1 e3e2 4. d3d4 e2e1q 5. g5g1 e1g1 6. h1g1 c5d4 7. f4d4 b2d4 8. g1f1 d4a4 9. f1e2 a4c2 10. e2e3 a5a4 11. h3h4 a4a3 12. e3f3 c2e4 13. f3g3 a3a2 14. h4h5 e4g4 15. g3f2 1-0Code: Select all
[Event "?"]
[Site "?"]
[Date "????.??.??"]
[Round "?"]
[White "?"]
[Black "?"]
[Result "1-0"]
[SetUp "1"]
[FEN "8/6k1/1p1r2p1/p1b1qpQ1/P4R2/3Bp2P/1PP3K1/8 b - - 1 1"]
1... Rxd3 2. cxd3 Qxb2+ 3. Kh1 e2 4. d4 e1=Q+ 5. Qg1 Qxg1+ 6. Kxg1 Bxd4+ 7.
Rxd4 Qxd4+ 8. Kf1 Qxa4 9. Ke2 Qc2+ 10. Ke3 a4 11. h4 a3 12. Kf3 Qe4+ 13.
Kg3 a2 14. h5 Qg4+ 15. Kf2 1-0-
jshriver
- Posts: 1388
- Joined: Wed Mar 08, 2006 9:41 pm
- Location: Morgantown, WV, USA
Re: Pgn4Web Help Requested
Wonderful, thank you both so much! I pluged that pgn into my pgn4web code and worked like a charm. Cheers!