Crafty log.xxx game.xxx

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

User avatar
jshriver
Posts: 1342
Joined: Wed Mar 08, 2006 9:41 pm
Location: Morgantown, WV, USA

Crafty log.xxx game.xxx

Post by jshriver »

Is it possible to disable the log.xxx and game.xxx writing functionality?

-Josh
krazyken

Re: Crafty log.xxx game.xxx

Post by krazyken »

add "log off" to your .craftyrc file.
ernest
Posts: 2041
Joined: Wed Mar 08, 2006 8:30 pm

Re: Crafty log.xxx game.xxx

Post by ernest »

Thanks!, indeed I had that stupid log=off... which never worked! :D
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Crafty log.xxx game.xxx

Post by bob »

ernest wrote:Thanks!, indeed I had that stupid log=off... which never worked! :D
log=off works just as well as "log off", "log/off" and other variations. They are all parsed the same way. I use log=off in my cluster testing and it works just fine, otherwise I would be up to my armpits in log files after a couple of million games...
User avatar
Onno Garms
Posts: 224
Joined: Mon Mar 12, 2007 7:31 pm
Location: Bonn, Germany

Re: Crafty log.xxx game.xxx

Post by Onno Garms »

bob wrote: log=off works just as well as "log off", "log/off" and other variations. They are all parsed the same way. I use log=off in my cluster testing and it works just fine, otherwise I would be up to my armpits in log files after a couple of million games...
But these options don't disable the game.xxx file, do they? I found the game.xxx file annoying when I use crafty as one sparing partner in my tests.

I modified the crafty source to disable that file. I think I corrupted some features but for playing automated games Crafty still works fine.

The problem is that the game.xxx file is not write only. Crafty reads it too, I think to undo moves. Am I right about that?
krazyken

Re: Crafty log.xxx game.xxx

Post by krazyken »

seems to work just fine for me. I checked my crafty folder, no log.xxx or game.xxx files at all.
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Crafty log.xxx game.xxx

Post by bob »

Onno Garms wrote:
bob wrote: log=off works just as well as "log off", "log/off" and other variations. They are all parsed the same way. I use log=off in my cluster testing and it works just fine, otherwise I would be up to my armpits in log files after a couple of million games...
But these options don't disable the game.xxx file, do they? I found the game.xxx file annoying when I use crafty as one sparing partner in my tests.

I modified the crafty source to disable that file. I think I corrupted some features but for playing automated games Crafty still works fine.

The problem is that the game.xxx file is not write only. Crafty reads it too, I think to undo moves. Am I right about that?
Yes. You will always see a game.001 while a game starts, I think, but it is not saved and disappears before the first move is played. No log.nnn file will be. produced at all.
ernest
Posts: 2041
Joined: Wed Mar 08, 2006 8:30 pm

Re: Crafty log.xxx game.xxx

Post by ernest »

Well, maybe all these people are using the Winboard GUI...

I just tried a match of 6 games (2 cores, no ponder) between Crafty 22.8 and "otherengine", in the Fritz/ChessBase GUI, using the Wb2uci.exe converter (named here Crafty22_smp32UCI.exe)
At the end of the match, I found the following files (which I did not want):
game.001, game.002, game.003, game.004, game.005, game.006
log.002, log.003, log.004, log.005, log.006

In fact, partial success, since I did not get a log.001 file... :twisted:

Joke aside, what should I have done?

Here is my crafty.rc file:

Code: Select all

egtb
tbpath=F:\Nalimov5
cache=32M
hash=512M
hashp=128M
log off
mode=tournament
swindle on 
mt=2 
timebook 80 8
smpnice=1
noise 0
exit

and here is my Wb2Uci.eng file:

Code: Select all

[ENGINE] 
Name=Crafty 22.8 32-bit 
Author=Robert Hyatt 
Filename=Crafty22_smp32UCI.exe 

[OPTIONS] 
Program=crafty228.exe 
InitString=resign 700 3 
HashCommand=hash %iM 
WhiteScore=true 
TerminateHard=true 
RunIdle=true 
Visible=Ponder,Hash,Extras,Logfile,Computer

[EXTRAS] 
Tournament mode=mode|check|false|normal|tournament 
NalimovPath=tbpath|string|c:\Tablebases 
NalimovCache=cache %iM|spin|32|1|32 
Pawn hash (MB)=hashp %iM|spin|128|1|128
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Crafty log.xxx game.xxx

Post by bob »

ernest wrote:Well, maybe all these people are using the Winboard GUI...

I just tried a match of 6 games (2 cores, no ponder) between Crafty 22.8 and "otherengine", in the Fritz/ChessBase GUI, using the Wb2uci.exe converter (named here Crafty22_smp32UCI.exe)
At the end of the match, I found the following files (which I did not want):
game.001, game.002, game.003, game.004, game.005, game.006
log.002, log.003, log.004, log.005, log.006

In fact, partial success, since I did not get a log.001 file... :twisted:

Joke aside, what should I have done?

Here is my crafty.rc file:

Code: Select all

egtb
tbpath=F:\Nalimov5
cache=32M
hash=512M
hashp=128M
log off
mode=tournament
swindle on 
mt=2 
timebook 80 8
smpnice=1
noise 0
exit

and here is my Wb2Uci.eng file:

Code: Select all

[ENGINE] 
Name=Crafty 22.8 32-bit 
Author=Robert Hyatt 
Filename=Crafty22_smp32UCI.exe 

[OPTIONS] 
Program=crafty228.exe 
InitString=resign 700 3 
HashCommand=hash %iM 
WhiteScore=true 
TerminateHard=true 
RunIdle=true 
Visible=Ponder,Hash,Extras,Logfile,Computer

[EXTRAS] 
Tournament mode=mode|check|false|normal|tournament 
NalimovPath=tbpath|string|c:\Tablebases 
NalimovCache=cache %iM|spin|32|1|32 
Pawn hash (MB)=hashp %iM|spin|128|1|128
If you are getting log.nnn files, then crafty is not seeing that log off command. This can be caused by a host of different problems. The GUI might start crafty in a directory other than the one that contains the crafty.rc file. That's the most common failure here...