Have you written a bug report?Hi all,
I can't get EGTB's work with Chezzz. In the config file I have a line 'egtb path D:\Sakk\TB', this is a directory where the complete 4-man EGTB's reside.
Still, Chezzz seems to be calculating its move instead of taking it from the EGTB's.
What do I do wrong?
Thank you very much, David. It was the missing newline. Now it is working all right.Have you written a bug report?Hi all,
I can't get EGTB's work with Chezzz. In the config file I have a line 'egtb path D:\Sakk\TB', this is a directory where the complete 4-man EGTB's reside.
Still, Chezzz seems to be calculating its move instead of taking it from the EGTB's.
What do I do wrong?
What happens if you start up Chezzz yourself, that is, not from within a GUI? Alternatively you could look in the log file of your GUI.
During initialization you'll see something like this (from my output):
Reading configuration file...
Tablebase path: c:\tb
One common reason is that the chezzz.cfg file misses a newline (enter) at the end. Chezzz uses chezzz.cfg in this manner: It just executes whatever is in there. Every command should end in a newline, just as on the prompt. If the last command is
egtb path d:\sakk\tb [no enter here, just end of file]
then the command won't get executed. Instead it should be
egtb path d:\sakk\tb [newline]
/David
One common reason is that the chezzz.cfg file misses a newline (enter) at the end. Chezzz uses chezzz.cfg in this manner: It just executes whatever is in there. Every command should end in a newline, just as on the prompt. If the last command is
egtb path d:\sakk\tb [no enter here, just end of file]
then the command won't get executed. Instead it should be
egtb path d:\sakk\tb [newline]
/David
GoodHello David,One common reason is that the chezzz.cfg file misses a newline (enter) at the end. Chezzz uses chezzz.cfg in this manner: It just executes whatever is in there. Every command should end in a newline, just as on the prompt. If the last command is
egtb path d:\sakk\tb [no enter here, just end of file]
then the command won't get executed. Instead it should be
egtb path d:\sakk\tb [newline]
/David
Thanks for that tip! Now when I start up Chezzz it indicates that it has found the egtb's and the type.
This is why I just love "verbose" programs that tell me that they are happy and well adjusted on startup in console mode.
What should be in this default chezzz.cfg, do you think?If I may make a suggestion.
You could make it so, that a default cfg file is printed when no file is found.
-S.
I put all the user adjustable settings, set to the default values.What should be in this default chezzz.cfg, do you think?If I may make a suggestion.
You could make it so, that a default cfg file is printed when no file is found.
-S.
/David
A comment about the need for a newline character at the end of the fileWhat should be in this default chezzz.cfg, do you think?If I may make a suggestion.
You could make it so, that a default cfg file is printed when no file is found.
-S.
/David
Chezzz doesn't consider it an error that there is no newline on the last line. And it can run without TB's, so it's quite well adjusted, even if one should make this mistake. I've added this info to the readme.txt, but will probably just change things so lines without newlines work anyway.
I am still finding out about these "unimportant" user-problems, (that is, problems that are not directly related to the quality of play) and correcting them as I go along. Until recently, I was the only user of Chezzz 1.x.
The best thing to do when encountering a problem is to send me some feedback.
/David
:)Thanks much for your willingness to please the demanding fans with updated
versions of Chezzz as well as with these explanations.
I always appreciate that sort of "customer driven focus".
Particularly when the stuff is free....
UnderstandableI put all the user adjustable settings, set to the default values.What should be in this default chezzz.cfg, do you think?If I may make a suggestion.
You could make it so, that a default cfg file is printed when no file is found.
-S.
/David
I think perhaps it is expecting too much of the user to be able to write a configuration file. Of course one could also just package one with the engine, or make a command to print such a file.
Either way it's nice with there is config file to edit, take me for instance I have yet to figure out how to increase the hashtables in Crafty. And no, I'm not going to bother to read 10 pages of help files to figure it out, so that means Crafty won't get a spot on my testbench!
-S.
Yes, however this would mean that the user has deleted some lines, I don't think most user would do that but you have to expect the unexpected of course.I will consider doing that. It would be a nice way of doing things. The only case I can't see how to handle nicely, is when the file exists, but some _essential_ things are missing from it. If the only line in the cfg file is:
egtb path c:\tb
then at least hash table sizes are missing.
One way to deal with it would be to exit with an error message. Another would be to create tables of standard sizes, which I am doing now. One could take this scheme to the extreme and demand a fen for what position to start the program with:
setboard rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
hash 256M
phash 32M
egtb path c:\tb
the first three lines are a required minimum then.
Of course there are many different and good ways to do this. I just like finding the simplest solution and the nicest design. It would be nice one and only one cfg file existed, and you could still use it as a "script" as in current Chezzz. The script idea isn't fully functional yet. Ideally you should be able to do this:
easy
st 10
setboard something
go
hash save hashimage.bin
setboard whatever
go
test wac.epd
quit
or whatever...
You can't now. Specifically, "go" doesn't make sense in the cfg file (yet).
/David
In case some lines of the ini file were deleted you can just assume a default value for missing variables. If a user wants to restore all default values, he should just rename or delete the changed ini file and the engine would create a new one with default values.Yes, however this would mean that the user has deleted some lines, I don't think most user would do that but you have to expect the unexpected of course.I will consider doing that. It would be a nice way of doing things. The only case I can't see how to handle nicely, is when the file exists, but some _essential_ things are missing from it. If the only line in the cfg file is:
egtb path c:\tb
then at least hash table sizes are missing.
Sure (I wrote that at the bottom:).In case some lines of the ini file were deleted you can just assume a default value for missing variables.Yes, however this would mean that the user has deleted some lines, I don't think most user would do that but you have to expect the unexpected of course.I will consider doing that. It would be a nice way of doing things. The only case I can't see how to handle nicely, is when the file exists, but some _essential_ things are missing from it. If the only line in the cfg file is:
egtb path c:\tb
then at least hash table sizes are missing.
If a user wants to restore all default values, he should just rename or delete the changed ini file and the engine would create a new one with default values.
Stefan
Return to Archive (Old Parsimony Forum)
Users browsing this forum: No registered users and 23 guests