Export bin book to pgn

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

User avatar
Guenther
Posts: 4610
Joined: Wed Oct 01, 2008 6:33 am
Location: Regensburg, Germany
Full name: Guenther Simon

Re: Export bin book to pgn

Post by Guenther »

hgm wrote: Tue Feb 16, 2021 11:09 am I am not sure what 'Polyglot-tolerant' is. But did the standard Polyglot option 'dump-book' with a -color argument not work for you?
AFAIK all polyglots have that dump (color) feature. But as reported several times (by me) it doesn't work correctly at least under WIN.
(A forum search will reveal several examples created by me - no one ever tried to fix it so far...)

The dump files always are not written to the end and some parts (10-20% my estimation) at the end are simply omitted inmidst of the
last line. (and it has nothing to do with the size of the book - it happens always and I tested it)

I guess the OP simply did not realize this.

One example is here:
http://talkchess.com/forum3/viewtopic.p ... mp#p718824
https://rwbc-chess.de

trollwatch:
Talkchess nowadays is a joke - it is full of trolls/idiots/people stuck in the pleistocene > 80% of the posts fall into this category...
User avatar
hgm
Posts: 27809
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Export bin book to pgn

Post by hgm »

That sounds like the output file is not properly flushed after writing, so that part of the data remains in the buffer. Strange, as normally exiting a program should force such a flush operation, even in Windows. I will have a look at it.
Jonathan003
Posts: 239
Joined: Fri Jul 06, 2018 4:23 pm
Full name: Jonathan Cremers

Re: Export bin book to pgn

Post by Jonathan003 »

hgm wrote: Tue Feb 16, 2021 11:09 am I am not sure what 'Polyglot-tolerant' is. But did the standard Polyglot option 'dump-book' with a -color argument not work for you?
Yes that is the option I use with polyglot-tolerant, 'dump-book' with a -color argument.
I downloaded polyglot-tolerant from here: https://chess.massimilianogoi.com/downl ... ttolerant/

I use a windows 10 64 bit pc.
I tried other tools for making bin books, but I often get error messages when I try to make a bin book.
Especially if I try to make a bin book from a huge pgn database with millions of games.
I don't remember what the error messages where, I think it was 'not enough space', or 'not enough memory' or something.
With polyglot-tolerant I never get these error messages.
User avatar
Guenther
Posts: 4610
Joined: Wed Oct 01, 2008 6:33 am
Location: Regensburg, Germany
Full name: Guenther Simon

Re: Export bin book to pgn

Post by Guenther »

Jonathan003 wrote: Wed Feb 17, 2021 12:33 pm
hgm wrote: Tue Feb 16, 2021 11:09 am I am not sure what 'Polyglot-tolerant' is. But did the standard Polyglot option 'dump-book' with a -color argument not work for you?
Yes that is the option I use with polyglot-tolerant, 'dump-book' with a -color argument.
I downloaded polyglot-tolerant from here: https://chess.massimilianogoi.com/downl ... ttolerant/

I use a windows 10 64 bit pc.
I tried other tools for making bin books, but I often get error messages when I try to make a bin book.
Especially if I try to make a bin book from a huge pgn database with millions of games.
I don't remember what the error messages where, I think it was 'not enough space', or 'not enough memory' or something.
With polyglot-tolerant I never get these error messages.
Actually I am surprised, this polyglot version is the first I tested, which doesn't have the problem with incomplete dump output!
(I have to admit though that I did not test other polyglots later after my 'active' book making time, which was perhaps 2006-2010)

Below is the output from a very small book (for testing the dump function).
I only pasted the White output, but the difference is obvious.
BTW@HGM I think you diagnosis was spot on.

Code: Select all

C:\ChessTools\Bookmake\PG_Tolerant>polyglot_tolerant dump-book -bin GS70.bin -color white -out GS70W.txt

PolyGlot Tolerant by Massimiliano Goi - https://chess.massimilianogoi.com
loading book ...
generating lines for white...

