-
$ make
gcc -DPRODUCTNAME=\"icsDrone\" -DPRODUCTVERSION=\"1.5.0\" -Wall -O2 -c -o utils.o utils.c
utils.c: In function 'bytezero':
utils.c:43: error: invalid lvalue in increment
utils.c: In function 'bytecopy':
utils.c:51: error: invalid lvalue in increment
utils.c:51: error: invalid lvalue in increment
utils.c: In function 'stringcat':
utils.c:56: error: invalid lvalue in increment...
2008-06-02 08:01:08 UTC by nobody
-
Attached is my patch to allow polyglot to work.
Regardless of the commandline, craftyMode gets set. This happens because icsDrone receives sigint=0 from polyglot. I don't know enough about this project to determine if craftyMode should or shouldn't be set when using polyglot, so my patch does not address this issue.
1) I added a routine, polyglot() for determining if the engine is...
2007-08-09 19:56:42 UTC by emwine
-
File Added: detect.patch.
2007-08-09 19:43:56 UTC by emwine
-
in fics.c, the line:
if (sscanf(line, "Creating: %s (%s) %s (%s) %*s %s %c",
will not parse correctly using the standard C library with ubuntu 7.04, gcc 4.2.1. In order to work correctly, it must be changed to:
if (sscanf(line, "Creating: %s (%[-+0-9]) %s (%[-+0-9]) %*s %s %c",
I'm assuming that the (%s) syntax does work on some compiler/environment setup, otherwise it would never...
2007-08-07 16:37:28 UTC by emwine
-
previous was buggy -- it left the trailing ')' character. Here is an updated one:
void update_rating_str(char *rating)
{
char *p;
if ((p=strchr(rating, ')')) != NULL)
*p = '\0';
if (*rating == '(')
memmove(rating, rating + 1, strlen(rating + 1) + 1);
}.
2007-08-07 02:28:31 UTC by emwine
-
A little poking around and it's clear it's not the specific string "(++++)" that is the cause. (ie: playing as or against guest isn't relevant) It looks like it shouldn't have ever detected the string, unless sscanf() behaves differently in different environments.
The above fix still works, but to be accurate, you'll have to strip out the parenthesis from the two rating variables after...
2007-08-07 02:19:10 UTC by emwine
-
When playing as or against guests on FICS, icsDrone is unable to detect the game creation line because their rating is (++++). The obvious symptom of this is the engine won't start playing when given white. This might cause incorrect initializations, regardless of color.
My local fix of changing the sscanf line in fics.c:
if (sscanf(line, "Creating: %s (%s) %s (%s) %*s %s %c",
to...
2007-08-06 23:15:31 UTC by emwine
-
night0wl committed patchset 37 of module icsDrone to the icsDrone CVS repository, changing 2 files.
2007-03-16 03:04:52 UTC by night0wl
-
night0wl committed patchset 36 of module icsDrone to the icsDrone CVS repository, changing 2 files.
2007-03-16 02:55:29 UTC by night0wl
-
Fixed in the version in CVS.
2007-03-16 02:44:39 UTC by night0wl