Convert .obk books to .abk books?

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Rebel, chrisw

User avatar
David Dahlem
Posts: 900
Joined: Wed Mar 08, 2006 9:06 pm

Convert .obk books to .abk books?

Post by David Dahlem »

Is there an easy way to convert Chessmaster .obk opening books to the Arena .abk format?

Thanks for any suggestions.
Dave
tmokonen
Posts: 1296
Joined: Sun Mar 12, 2006 6:46 pm
Location: Kelowna
Full name: Tony Mokonen

Re: Convert .obk books to .abk books?

Post by tmokonen »

There is an OBK2PGN utility, and then the PGN can be imported into ABK format from within Arena.

http://homepages.paradise.net.nz/npatti ... kPage.html

I am not aware of a utility that converts directly to ABK format.
User avatar
JuLieN
Posts: 2949
Joined: Mon May 05, 2008 12:16 pm
Location: Bordeaux (France)
Full name: Julien Marcel

Re: Convert .obk books to .abk books?

Post by JuLieN »

On a related topic, does someone know if there is a description of the abk format? I am considering supporting it natively inside my engine...
"The only good bug is a dead bug." (Don Dailey)
[Blog: http://tinyurl.com/predateur ] [Facebook: http://tinyurl.com/fbpredateur ] [MacEngines: http://tinyurl.com/macengines ]
User avatar
David Dahlem
Posts: 900
Joined: Wed Mar 08, 2006 9:06 pm

Re: Convert .obk books to .abk books?

Post by David Dahlem »

tmokonen wrote:There is an OBK2PGN utility, and then the PGN can be imported into ABK format from within Arena.

http://homepages.paradise.net.nz/npatti ... kPage.html

I am not aware of a utility that converts directly to ABK format.
Thanks for the info and link. Looks ideal for a few books but a lot of work for many books, which is what i had in mind. i want to convert the CM Grandmaster books to Arena books. And so far i have 68 Grandmaster .obk books. :!:
User avatar
David Dahlem
Posts: 900
Joined: Wed Mar 08, 2006 9:06 pm

Re: Convert .obk books to .abk books?

Post by David Dahlem »

OK,i tested OBK2PGN and it works fine. All the games in the output pgn are in this format -

[Event "?"]
[Site "?"]
[Date "????.??.??"]
[Round "-"]
[White "?"]
[Black "?"]
[Result "1/2-1/2"]
1. e4!! e5!! 2. Nc3! Nc6!! 3. f4! exf4!! 4. Nf3!! g5!! 5. Bc4!! Bg7? 6. O-O!!
d6? 7. d4!! h6? 8. Ne2!! Na5? 9. Bd3!! d5? 10. Qe1!! dxe4? 11. Bxe4!! c6? 12.
Bd3!! Ne7? 13. b4!! g4? 14. Ne5!! Bxe5? 15. dxe5!! f3? 16. gxf3!! gxf3? 17.
Rxf3!! Bg4? 18. Rg3!! Bxe2? 19. Bxe2!! Nc4? 20. Qc3!!

Now i must learn how to make quality Arena books from this type of pgn.

Any hints from Arena book experts?
User avatar
Jim Ablett
Posts: 1384
Joined: Fri Jul 14, 2006 7:56 am
Location: London, England
Full name: Jim Ablett

Re: Convert .obk books to .abk books?

Post by Jim Ablett »

JuLieN wrote:On a related topic, does someone know if there is a description of the abk format? I am considering supporting it natively inside my engine...

Hi Julien,

Here is an 'abk to pgn' conversion tool with src which may be of some help to you.

http://dl.dropbox.com/u/5047625/Arena%2 ... mod%29.zip

Jim.
User avatar
JuLieN
Posts: 2949
Joined: Mon May 05, 2008 12:16 pm
Location: Bordeaux (France)
Full name: Julien Marcel

Re: Convert .obk books to .abk books?

Post by JuLieN »

Jim Ablett wrote:
JuLieN wrote:On a related topic, does someone know if there is a description of the abk format? I am considering supporting it natively inside my engine...

Hi Julien,

Here is an 'abk to pgn' conversion tool with src which may be of some help to you.

http://dl.dropbox.com/u/5047625/Arena%2 ... mod%29.zip

Jim.
Thanks a lot, Jim! :D
"The only good bug is a dead bug." (Don Dailey)
[Blog: http://tinyurl.com/predateur ] [Facebook: http://tinyurl.com/fbpredateur ] [MacEngines: http://tinyurl.com/macengines ]
User avatar
David Dahlem
Posts: 900
Joined: Wed Mar 08, 2006 9:06 pm

Re: Convert .obk books to .abk books?

Post by David Dahlem »

David Dahlem wrote:OK,i tested OBK2PGN and it works fine. All the games in the output pgn are in this format -

[Event "?"]
[Site "?"]
[Date "????.??.??"]
[Round "-"]
[White "?"]
[Black "?"]
[Result "1/2-1/2"]
1. e4!! e5!! 2. Nc3! Nc6!! 3. f4! exf4!! 4. Nf3!! g5!! 5. Bc4!! Bg7? 6. O-O!!
d6? 7. d4!! h6? 8. Ne2!! Na5? 9. Bd3!! d5? 10. Qe1!! dxe4? 11. Bxe4!! c6? 12.
Bd3!! Ne7? 13. b4!! g4? 14. Ne5!! Bxe5? 15. dxe5!! f3? 16. gxf3!! gxf3? 17.
Rxf3!! Bg4? 18. Rg3!! Bxe2? 19. Bxe2!! Nc4? 20. Qc3!!

Now i must learn how to make quality Arena books from this type of pgn.

Any hints from Arena book experts?
After checking the Arena help file, i'm not sure it's possible to create suitable .abk books from the pgn files created by OBK2PGN. All the games are scored as draws (1/2-1/2) and Arena uses win/loss percentage to determine which moves will be played (although drawn games can be imported).

Any ideas? :?
User avatar
JuLieN
Posts: 2949
Joined: Mon May 05, 2008 12:16 pm
Location: Bordeaux (France)
Full name: Julien Marcel

Re: Convert .obk books to .abk books?

Post by JuLieN »

David Dahlem wrote:
David Dahlem wrote:OK,i tested OBK2PGN and it works fine. All the games in the output pgn are in this format -

[Event "?"]
[Site "?"]
[Date "????.??.??"]
[Round "-"]
[White "?"]
[Black "?"]
[Result "1/2-1/2"]
1. e4!! e5!! 2. Nc3! Nc6!! 3. f4! exf4!! 4. Nf3!! g5!! 5. Bc4!! Bg7? 6. O-O!!
d6? 7. d4!! h6? 8. Ne2!! Na5? 9. Bd3!! d5? 10. Qe1!! dxe4? 11. Bxe4!! c6? 12.
Bd3!! Ne7? 13. b4!! g4? 14. Ne5!! Bxe5? 15. dxe5!! f3? 16. gxf3!! gxf3? 17.
Rxf3!! Bg4? 18. Rg3!! Bxe2? 19. Bxe2!! Nc4? 20. Qc3!!

Now i must learn how to make quality Arena books from this type of pgn.

Any hints from Arena book experts?
After checking the Arena help file, i'm not sure it's possible to create suitable .abk books from the pgn files created by OBK2PGN. All the games are scored as draws (1/2-1/2) and Arena uses win/loss percentage to determine which moves will be played (although drawn games can be imported).

Any ideas? :?
Use a strong engine to evaluate each of the terminal positions, >+.20 gets a 1-0, <-.20 gets a 0-1, and you get a 1/2 in-between.

You could make a script to automatize the process.
"The only good bug is a dead bug." (Don Dailey)
[Blog: http://tinyurl.com/predateur ] [Facebook: http://tinyurl.com/fbpredateur ] [MacEngines: http://tinyurl.com/macengines ]
User avatar
David Dahlem
Posts: 900
Joined: Wed Mar 08, 2006 9:06 pm

Re: Convert .obk books to .abk books?

Post by David Dahlem »

JuLieN wrote:
David Dahlem wrote:
David Dahlem wrote:OK,i tested OBK2PGN and it works fine. All the games in the output pgn are in this format -

[Event "?"]
[Site "?"]
[Date "????.??.??"]
[Round "-"]
[White "?"]
[Black "?"]
[Result "1/2-1/2"]
1. e4!! e5!! 2. Nc3! Nc6!! 3. f4! exf4!! 4. Nf3!! g5!! 5. Bc4!! Bg7? 6. O-O!!
d6? 7. d4!! h6? 8. Ne2!! Na5? 9. Bd3!! d5? 10. Qe1!! dxe4? 11. Bxe4!! c6? 12.
Bd3!! Ne7? 13. b4!! g4? 14. Ne5!! Bxe5? 15. dxe5!! f3? 16. gxf3!! gxf3? 17.
Rxf3!! Bg4? 18. Rg3!! Bxe2? 19. Bxe2!! Nc4? 20. Qc3!!

Now i must learn how to make quality Arena books from this type of pgn.

Any hints from Arena book experts?
After checking the Arena help file, i'm not sure it's possible to create suitable .abk books from the pgn files created by OBK2PGN. All the games are scored as draws (1/2-1/2) and Arena uses win/loss percentage to determine which moves will be played (although drawn games can be imported).

Any ideas? :?
Use a strong engine to evaluate each of the terminal positions, >+.20 gets a 1-0, <-.20 gets a 0-1, and you get a 1/2 in-between.

You could make a script to automatize the process.
Yes, i already thought of that, but it would take much too long. :cry: