In WinBoard.ini there is this line:
/adapterCommand='polyglot -noini -ec "%fcp" -ed "%fd"'
What is that, exactly? ec is almost certainly "engine command" and ed is almost certainly "engine directory," but what is the noini switch for?
A long time ago, probably after reading
"There should be a different INI file for each engine."
in the polglot readme.txt help file, I went ahead and set up polyglot ini files for each of my engines. And since then I've always invoked my UCI engines in WinBoard with this type of command, in the winboard.ini file:
"Polyglot ../_PG/komodo203.ini" /firstLogo="../../Engines/Komodo/komodo-203-64-ja.bmp"
(Note: The two periods, and not one, before the "/_PG", is correct for me. I created a new _PG folder one level up from my WinBoard folder and that's where all of my polyglot ini files are.)
This method of invoking the engines has always served me well.
However, after having problems with an engine, and wanted to try something different, I wanted to invoke it without an ini file at all. So I then, maybe for the first time, tried this method:
"Komodo-203-64-ja.exe" /firstLogo="../../Engines/Komodo/komodo-203-64-ja.bmp" /fd="../../Engines/Komodo" -fUCI
That worked fine too... but although the engine loaded fine, no opening book was loaded.
But I EXPECTED a book to be loaded, since in my winboard.ini file I do have these two lines:
/usePolyglotBook=true
/polyglotBook="d:\Chess\Books\Book.bin"
So... my next question... isn't that what those two lines in winboard.ini are for? To load a polyglot book for the UCI engines if no other book is specified elsewhere? If yes, any idea why the book.bin file didn't load for me? (The path and book.bin file are definitely valid.)
And is there any difference, or any advantage or disadvantage at all, in the above two different methods of invoking the UCI engines?
Finally, after loading an engine without an ini file as mentioned above, and then clicking on ENGINE and then ENGINE #1 SETTINGS, I can't seem to save these parameters in an ini file. Saving isn't working for me, no matter what I try.
The default path and potential filename originally look like this:
.\_PG\Komodo64_2.03_64_JA.ini
and to make that default path work I went ahead and re-created the _PG folder from my WinBoard folder, as I think I remember it being originally. (For whatever reason at the time, I didn't like it or want _PG in my winboard folder so I recreated it elsewhere. I don't think I realized the implications of changing it at the time.)
However, after clicking SAVE, no ini file is saved. And if I do try to change the path, to something else, anything else, no ini file is saved then either. Even if I create a blank text file first, and then navigate and point to that file specifically, no file is saved.
I can't for the life of me get WinBoard to save an ini file from this window at all. Any idea why?
This is all with WinBoard 4.5.2.
Below is my winboard.debug file. All I did was load Komodo, try to invoke a SAVE with the default filename, and then change it to C:\Komodo.ini, and then also clicked on SAVE, and then exited. But no ini file was saved, anywhere.
- Code: Select all
recognized 'normal' (-1) as variant normal
recognized 'normal' (-1) as variant normal
WinBoard 4.5.2 + komodo-203-64-ja
Reset(1, 0) from gameMode 0
recognized 'normal' (-1) as variant normal
GameEnds(0, (null), 2)
shuffleOpenings = 0
TC string = ':120'
mps=0 tc=120000 inc=0
TC string = ':120'
mps=0 tc=120000 inc=0
StartChildProcess (dir=".") polyglot -noini -ec "komodo-203-64-ja.exe" -ed "../../Engines/Komodo"
nice engine proc to 5
645 >first : xboard
protover 2
663 <first : PolyGlot 1.4.66b by Fabien Letouzey.
665 <first : feature done=0
665 >first : accepted done
666 <first : feature analyze=1
666 >first : accepted analyze
666 <first : feature colors=0
666 >first : accepted colors
666 <first : feature draw=1
666 >first : accepted draw
666 <first : feature ics=1
666 >first : accepted ics
666 <first : feature myname="Komodo64 2.03 JA"
667 >first : accepted myname
667 <first : feature name=1
667 >first : accepted name
667 <first : feature pause=0
667 >first : accepted pause
667 <first : feature ping=1
667 >first : accepted ping
667 <first : feature playother=1
667 >first : accepted playother
667 <first : feature sigint=1
667 >first : accepted sigint
668 <first : feature reuse=1
668 >first : accepted reuse
668 <first : feature san=0
668 >first : accepted san
668 <first : feature setboard=1
668 >first : accepted setboard
668 <first : feature sigint=0
668 >first : accepted sigint
668 <first : feature sigterm=0
668 >first : accepted sigterm
668 <first : feature time=1
668 >first : accepted time
669 <first : feature usermove=1
669 >first : accepted usermove
669 <first : feature nps=1
669 >first : accepted nps
669 <first : feature memory=1
669 >first : accepted memory
669 <first : feature smp=0
669 >first : accepted smp
669 <first : feature egt=""
669 >first : accepted egt
669 <first : feature variants="normal"
670 >first : accepted variants
670 <first : feature option="OwnBook -check 1"
670 >first : accepted option
670 <first : feature option="MultiPV -spin 1 1 99"
670 >first : accepted option
670 <first : feature option="Book File -file komodo.bin"
670 >first : accepted option
670 <first : feature option="use lmr -check 1"
670 >first : accepted option
671 <first : feature option="null move pruning -check 1"
671 >first : accepted option
671 <first : feature option="deterministic -check 0"
671 >first : accepted option
671 <first : feature option="Best Line -check 1"
671 >first : accepted option
671 <first : feature option="Red depth threshold -spin 10 0 100"
671 >first : accepted option
672 <first : feature option="King Safety Aggressiveness -spin 6 0 10"
672 >first : accepted option
672 <first : feature option="move overhead milliseconds -spin 20 0 30000"
672 >first : accepted option
672 <first : feature option="drawscore -spin -5 -50 50"
672 >first : accepted option
672 <first : feature option="Polyglot SettingsFile -file .\_PG\Komodo64_2.03_JA.ini"
673 >first : accepted option
673 <first : feature option="Polyglot Log -check 0"
673 >first : accepted option
673 <first : feature option="Polyglot LogFile -file polyglot.log"
673 >first : accepted option
673 <first : feature option="Polyglot Resign -check 0"
673 >first : accepted option
673 <first : feature option="Polyglot ResignMoves -spin 3 0 10000"
674 >first : accepted option
674 <first : feature option="Polyglot ResignScore -spin 600 0 10000"
674 >first : accepted option
674 <first : feature option="Polyglot Book -check 0"
674 >first : accepted option
674 <first : feature option="Polyglot BookFile -file book.bin"
674 >first : accepted option
675 <first : feature option="Polyglot BookRandom -check 1"
675 >first : accepted option
675 <first : feature option="Polyglot BookDepth -spin 256 0 256"
675 >first : accepted option
675 <first : feature option="Polyglot STFudge -spin 20 0 1000"
675 >first : accepted option
675 <first : feature option="Polyglot SyncStop -check 0"
676 >first : accepted option
676 <first : feature option="Polyglot Save -save"
676 >first : accepted option
676 <first : feature done=1
676 >first : accepted done
689 >first : memory 132
689 >first : new
random
689 >first : ics -
689 >first : level 0 2 0
689 >first : post
689 >first : hard
689 >first : easy
689 >first : ping 1
813 <first : pong 1
[x] OwnBook MultiPV [ +/-]
Book File [______________________________________]
[x] null move pruning [x] use lmr
[x] deterministic
[x] Best Line Red depth threshold [ +/-]
move overhead millis [ +/-] King Safety Aggressi [ +/-]
drawscore [ +/-]
Polyglot SettingsFil [______________________________________]
[x] Polyglot Log
Polyglot LogFile [______________________________________]
[x] Polyglot Resign Polyglot ResignMoves [ +/-]
Polyglot ResignScore [ +/-]
[x] Polyglot Book
Polyglot BookFile [______________________________________]
[x] Polyglot BookRandom Polyglot BookDepth [ +/-]
Polyglot STFudge [ +/-]
[x] Polyglot SyncStop
[ Polyglot Save ]
26865 >first : option Polyglot SettingsFile=c:\komodo.ini
GameEnds(28, xboard exit, 2)
29642 >first : result * {xboard exit}
29642 >first : force
29642 >first : ping 2
29642 >first : quit
I think I'm missing something simple, but after two days of experimenting, I'm ready to ask for help.