Tuesday, May 7, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1417  / 3 Years ago, fri, september 24, 2021, 9:28:27

I use xboard as a GUI for Crafty, being Crafty a state of the art chess engine I don't want to use anything else, but it floods my home directory with game.nnn and log.nnn files. I would like to change the settings and have Crafty to save this files to a "Folder1" instead of my home directory.


More From » games

 Answers
7

You can start crafty with the parameter log off. Parameters can be put into the crafty.rc file, or used as start-up parameters from the terminal. The files you see created are created by the parameter log. This is by default set to on. There is an alphabetical list of all the options here. It does not look like you can not put those log files somewhere else.



The most important parameter for these log.{nnn} files is:




log off|on|{n}




This command is used to disable logging. The default is log on, which causes Crafty to produce a new log.nnn file for each game played. If you are running Crafty on a server, you might use log off, which disables creating these files as well as the game.nnn files used to restart a game after you exit Crafty and come back later. If you use the form log n Crafty will simply display the last n lines of the log on the screen. If you use log n file Crafty will copy the last n lines of the log to file which could be your hard drive, or a floppy.



Note that if you run with log off, you will be unable to find out what Crafty was thinking about since there is no other record of the game. You will always see a game.001 because as Crafty plays a game, this contains all the real moves played so far so that you can back up if needed. you will also see a log.001 file, but it will be empty.






Alternative: create a script that moves all the log files to your directory before starting crafty or when crafty stops. That way you have then in your folder in bulk and you can keep logging on.


[#34252] Sunday, September 26, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
homerurhyth

Total Points: 338
Total Questions: 113
Total Answers: 105

Location: Moldova
Member since Sat, Aug 6, 2022
2 Years ago
;