C:\ChessTools\Bookmake\PG_Tolerant>polyglot_tolerant dump-book -bin GS70.bin -color black -out GS70B.txt

PolyGlot Tolerant by Massimiliano Goi - https://chess.massimilianogoi.com
loading book ...
generating lines for black...
White part

Code: Select all

Dump of "GS70.bin" for white.
1: 1. e4{50%} c6 2. d4{100%} d5 3. e5{67%} c5 4. dxc5{100%} e6 5. Be3{100%} Nd7 6. Nc3{100%} 
2: 1. e4{50%} c6 2. d4{100%} d5 3. e5{67%} Bf5 4. Nc3{100%} e6 5. g4{100%} Bg6 6. Nge2{100%} 
3: 1. e4{50%} c6 2. d4{100%} d5 3. Nc3{33%} dxe4 4. Nxe4{100%} Bf5 5. Ng3{100%} Bg6 6. h4{100%} 
4: 1. e4{50%} c5 2. Nf3{73%} d6 3. d4{86%} cxd4 4. Nxd4{100%} Nc6 5. Nc3{100%} Nf6 6. Bg5{100%} 
5: 1. e4{50%} c5 2. Nf3{73%} d6 3. d4{86%} cxd4 4. Nxd4{100%} Nf6 5. Nc3{100%} a6 6. Be2{50%} 
6: 1. e4{50%} c5 2. Nf3{73%} d6 3. d4{86%} cxd4 4. Nxd4{100%} Nf6 5. Nc3{100%} a6 6. h3{25%} 
7: 1. e4{50%} c5 2. Nf3{73%} d6 3. d4{86%} cxd4 4. Nxd4{100%} Nf6 5. Nc3{100%} a6 6. Bc4{25%} 
8: 1. e4{50%} c5 2. Nf3{73%} d6 3. d4{86%} cxd4 4. Nxd4{100%} Nf6 5. Nc3{100%} g6 6. Be3{100%} 
9: 1. e4{50%} c5 2. Nf3{73%} d6 3. d4{86%} cxd4 4. Nxd4{100%} Nf6 5. Nc3{100%} Nc6 {trans: line=4, ply=10}
10: 1. e4{50%} c5 2. Nf3{73%} d6 3. Bb5+{14%} Bd7 4. Bxd7+{100%} Qxd7 5. O-O{100%} Nc6 6. c3{100%} 
11: 1. e4{50%} c5 2. Nf3{73%} e6 3. d4{100%} cxd4 4. Nxd4{100%} Nc6 5. Nc3{100%} Nf6 6. a3{100%} 
12: 1. e4{50%} c5 2. Nf3{73%} Nc6 3. d4{67%} cxd4 4. Nxd4{100%} d6 {trans: line=4, ply=8}
13: 1. e4{50%} c5 2. Nf3{73%} Nc6 3. d4{67%} cxd4 4. Nxd4{100%} e6 {trans: line=11, ply=8}
14: 1. e4{50%} c5 2. Nf3{73%} Nc6 3. d4{67%} cxd4 4. Nxd4{100%} g6 5. c4{50%} Bg7 6. Be3{100%} 
15: 1. e4{50%} c5 2. Nf3{73%} Nc6 3. d4{67%} cxd4 4. Nxd4{100%} g6 5. Nc3{50%} Bg7 6. Be3{100%} 
16: 1. e4{50%} c5 2. Nf3{73%} Nc6 3. Bb5{33%} e6 4. Nc3{100%} Nge7 5. O-O{100%} a6 6. Bxc6{100%} 
17: 1. e4{50%} c5 2. c3{13%} d5 3. exd5{100%} Qxd5 4. d4{100%} e6 5. Nf3{100%} Nf6 6. Be2{100%} 
18: 1. e4{50%} c5 2. c3{13%} Nf6 3. e5{100%} Nd5 4. d4{100%} cxd4 5. Nf3{100%} Nc6 6. cxd4{100%} 
19: 1. e4{50%} c5 2. Nc3{13%} Nc6 3. g3{100%} g6 4. Bg2{100%} Bg7 5. d3{100%} d6 6. f4{100%} 
20: 1. e4{50%} c5 2. Nc3{13%} Nc6 3. g3{100%} g6 4. Bg2{100%} Bg7 5. d3{100%} e6 6. Be3{100%} 
21: 1. e4{50%} d6 2. d4{100%} Nf6 3. Nc3{100%} g6 4. Nf3{100%} Bg7 5. Be2{100%} O-O 6. O-O{100%} 
22: 1. e4{50%} e6 2. d4{100%} d5 3. Nc3{33%} Bb4 4. e5{100%} c5 5. a3{100%} Bxc3+ 6. bxc3{100%} 
23: 1. e4{50%} e6 2. d4{100%} d5 3. Nd2{33%} Nf6 4. e5{100%} Nfd7 5. Bd3{100%} c5 6. c3{100%} 
24: 1. e4{50%} e6 2. d4{100%} d5 3. e5{33%} c5 4. c3{100%} Nc6 5. Nf3{100%} Qb6 6. a3{100%} 
25: 1. e4{50%} e5 2. Nf3{85%} Nc6 3. Bb5{67%} a6 4. Ba4{75%} Nf6 5. O-O{100%} b5 6. Bb3{100%} 
26: 1. e4{50%} e5 2. Nf3{85%} Nc6 3. Bb5{67%} a6 4. Ba4{75%} Nf6 5. O-O{100%} Be7 6. Re1{100%} 
27: 1. e4{50%} e5 2. Nf3{85%} Nc6 3. Bb5{67%} a6 4. Ba4{75%} Nf6 5. O-O{100%} Nxe4 6. d4{100%} 
28: 1. e4{50%} e5 2. Nf3{85%} Nc6 3. Bb5{67%} a6 4. Bxc6{25%} dxc6 5. O-O{100%} f6 6. d4{100%} 
29: 1. e4{50%} e5 2. Nf3{85%} Nc6 3. Bb5{67%} Nf6 4. d3{50%} Bc5 5. O-O{100%} d6 6. c3{100%} 
30: 1. e4{50%} e5 2. Nf3{85%} Nc6 3. Bb5{67%} Nf6 4. O-O{50%} Nxe4 5. d4{100%} Nd6 6. Bxc6{100%} 
31: 1. e4{50%} e5 2. Nf3{85%} Nc6 3. d4{22%} exd4 4. Nxd4{100%} Bc5 5. Be3{50%} Qf6 6. c3{100%} 
32: 1. e4{50%} e5 2. Nf3{85%} Nc6 3. d4{22%} exd4 4. Nxd4{100%} Bc5 5. Nxc6{50%} Qf6 6. Qd2{100%} 
33: 1. e4{50%} e5 2. Nf3{85%} Nc6 3. Bc4{11%} Nf6 4. d3{100%} Be7 5. O-O{100%} O-O 6. Bb3{100%} 
34: 1. e4{50%} e5 2. Nf3{85%} Nf6 3. Nxe5{50%} d6 4. Nf3{100%} Nxe4 5. d4{100%} d5 6. Bd3{100%} 
35: 1. e4{50%} e5 2. Nf3{85%} Nf6 3. d4{50%} exd4 4. e5{100%} Ne4 5. Qxd4{100%} d5 6. exd6{100%} 
36: 1. e4{50%} e5 2. Bc4{8%} Nf6 3. d3{100%} Bc5 4. Nf3{100%} d6 5. c3{100%} Bb6 6. Nbd2{100%} 
37: 1. e4{50%} e5 2. f4{8%} exf4 3. Nf3{100%} g5 4. h4{100%} g4 5. Ne5{100%} Nf6 6. Bc4{100%} 
38: 1. d4{33%} d5 2. c4{88%} c6 3. Nf3{100%} e6 4. Nbd2{100%} Nf6 5. g3{100%} Be7 6. Bg2{100%} 
39: 1. d4{33%} d5 2. c4{88%} c6 3. Nf3{100%} Nf6 4. Nc3{100%} e6 5. e3{100%} Nbd7 6. Bd3{50%} 
40: 1. d4{33%} d5 2. c4{88%} c6 3. Nf3{100%} Nf6 4. Nc3{100%} e6 5. e3{100%} Nbd7 6. Qc2{50%} 
41: 1. d4{33%} d5 2. c4{88%} dxc4 3. Nf3{100%} Nf6 4. e3{100%} e6 5. Bxc4{100%} c5 6. O-O{100%} 
42: 1. d4{33%} d5 2. c4{88%} e6 3. Nc3{75%} c5 4. cxd5{100%} exd5 5. Nf3{100%} Nc6 6. g3{100%} 
43: 1. d4{33%} d5 2. c4{88%} e6 3. Nc3{75%} Nf6 4. cxd5{50%} exd5 5. Nf3{100%} c6 6. Bf4{100%} 
44: 1. d4{33%} d5 2. c4{88%} e6 3. Nc3{75%} Nf6 4. Bg5{50%} Be7 5. Nf3{100%} h6 6. Bh4{100%} 
45: 1. d4{33%} d5 2. c4{88%} e6 3. Nf3{25%} c6 {trans: line=38, ply=6}
46: 1. d4{33%} d5 2. c4{88%} e6 3. Nf3{25%} Nf6 4. e3{50%} dxc4 {trans: line=41, ply=8}
47: 1. d4{33%} d5 2. c4{88%} e6 3. Nf3{25%} Nf6 4. e3{50%} Be7 5. Bd3{100%} O-O 6. b3{100%} 
48: 1. d4{33%} d5 2. c4{88%} e6 3. Nf3{25%} Nf6 4. Nc3{50%} c6 {trans: line=39, ply=8}
49: 1. d4{33%} d5 2. c4{88%} e6 3. Nf3{25%} Nf6 4. Nc3{50%} Be7 5. Bf4{100%} O-O 6. e3{100%} 
50: 1. d4{33%} d5 2. Nf3{12%} Nf6 3. c4{100%} c6 {trans: line=39, ply=6}
51: 1. d4{33%} d5 2. Nf3{12%} Nf6 3. c4{100%} dxc4 {trans: line=41, ply=6}
52: 1. d4{33%} d5 2. Nf3{12%} Nf6 3. c4{100%} e6 {trans: line=46, ply=6}
53: 1. d4{33%} f5 2. g3{50%} Nf6 3. Bg2{100%} e6 4. c4{100%} d5 5. Nf3{100%} c6 6. O-O{100%} 
54: 1. d4{33%} f5 2. c4{50%} e6 3. Nc3{100%} Nf6 4. Nf3{100%} Bb4 5. g3{100%} b6 6. Bg2{100%} 
55: 1. d4{33%} Nf6 2. c4{92%} e6 3. Nc3{57%} d5 {trans: line=43, ply=6}
56: 1. d4{33%} Nf6 2. c4{92%} e6 3. Nc3{57%} Bb4 4. e3{50%} O-O 5. Bd3{100%} c5 6. Ne2{100%} 
57: 1. d4{33%} Nf6 2. c4{92%} e6 3. Nc3{57%} Bb4 4. e3{50%} O-O 5. Bd3{100%} d5 6. Nf3{100%} 
58: 1. d4{33%} Nf6 2. c4{92%} e6 3. Nc3{57%} Bb4 4. Qc2{25%} O-O 5. a3{100%} Bxc3+ 6. Qxc3{100%} 
59: 1. d4{33%} Nf6 2. c4{92%} e6 3. Nc3{57%} Bb4 4. f3{25%} d5 5. a3{100%} Bxc3+ 6. bxc3{100%} 
60: 1. d4{33%} Nf6 2. c4{92%} e6 3. Nf3{43%} b6 4. g3{67%} Bb7 5. Bg2{100%} Be7 6. O-O{100%} 
61: 1. d4{33%} Nf6 2. c4{92%} e6 3. Nf3{43%} b6 4. g3{67%} Ba6 5. b3{100%} Bb4+ 6. Bd2{100%} 
62: 1. d4{33%} Nf6 2. c4{92%} e6 3. Nf3{43%} b6 4. a3{33%} Bb7 5. Nc3{100%} d5 6. cxd5{100%} 
63: 1. d4{33%} Nf6 2. c4{92%} e6 3. Nf3{43%} d5 {trans: line=46, ply=6}
64: 1. d4{33%} Nf6 2. c4{92%} g6 3. Nc3{100%} d5 4. cxd5{33%} Nxd5 5. e4{100%} Nxc3 6. bxc3{100%} 
65: 1. d4{33%} Nf6 2. c4{92%} g6 3. Nc3{100%} d5 4. Nf3{33%} Bg7 5. Qb3{100%} dxc4 6. Qxc4{100%} 
66: 1. d4{33%} Nf6 2. c4{92%} g6 3. Nc3{100%} d5 4. Bf4{33%} Bg7 5. Nf3{100%} O-O 6. Rc1{100%} 
67: 1. d4{33%} Nf6 2. c4{92%} g6 3. Nc3{100%} Bg7 4. e4{100%} d6 5. Nf3{50%} O-O 6. Be2{100%} 
68: 1. d4{33%} Nf6 2. c4{92%} g6 3. Nc3{100%} Bg7 4. e4{100%} d6 5. f3{50%} O-O 6. Be3{100%} 
69: 1. d4{33%} Nf6 2. Nf3{8%} c5 3. c4{100%} cxd4 4. Nxd4{100%} Nc6 5. Nc3{100%} e6 6. Ndb5{50%} 
70: 1. d4{33%} Nf6 2. Nf3{8%} c5 3. c4{100%} cxd4 4. Nxd4{100%} Nc6 5. Nc3{100%} e6 6. e3{50%} 
71: 1. d4{33%} Nf6 2. Nf3{8%} d5 {trans: line=50, ply=4}
72: 1. c4{9%} c5 2. g3{50%} Nc6 3. Bg2{100%} g6 4. Nc3{100%} Bg7 5. Nf3{100%} Nf6 6. O-O{100%} 
73: 1. c4{9%} c5 2. Nf3{50%} Nf6 3. Nc3{50%} Nc6 4. d4{100%} cxd4 5. Nxd4{100%} {trans: line=69, ply=9}
74: 1. c4{9%} c5 2. Nf3{50%} Nf6 3. g3{50%} b6 4. Bg2{100%} Bb7 5. O-O{100%} e6 6. Nc3{100%} 
75: 1. c4{9%} e5 2. Nc3{75%} Nc6 3. g3{100%} f5 4. Bg2{100%} Nf6 5. d3{100%} Bc5 6. e3{100%} 
76: 1. c4{9%} e5 2. Nc3{75%} Nf6 3. g3{50%} Bb4 4. Bg2{100%} O-O 5. Nf3{100%} Nc6 6. O-O{100%} 
77: 1. c4{9%} e5 2. Nc3{75%} Nf6 3. Nf3{50%} Nc6 4. g3{100%} Bb4 5. Bg2{100%} O-O {trans: line=76, ply=10}
78: 1. c4{9%} e5 2. g3{25%} Nf6 3. Bg2{100%} d5 4. cxd5{100%} Nxd5 5. Nc3{100%} Nb6 6. Nf3{100%} 
79: 1. Nf3{6%} c5 2. c4{100%} {trans: line=73, ply=3}
80: 1. Nf3{6%} d5 2. c4{100%} c6 3. d4{100%} {trans: line=38, ply=5}
81: 1. Nf3{6%} d5 2. c4{100%} e6 3. g3{50%} Nf6 4. Bg2{100%} Be7 5. b3{100%} O-O 6. O-O{100%} 
82: 1. Nf3{6%} d5 2. c4{100%} e6 3. b3{50%} Be7 4. Bb2{100%} Bf6 5. Nc3{100%} c5 6. cxd5{100%} 
83: 1. b3{1%} e5 2. Bb2{100%} Nc6 3. e3{100%} d6 4. Nf3{100%} Nf6 5. d3{100%} Be7 6. Be2{100%} 
84: 1. g3{1%} Nf6 2. Bg2{100%} d5 3. Nf3{100%} c6 4. O-O{100%} Bg4 5. d3{100%} Nbd7 6. c4{100%} 

