TLCS and Winboard

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

Moderator: Ras

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

Re: TLCS and Winboard

Post by hgm »

By looking at the code: it seems this should only work when the option -debug is also on, and when XBoard is in 'match mode' (which should be true in any tourney form). The code that creates the -serverFile is located just next to the code that changes the -debugFile because of a %d in its name.
Guenther
Posts: 4718
Joined: Wed Oct 01, 2008 6:33 am
Location: Regensburg, Germany
Full name: Guenther Simon

Re: TLCS and Winboard

Post by Guenther »

hgm wrote:By looking at the code: it seems this should only work when the option -debug is also on, and when XBoard is in 'match mode' (which should be true in any tourney form). The code that creates the -serverFile is located just next to the code that changes the -debugFile because of a %d in its name.
Of course I had set debug on too. I retried it and still it only writes a normal debug file.
E.g.

Code: Select all

-mg 2 -debug -serverFile server.txt
User avatar
hgm
Posts: 28515
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: TLCS and Winboard

Post by hgm »

Ah OK, I see. It creates the -serverFile at the same point as where it changes to another -debugfile. But it only reopens a new -debugfile when the name has changed because of expansion of a %d in it. When the normal -debugfile has a fixed name, it does none of this.

So what works is

Code: Select all

-mg 2 -debug -debugfile game%d.debug -serverFile server.txt
This initially creates a file game%d.debug, but when it starts the first game of the match it switches to writing on game1.debug, and at that point also creates server.txt. I just tried this, and it works. For the second game it should switch to writing on game2.debug, and create a new server.txt, overwriting the old one.