Page 1 of 1

Tool to recreate PGN from winboard.debug?

Posted: Tue Jan 01, 2013 10:32 pm
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

Re: Tool to recreate PGN from winboard.debug?

Posted: Tue Jan 01, 2013 10:58 pm
by hgm
I think George Lyapko made such a tool many years ago.

Re: Tool to recreate PGN from winboard.debug?

Posted: Tue Jan 01, 2013 11:07 pm
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.

Re: Tool to recreate PGN from winboard.debug?

Posted: Tue Jan 01, 2013 11:20 pm
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

Re: Tool to recreate PGN from winboard.debug?

Posted: Tue Jan 01, 2013 11:40 pm
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.

Re: Tool to recreate PGN from winboard.debug?

Posted: Tue Jan 01, 2013 11:58 pm
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

Re: Tool to recreate PGN from winboard.debug?

Posted: Wed Jan 02, 2013 12:28 am
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/

Re: Tool to recreate PGN from winboard.debug?

Posted: Sun Jan 06, 2013 1:46 am
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