Reply
 
LinkBack Thread Tools Display Modes
  #1   Report Post  
Old December 21st 06, 10:26 AM posted to rec.games.chess.computer
external usenet poster
 
First recorded activity by ChessBanter: Jul 2006
Posts: 1,015
Default Reading .ctb, .cto, .ctg files

Help!

Can anyone recommend how to parse and decode the opening book files
used with the Chessbase software usinge either publically available
sourcecode or a suitable library.

I have tried a web search for these formats and found essentially
nothing. A few arcane files for OS/390 and people wanting free opening
books, but no readers/parsers for opening books.

My reaosns for wanting to read the opening book outside a mainstream
chess program is that I would like to develop an opening book checker
to parse existing opening books systematically for defective lines.

Thanks for any pointers.

Regards,
Martin Brown

  #2   Report Post  
Old December 21st 06, 02:37 PM posted to rec.games.chess.computer
external usenet poster
 
First recorded activity by ChessBanter: Apr 2005
Posts: 2,598
Default Reading .ctb, .cto, .ctg files

Martin Brown wrote:
Can anyone recommend how to parse and decode the opening book files
used with the Chessbase software usinge either publically available
sourcecode or a suitable library.


As far as I am aware, no such software is available. The file format is proprietary to ChessBase.


Dave.

--
David Richerby Solar-Powered Psychotic Gnome (TM):
www.chiark.greenend.org.uk/~davidr/ it's like a smiling garden ornament
but it wants to kill you and it
doesn't work in the dark!
  #3   Report Post  
Old December 22nd 06, 06:00 PM posted to rec.games.chess.computer
external usenet poster
 
First recorded activity by ChessBanter: Dec 2005
Posts: 589
Default Reading .ctb, .cto, .ctg files

You can convert the files to pgn and read them with any chess playing
software.

Angelo

"Martin Brown" wrote in message
ps.com...
Help!

Can anyone recommend how to parse and decode the opening book files
used with the Chessbase software usinge either publically available
sourcecode or a suitable library.

I have tried a web search for these formats and found essentially
nothing. A few arcane files for OS/390 and people wanting free opening
books, but no readers/parsers for opening books.

My reaosns for wanting to read the opening book outside a mainstream
chess program is that I would like to develop an opening book checker
to parse existing opening books systematically for defective lines.

Thanks for any pointers.

Regards,
Martin Brown



  #4   Report Post  
Old December 24th 06, 01:04 PM posted to rec.games.chess.computer
external usenet poster
 
First recorded activity by ChessBanter: Apr 2005
Posts: 654
Default Reading .ctb, .cto, .ctg files


Ange1o DePa1ma wrote:

You can convert the files to pgn and read them with any chess playing
software.


How?

Mark

Angelo

"Martin Brown" wrote in message
ps.com...
Help!

Can anyone recommend how to parse and decode the opening book files
used with the Chessbase software usinge either publically available
sourcecode or a suitable library.

I have tried a web search for these formats and found essentially
nothing. A few arcane files for OS/390 and people wanting free opening
books, but no readers/parsers for opening books.

My reaosns for wanting to read the opening book outside a mainstream
chess program is that I would like to develop an opening book checker
to parse existing opening books systematically for defective lines.

Thanks for any pointers.

Regards,
Martin Brown


  #5   Report Post  
Old December 25th 06, 12:46 AM posted to rec.games.chess.computer
external usenet poster
 
First recorded activity by ChessBanter: Sep 2006
Posts: 28
Default Reading .ctb, .cto, .ctg files


Mark Houlsby wrote:
Ange1o DePa1ma wrote:

You can convert the files to pgn and read them with any chess playing
software.


How?

Mark


Angelo missed the point of your question. You want to convert directly
from finished book to the component games of a book. That is not
possible. It's simply a no-can-do, not even by Chessbase, because a
book is the end-product of an iterative, non-reversible
database-building process. It's a different kind of database, that's
all.

Converting a .cbh file to .pgn on the other hand is very easy. I trust
you know how to do that so I won't go into the details.



  #6   Report Post  
Old December 25th 06, 10:18 AM posted to rec.games.chess.computer
external usenet poster
 
First recorded activity by ChessBanter: Apr 2005
Posts: 2,598
Default Reading .ctb, .cto, .ctg files

wrote:
Angelo missed the point of your question. You want to convert
directly from finished book to the component games of a book. That
is not possible. It's simply a no-can-do, not even by Chessbase,
because a book is the end-product of an iterative, non-reversible
database-building process.


Nonsense! It may well be that Chessbase don't have (even internally)
any software to convert from opening books to PGN but, knowing the
format of the opening book, it would be simple to output a PGN file
with one game per book line.

Now, the games in the PGN file would only contain as many moves as are
in the book, so it wouldn't (in most cases) be possible to recover the
full component game. And it wouldn't be possible to recover the names
of the players and so on. But Martin never asked for any of that.


Dave.

--
David Richerby Permanent Tool (TM): it's like
www.chiark.greenend.org.uk/~davidr/ a screwdriver but it'll be there
for ever!
  #7   Report Post  
Old December 25th 06, 05:48 PM posted to rec.games.chess.computer
external usenet poster
 
First recorded activity by ChessBanter: Apr 2005
Posts: 654
Default Reading .ctb, .cto, .ctg files


David Richerby wrote:

wrote:
Angelo missed the point of your question. You want to convert
directly from finished book to the component games of a book. That
is not possible. It's simply a no-can-do, not even by Chessbase,
because a book is the end-product of an iterative, non-reversible
database-building process.


