|
From: Larry I. <lar...@mi...> - 2011-07-14 00:22:31
|
Hi,
The commit on 2011-01-02 07:49:34 removed the sc_pos "analyze" command
from tkscid.cpp and tkscid.h with the comment "Remove unused functions".
However, the analyze command is used to determine the difficulty level
when marking tactical exercises. So if "Mark tactical exercises" is
enabled when running Annotate on a game, then an "Invalid command" error
occurs if Scid tries to mark a tactical exercise, i.e.:
Invalid command: sc_pos has the following minor commands:
addNag
...
moves
while executing
"sc_pos analyze -time 1000 -hashkb 32 -pawnkb 1 -searchdepth $depth "
(procedure "markExercise" line 42)
invoked from within
"markExercise $prevscore $score "?" "
(procedure "addAnnotation" line 240)
invoked from within
"addAnnotation"
(procedure "autoplay" line 14)
invoked from within
"autoplay"
("after" script)
Assuming there isn't some reason not to add the "analyze" command back
to sc_pos, the attached patch will restore the removed "analyze" code.
This fixes the error for me locally so Scid is able to mark tactical
exercises.
Cheers,
Larry Isaacs
|