Code: Select all

C:\ChessTools\Bookmake>polyglot dump-book -bin GS70.bin -color white -out GS70W.txt
PolyGlot 2.0.3 by Fabien Letouzey.
loading book ...
generating lines for white...

C:\ChessTools\Bookmake>polyglot dump-book -bin GS70.bin -color black -out GS70B.txt
PolyGlot 2.0.3 by Fabien Letouzey.
loading book ...
generating lines for black...
White part

Code: Select all

Dump of "GS70.bin" for white.
1: 1. e4{50%} c6 2. d4{100%} d5 3. e5{67%} c5 4. dxc5{100%} e6 5. Be3{100%} Nd7 6. Nc3{100%} 
2: 1. e4{50%} c6 2. d4{100%} d5 3. e5{67%} Bf5 4. Nc3{100%} e6 5. g4{100%} Bg6 6. Nge2{100%} 
3: 1. e4{50%} c6 2. d4{100%} d5 3. Nc3{33%} dxe4 4. Nxe4{100%} Bf5 5. Ng3{100%} Bg6 6. h4{100%} 
4: 1. e4{50%} c5 2. Nf3{73%} d6 3. d4{86%} cxd4 4. Nxd4{100%} Nc6 5. Nc3{100%} Nf6 6. Bg5{100%} 
5: 1. e4{50%} c5 2. Nf3{73%} d6 3. d4{86%} cxd4 4. Nxd4{100%} Nf6 5. Nc3{100%} a6 6. Be2{50%} 
6: 1. e4{50%} c5 2. Nf3{73%} d6 3. d4{86%} cxd4 4. Nxd4{100%} Nf6 5. Nc3{100%} a6 6. h3{25%} 
7: 1. e4{50%} c5 2. Nf3{73%} d6 3. d4{86%} cxd4 4. Nxd4{100%} Nf6 5. Nc3{100%} a6 6. Bc4{25%} 
8: 1. e4{50%} c5 2. Nf3{73%} d6 3. d4{86%} cxd4 4. Nxd4{100%} Nf6 5. Nc3{100%} g6 6. Be3{100%} 
9: 1. e4{50%} c5 2. Nf3{73%} d6 3. d4{86%} cxd4 4. Nxd4{100%} Nf6 5. Nc3{100%} Nc6 {trans: line=4, ply=10}
10: 1. e4{50%} c5 2. Nf3{73%} d6 3. Bb5+{14%} Bd7 4. Bxd7+{100%} Qxd7 5. O-O{100%} Nc6 6. c3{100%} 
11: 1. e4{50%} c5 2. Nf3{73%} e6 3. d4{100%} cxd4 4. Nxd4{100%} Nc6 5. Nc3{100%} Nf6 6. a3{100%} 
12: 1. e4{50%} c5 2. Nf3{73%} Nc6 3. d4{67%} cxd4 4. Nxd4{100%} d6 {trans: line=4, ply=8}
13: 1. e4{50%} c5 2. Nf3{73%} Nc6 3. d4{67%} cxd4 4. Nxd4{100%} e6 {trans: line=11, ply=8}
14: 1. e4{50%} c5 2. Nf3{73%} Nc6 3. d4{67%} cxd4 4. Nxd4{100%} g6 5. c4{50%} Bg7 6. Be3{100%} 
15: 1. e4{50%} c5 2. Nf3{73%} Nc6 3. d4{67%} cxd4 4. Nxd4{100%} g6 5. Nc3{50%} Bg7 6. Be3{100%} 
16: 1. e4{50%} c5 2. Nf3{73%} Nc6 3. Bb5{33%} e6 4. Nc3{100%} Nge7 5. O-O{100%} a6 6. Bxc6{100%} 
17: 1. e4{50%} c5 2. c3{13%} d5 3. exd5{100%} Qxd5 4. d4{100%} e6 5. Nf3{100%} Nf6 6. Be2{100%} 
18: 1. e4{50%} c5 2. c3{13%} Nf6 3. e5{100%} Nd5 4. d4{100%} cxd4 5. Nf3{100%} Nc6 6. cxd4{100%} 
19: 1. e4{50%} c5 2. Nc3{13%} Nc6 3. g3{100%} g6 4. Bg2{100%} Bg7 5. d3{100%} d6 6. f4{100%} 
20: 1. e4{50%} c5 2. Nc3{13%} Nc6 3. g3{100%} g6 4. Bg2{100%} Bg7 5. d3{100%} e6 6. Be3{100%} 
21: 1. e4{50%} d6 2. d4{100%} Nf6 3. Nc3{100%} g6 4. Nf3{100%} Bg7 5. Be2{100%} O-O 6. O-O{100%} 
22: 1. e4{50%} e6 2. d4{100%} d5 3. Nc3{33%} Bb4 4. e5{100%} c5 5. a3{100%} Bxc3+ 6. bxc3{100%} 
23: 1. e4{50%} e6 2. d4{100%} d5 3. Nd2{33%} Nf6 4. e5{100%} Nfd7 5. Bd3{100%} c5 6. c3{100%} 
24: 1. e4{50%} e6 2. d4{100%} d5 3. e5{33%} c5 4. c3{100%} Nc6 5. Nf3{100%} Qb6 6. a3{100%} 
25: 1. e4{50%} e5 2. Nf3{85%} Nc6 3. Bb5{67%} a6 4. Ba4{75%} Nf6 5. O-O{100%} b5 6. Bb3{100%} 
26: 1. e4{50%} e5 2. Nf3{85%} Nc6 3. Bb5{67%} a6 4. Ba4{75%} Nf6 5. O-O{100%} Be7 6. Re1{100%} 
27: 1. e4{50%} e5 2. Nf3{85%} Nc6 3. Bb5{67%} a6 4. Ba4{75%} Nf6 5. O-O{100%} Nxe4 6. d4{100%} 
28: 1. e4{50%} e5 2. Nf3{85%} Nc6 3. Bb5{67%} a6 4. Bxc6{25%} dxc6 5. O-O{100%} f6 6. d4{100%} 
29: 1. e4{50%} e5 2. Nf3{85%} Nc6 3. Bb5{67%} Nf6 4. d3{50%} Bc5 5. O-O{100%} d6 6. c3{100%} 
30: 1. e4{50%} e5 2. Nf3{85%} Nc6 3. Bb5{67%} Nf6 4. O-O{50%} Nxe4 5. d4{100%} Nd6 6. Bxc6{100%} 
31: 1. e4{50%} e5 2. Nf3{85%} Nc6 3. d4{22%} exd4 4. Nxd4{100%} Bc5 5. Be3{50%} Qf6 6. c3{100%} 
32: 1. e4{50%} e5 2. Nf3{85%} Nc6 3. d4{22%} exd4 4. Nxd4{100%} Bc5 5. Nxc6{50%} Qf6 6. Qd2{100%} 
33: 1. e4{50%} e5 2. Nf3{85%} Nc6 3. Bc4{11%} Nf6 4. d3{100%} Be7 5. O-O{100%} O-O 6. Bb3{100%} 
34: 1. e4{50%} e5 2. Nf3{85%} Nf6 3. Nxe5{50%} d6 4. Nf3{100%} Nxe4 5. d4{100%} d5 6. Bd3{100%} 
35: 1. e4{50%} e5 2. Nf3{85%} Nf6 3. d4{50%} exd4 4. e5{100%} Ne4 5. Qxd4{100%} d5 6. exd6{100%} 
36: 1. e4{50%} e5 2. Bc4{8%} Nf6 3. d3{100%} Bc5 4. Nf3{100%} d6 5. c3{100%} Bb6 6. Nbd2{100%} 
37: 1. e4{50%} e5 2. f4{8%} exf4 3. Nf3{100%} g5 4. h4{100%} g4 5. Ne5{100%} Nf6 6. Bc4{100%} 
38: 1. d4{33%} d5 2. c4{88%} c6 3. Nf3{100%} e6 4. Nbd2{100%} Nf6 5. g3{100%} Be7 6. Bg2{100%} 
39: 1. d4{33%} d5 2. c4{88%} c6 3. Nf3{100%} Nf6 4. Nc3{100%} e6 5. e3{100%} Nbd7 6. Bd3{50%} 
40: 1. d4{33%} d5 2. c4{88%} c6 3. Nf3{100%} Nf6 4. Nc3{100%} e6 5. e3{100%} Nbd7 6. Qc2{50%} 
41: 1. d4{33%} d5 2. c4{88%} dxc4 3. Nf3{100%} Nf6 4. e3{100%} e6 5. Bxc4{100%} c5 6. O-O{100%} 
42: 1. d4{33%} d5 2. c4{88%} e6 3. Nc3{75%} c5 4. cxd5{100%} exd5 5. Nf3{100%} Nc6 6. g3{100%} 
43: 1. d4{33%} d5 2. c4{88%
https://rwbc-chess.de

trollwatch:
Talkchess nowadays is a joke - it is full of trolls/idiots/people stuck in the pleistocene > 80% of the posts fall into this category...
User avatar
hgm
Posts: 27809
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Export bin book to pgn

Post by hgm »

When I have time I will add an fclose(f) to the dumb_book routine, to see if that helps.

The "not enough space" problem could be due to running a 32-bit version, which limits memory allocation to under 1GB. A 64-bit compile would not have that problem, and this is probably what the 'tolerant' refers to.

As Polyglot was only of interest to me as a protocol adapter, I never payed much attention to its book-handling functions.
User avatar
Guenther
Posts: 4610
Joined: Wed Oct 01, 2008 6:33 am
Location: Regensburg, Germany
Full name: Guenther Simon

Re: Export bin book to pgn

Post by Guenther »

hgm wrote: Wed Feb 17, 2021 2:51 pm When I have time I will add an fclose(f) to the dumb_book routine, to see if that helps.

The "not enough space" problem could be due to running a 32-bit version, which limits memory allocation to under 1GB. A 64-bit compile would not have that problem, and this is probably what the 'tolerant' refers to.

As Polyglot was only of interest to me as a protocol adapter, I never payed much attention to its book-handling functions.
The memory allocation problem also was referenced a few times at talkchess, also a buffer overflow for too long lines,
but I don't remember anymore and only once ran into it long ago, but later never was much interested in too big books
or books with big ply lengths. Talkchess search should reveal some informations.
https://rwbc-chess.de

trollwatch:
Talkchess nowadays is a joke - it is full of trolls/idiots/people stuck in the pleistocene > 80% of the posts fall into this category...
Jonathan003
Posts: 239
Joined: Fri Jul 06, 2018 4:23 pm
Full name: Jonathan Cremers

Re: Export bin book to pgn

Post by Jonathan003 »

hgm wrote: Wed Feb 17, 2021 2:51 pm When I have time I will add an fclose(f) to the dumb_book routine, to see if that helps.

The "not enough space" problem could be due to running a 32-bit version, which limits memory allocation to under 1GB. A 64-bit compile would not have that problem, and this is probably what the 'tolerant' refers to.

As Polyglot was only of interest to me as a protocol adapter, I never payed much attention to its book-handling functions.
I have seen this "not enough space" problem with a 64 bit versions of polyglot to. With a version from 2019 I downloaded from here http://rebel13.nl
I don't know if Poly 1.7a still has this problem.