Nonsense!


No it isn't - see below.

It may well be that Chessbase don't have (even internally)
any software to convert from opening books to PGN but, knowing the
format of the opening book, it would be simple to output a PGN file
with one game per book line.


This would involve playing through each line in the tree, one at a
time. Typically, opening trees run to around 100,000-500,000 games.

Do you volunteer to go through all the games, saving each fragment
individually as a PGN file (itself not the simplest of tasks in
ChessBase, which prefers CB6+ format?

Now, the games in the PGN file would only contain as many moves as are
in the book, so it wouldn't (in most cases) be possible to recover the
full component game. And it wouldn't be possible to recover the names
of the players and so on. But Martin never asked for any of that.


No, he didn't. Neither did he ask for uninformed and stupid answers.

Mark


Dave.

--
David Richerby Permanent Tool (TM): it's like
www.chiark.greenend.org.uk/~davidr/ a screwdriver but it'll be there
for ever!


  #8   Report Post  
Old December 25th 06, 09:59 PM posted to rec.games.chess.computer
external usenet poster
 
First recorded activity by ChessBanter: Sep 2006
Posts: 2
Default Reading .ctb, .cto, .ctg files

Mark Houlsby wrote:
David Richerby wrote:

wrote:
Angelo missed the point of your question. You want to convert
directly from finished book to the component games of a book. That
is not possible. It's simply a no-can-do, not even by Chessbase,
because a book is the end-product of an iterative, non-reversible
database-building process.


Nonsense!


No it isn't - see below.

It may well be that Chessbase don't have (even internally)
any software to convert from opening books to PGN but, knowing the
format of the opening book, it would be simple to output a PGN file
with one game per book line.


This would involve playing through each line in the tree, one at a
time. Typically, opening trees run to around 100,000-500,000 games.

Do you volunteer to go through all the games, saving each fragment
individually as a PGN file (itself not the simplest of tasks in
ChessBase, which prefers CB6+ format?

There is something called a computer program which is very good at
simple, repetitive tasks. Writing a program to output a chess database
as a series of pgn files is not particularly difficult if you know the
database format.

Now, the games in the PGN file would only contain as many moves as are
in the book, so it wouldn't (in most cases) be possible to recover the
full component game. And it wouldn't be possible to recover the names
of the players and so on. But Martin never asked for any of that.


No, he didn't. Neither did he ask for uninformed and stupid answers.

Very true.

Mark


Dave.

--
David Richerby Permanent Tool (TM): it's like
www.chiark.greenend.org.uk/~davidr/ a screwdriver but it'll be there
for ever!


  #9   Report Post  
Old December 25th 06, 10:32 PM posted to rec.games.chess.computer
external usenet poster
 
First recorded activity by ChessBanter: Apr 2005
Posts: 654
Default Reading .ctb, .cto, .ctg files


wrote:

Mark Houlsby wrote:
David Richerby wrote:

wrote:
Angelo missed the point of your question. You want to convert
directly from finished book to the component games of a book. That
is not possible. It's simply a no-can-do, not even by Chessbase,
because a book is the end-product of an iterative, non-reversible
database-building process.

Nonsense!


No it isn't - see below.

It may well be that Chessbase don't have (even internally)
any software to convert from opening books to PGN but, knowing the
format of the opening book, it would be simple to output a PGN file
with one game per book line.


This would involve playing through each line in the tree, one at a
time. Typically, opening trees run to around 100,000-500,000 games.

Do you volunteer to go through all the games, saving each fragment
individually as a PGN file (itself not the simplest of tasks in
ChessBase, which prefers CB6+ format?

There is something called a computer program which is very good at
simple, repetitive tasks. Writing a program to output a chess database
as a series of pgn files is not particularly difficult if you know the
database format.


Right. I think I knew that. The point is that the *.ctg, *.ctb and
*.cto formats have, as yet,
proved impossible to parse.

This prompted the OP's having made the request in, how shall one put
this... the top post.

My belligerent response to Richerby was to point out that, once again,
he is putting in his oar without clearly understanding the implications
either of what the OP was asking or, more especially, of what he was
writing.

In short, he's a troll. A pathetic troll, but a troll nonetheless.

Should you be able to parse the above files, I shall be in the queue
right behind the OP.

It may be that you have already done so.

If so... how may one contact you, please?

Thanks for your post.

Mark

snip

  #10   Report Post  
Old December 26th 06, 01:59 AM posted to rec.games.chess.computer
external usenet poster
 
First recorded activity by ChessBanter: Apr 2005
Posts: 2,598
Default Reading .ctb, .cto, .ctg files

Mark Houlsby wrote:
David Richerby wrote:
wrote:
Angelo missed the point of your question. You want to convert
directly from finished book to the component games of a book. That
is not possible. It's simply a no-can-do, not even by Chessbase,
because a book is the end-product of an iterative, non-reversible
database-building process.


Nonsense!


No it isn't - see below.


Yes it is. It is perfectly possible to write such a program. Any
programmer at ChessBase could do it in a couple of hours.


Dave.

--
David Richerby Mentholated Composer (TM): it's
www.chiark.greenend.org.uk/~davidr/ like a pupil of Beethoven but it's
invigorating!
Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Combining .ctg files [email protected] rec.games.chess.computer (Computer Chess) 3 March 2nd 06 04:18 PM


All times are GMT +1. The time now is 03:40 PM.

Powered by vBulletin® Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright 2004-2019 ChessBanter.
The comments are property of their posters.
 

About Us

"It's about Chess"

 

Copyright © 2017