F. Bluemers wrote:I wonder if this feature is broken.
I tried implementing it for Dirty but the "." is only send once to the engine and never more unless f.i. after setting a new position.
Same with fruit 2.1 and crafty 23.2
Related to analyze output: what is xboard supposed to do encountering the failhigh/faillow indicators ( "--" and "++" strings) ?
I don't see anything special?
Best
Fonzy
(*xboard 8.0 gtk version)
I have found the cause of the periodic updates problem.
AnalysisClockCallback() //xtimer.c was only called once.
According to the glib page when adding a function with g_timeout_add:: "The function is called repeatedly until it returns FALSE, at which point the timeout is automatically destroyed and the function will not be called again."**
It seems that (void) AnalysisClockCallback() was doing just that.
uglyhacktweaking it to return a value made periodic analysis work again.
- Code: Select all
int //void
AnalysisClockCallback(gpointer data)
{
if (gameMode == AnalyzeMode || gameMode == AnalyzeFile
|| appData.icsEngineAnalyze) { // [DM]
AnalysisPeriodicEvent(0);
}
return 1;
}
I also found the answer to my second question on encountering "--" or "++" xboard sets programStats.got_fail accordingly.However that variable
seems not to be used anywhere.
Best
Fonzy
**source:
https://developer.gnome.org/glib/stable ... imeout-add