I know it's usually not good practice, but...
Posted: 12 Apr 2012, 18:18
Hi everybody,
in the attempt to simplify the relay of a game, I developed a small node.js program, using the undocumented /serverMoves option: basically my program watches the file produced by winboard, parses and converts it in pgn, and sends the result of the conversion via ftp to a server running pgn4web or anything else that can read pgn files.
The stuff is working fine, but there is at least one problem: when the file passed as argument to serverMoves does already exist, winboard apparently freezes at startup.
When issuing a "New Game" command, instead, the GUI takes a long time (much longer than usual) to restart the game, but it eventually succeeds, and the text file is overwritten as a result.
I looked into the source but I couldn't find the point where the GUI opens the file, so I couldn't figure out whether the problem was only mine or was it a bug.
Thanks in advance.
Cheers, Mauro
in the attempt to simplify the relay of a game, I developed a small node.js program, using the undocumented /serverMoves option: basically my program watches the file produced by winboard, parses and converts it in pgn, and sends the result of the conversion via ftp to a server running pgn4web or anything else that can read pgn files.
The stuff is working fine, but there is at least one problem: when the file passed as argument to serverMoves does already exist, winboard apparently freezes at startup.
When issuing a "New Game" command, instead, the GUI takes a long time (much longer than usual) to restart the game, but it eventually succeeds, and the text file is overwritten as a result.
I looked into the source but I couldn't find the point where the GUI opens the file, so I couldn't figure out whether the problem was only mine or was it a bug.
Thanks in advance.
Cheers, Mauro