Tool to recreate PGN from winboard.debug?

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

Sven
Posts: 4052
Joined: Thu May 15, 2008 9:57 pm
Location: Berlin, Germany
Full name: Sven Schüle

Tool to recreate PGN from winboard.debug?

Post by Sven »

Is there a simple tool that takes a "winboard.debug" file (in recent format - I currently use WB 4.6.2) as input and creates a PGN file from it?

That would be really nice and helpful.

I also wish a happy new year to all of you!

Sven
User avatar
hgm
Posts: 27787
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Tool to recreate PGN from winboard.debug?

Post by hgm »

I think George Lyapko made such a tool many years ago.
Adam Hair
Posts: 3226
Joined: Wed May 06, 2009 10:31 pm
Location: Fuquay-Varina, North Carolina

Re: Tool to recreate PGN from winboard.debug?

Post by Adam Hair »

It can be found at http://www.reocities.com/lyapko/winboard.htm .

This page does not render correctly with in Chrome, but it does in IE 8.

The zipfile is called lgdebpgn. Let me know if you have trouble retrieving it.
Sven
Posts: 4052
Joined: Thu May 15, 2008 9:57 pm
Location: Berlin, Germany
Full name: Sven Schüle

Re: Tool to recreate PGN from winboard.debug?

Post by Sven »

Adam Hair wrote:It can be found at http://www.reocities.com/lyapko/winboard.htm .

This page does not render correctly with in Chrome, but it does in IE 8.

The zipfile is called lgdebpgn. Let me know if you have trouble retrieving it.
Thanks, I found this zip file. Extracted, read the readme and tried ... unfortunately the exe is an MS-DOS exe and does not run on my Win-7 laptop :-(

Sven
Adam Hair
Posts: 3226
Joined: Wed May 06, 2009 10:31 pm
Location: Fuquay-Varina, North Carolina

Re: Tool to recreate PGN from winboard.debug?

Post by Adam Hair »

Bummer.

You could use DOSBox ( http://www.dosbox.com/ ), the program that people here use to run DOS chess programs. It supposedly runs any DOS program in Windows.
Sven
Posts: 4052
Joined: Thu May 15, 2008 9:57 pm
Location: Berlin, Germany
Full name: Sven Schüle

Re: Tool to recreate PGN from winboard.debug?

Post by Sven »

Adam Hair wrote:Bummer.

You could use DOSBox ( http://www.dosbox.com/ ), the program that people here use to run DOS chess programs. It supposedly runs any DOS program in Windows.
Already tried it a few minutes ago after having watched this video. The video instructions were excellent for my purpose, so I managed to run George's tool under Win-7. After renaming my debug files into something that conforms to DOS 8+3 filename convention, the first attempt was not successful since my debug files are too big and contain lots of lines that the tool does not understand correctly (to be honest, WinBoard is quite verbose these days ...). So it will be necessary to split the files into manageable pieces and/or do some filtering.

But in general the tool seems to work fine, so thanks to HGM and Adam for your help!

Sven
casaschi
Posts: 164
Joined: Wed Dec 23, 2009 1:57 pm

Re: Tool to recreate PGN from winboard.debug?

Post by casaschi »

Sven Schüle wrote:Is there a simple tool that takes a "winboard.debug" file (in recent format - I currently use WB 4.6.2) as input and creates a PGN file from it?

That would be really nice and helpful.

I also wish a happy new year to all of you!

Sven
Maybe not exactly what you are asking for, but here you might find a tool that should convert to PGN the file that winboard creates with the /serverMoves parameter:
http://www.g-sei.org/area-di-sviluppo/
yoshiharu
Posts: 56
Joined: Sat Nov 11, 2006 11:14 pm

Re: Tool to recreate PGN from winboard.debug?

Post by yoshiharu »

casaschi wrote: Maybe not exactly what you are asking for, but here you might find a tool that should convert to PGN the file that winboard creates with the /serverMoves parameter:
http://www.g-sei.org/area-di-sviluppo/
Since he might not be able to read italian, let me address Sven and everybody might need this to this github repo

https://github.com/mauroriccardi/watcher

There you will be able to find the latest version of the program.
(Anyways an easier procedure is outlined below.)

Since it has been written for node.js it is quite portable.
It's aimed at realtime relay of games, but can be used just to convert winboard.debug files by using the 'debug' option that will just drop the pgn in the local folder of choice.

In short:

install node.js from http://nodejs.org/ for your system.

download and unzip the zipfile
http://www.g-sei.org/wp-content/uploads ... tcher1.zip

enter the dir where you put the above stuff, then modify the file watcher.ini: at the line

movesfilename : <file>

put on the right hand side (after the colon) the complete path + filename of the winboard.debug file you want to convert.

next from the command line execute (e.g. on windows 7)

node watcher.js debug

You will obtain a few new files in your dir: the one called "Evento.pgn" contains all the games contained in the winboard.debug just processed, which is the file you are interested in.
If you have any problem or spot some bug, please let me know.

Cheers, Mauro