Missing UCI parameters Komodo 9.1

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

Moderator: Ras

Canoike
Posts: 125
Joined: Tue Jan 17, 2012 8:08 pm

Missing UCI parameters Komodo 9.1

Post by Canoike »

Hi,

1) When using Komodo 9 in command line, I notice an uci option called "UCI_AnalyseMode type check default false"
However, when I use Arena or Fritz, I no longer see this option in the GUI. Why ?

2) Under Linux, I use Polyglot. What value must I put in the Polyglot.ini file to enable writing hash to the hard disk ?
Hash File Name ?
Save Hash to File ? (this is a button)
Load Hash from File ? (this is a button)

Thank you.
mjlef
Posts: 1494
Joined: Thu Mar 30, 2006 2:08 pm

Re: Missing UCI parameters Komodo 9.1

Post by mjlef »

Canoike wrote:Hi,

1) When using Komodo 9 in command line, I notice an uci option called "UCI_AnalyseMode type check default false"
However, when I use Arena or Fritz, I no longer see this option in the GUI. Why ?

2) Under Linux, I use Polyglot. What value must I put in the Polyglot.ini file to enable writing hash to the hard disk ?
Hash File Name ?
Save Hash to File ? (this is a button)
Load Hash from File ? (this is a button)

Thank you.
1. UCI_AnalseMode is intercepted and controlled internally by some GUIs, and so does not appear in the engine UCI Parameters screens. When you click the "analyze" butt in Arena, Arena sets the value for you. Most GUIs also move the Hash field for setting hash memory to some other menu too. I assume this is so they can have a common Hash size when running engine matches, but it can be confusing.

2. After stopping the search, a sequence that would work to save the hash to file name fred.has is:

setoption name Hash File Name value fred.has
setoption name Save Hash to File

to load it (assuming the Hash File Name is already set):

setoption name Load Hash from File

I do not know a lot about polyglot.ini files, but those are the commands the engine understands.

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

Re: Missing UCI parameters Komodo 9.1

Post by hgm »

mjlef wrote:setoption name Hash File Name value fred.has
This is a UCI protocol violation, right? UCI options are not case sensitive, and 'name' is a protected keyword. So you should not be surprised if some interfaces will choke on this option.
I do not know a lot about polyglot.ini files, but those are the commands the engine understands.
Button options are inherently interactive, and thus cannot be controlled from an ini file. You should press them in the Engine Settings dialog at the time you want the action performed. One should never mess with polyglot.ini files anyway. Leave their creation to Polyglot, by invoking the latter with the command

polyglot -noini -ec ENGINECOMMAND

Or better yet, leave it to XBoard to issue that command, by invoking XBoard with the option -fUCI (or by ticking the UCI checkbox when you load and register the engine through the menus).
mar
Posts: 2833
Joined: Fri Nov 26, 2010 2:00 pm
Location: Czech Republic
Full name: Martin Sedlak

Re: Missing UCI parameters Komodo 9.1

Post by mar »

hgm wrote:This is a UCI protocol violation, right? UCI options are not case sensitive, and 'name' is a protected keyword. So you should not be surprised if some interfaces will choke on this option.
Interesting, I missed this detail. In fact, UCI spec even says that

Code: Select all

The name and value of the option in <id> should not be case sensitive and can inlude spaces.
but I consider this a flaw, for value it makes no sense to ignore case sensitivity because of paths and case-sensitive file systems
(in fact, I'd prefer case sensitivity for name as well).
I hope that options in CECP are case sensitive (which would make perfect sense).
User avatar
hgm
Posts: 28514
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Missing UCI parameters Komodo 9.1

Post by hgm »

CECP options are indeed case sensitive, as are their values.