icsDrone

Discussion of chess software programming and technical issues.

Moderators: hgm, Dann Corbit, Harvey Williamson

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

icsDrone

Post by hgm »

Is there a Linux binary (CentOS) for icsDrone available for download somewhere? I tried to install it from source, but the source contains errors, so it won't compile.

(In particular *(((u_char *) dest)++) is not valid C; casts are not lvalues.)
Michel
Posts: 2271
Joined: Mon Sep 29, 2008 1:50 am

Re: icsDrone

Post by Michel »

I tried to install it from source, but the source contains errors, so it won't compile.

(In particular *(((u_char *) dest)++) is not valid C; casts are not lvalues.)
Which version of icsdrone is this? I tried to find that snippet but
the special characters +)* make that rather difficult.

I run icsdrone on CentOS myself and do not have any problems compiling it.

The latest version of icsdrone is on sourceforge:

http://sourceforge.net/projects/icsdrone/
User avatar
hgm
Posts: 27701
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: icsDrone

Post by hgm »

OK, thanks. This one (0.26) did work. I don't know what the other was; the source was already on the machine when I tried to install it.
User avatar
hgm
Posts: 27701
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: icsDrone

Post by hgm »

There still seems to be a problem using this new version on my ICS, though. When I wanted to resume a 1 0 unrated game that was adjourned after a disconnect, it refused it with the message that it only played regular chess. I am not sure if his is the ICS's fault, but when I used XBoard in stead, it had no trouble resuming the game.
Michel
Posts: 2271
Joined: Mon Sep 29, 2008 1:50 am

Re: icsDrone

Post by Michel »

There still seems to be a problem using this new version on my ICS, though. When I wanted to resume a 1 0 unrated game that was adjourned after a disconnect, it refused it with the message that it only played regular chess. I am not sure if his is the ICS's fault, but when I used XBoard in stead, it had no trouble resuming the game.
Do you have the snippet from the log file where it does that? Then I can see what's wrong (resuming works on FICS and ICS but probably icsdrone depends on something that is specific for those ICS's).
Michel
Posts: 2271
Joined: Mon Sep 29, 2008 1:50 am

Re: icsDrone

Post by Michel »

Code: Select all

  if ((sscanf(line, "Challenge: %30s (%30[^)])%30s (%30[^)])%30s%30s", 
	      name,rating,name2,rating2,rated,variant) == 6)
      ||
      (sscanf(line,"Challenge: %30s (%30[^)]) [%30[^]]] %30s (%30[^)])%30s%30s",
              name,rating,color,name2,rating2,rated,variant)==7)
  ) {
      // ICC and FICS have different variant names; we need a more generic
      // solution for this...
    if(strcmp(variant,"lightning") && 
       strcmp(variant,"blitz") && 
       strcmp(variant,"standard") &&
       strcmp(variant,"Bullet") && 
       strcmp(variant,"Blitz") && 
       strcmp(variant,"Standard") 
       ){
      logme(LOG_INFO,"Rejected variant %s", variant);
      SendToIcs("tell %s Sorry I only play regular chess.\n",name);
      SendToIcs("decline %s\n", name);    
      return TRUE;
    }
The code snippet that generated this message is above. Apparently the scanf's did not correctly parse the challenge message in case of a resumed game.

I will have a look.

What is the ip of your server? I know I would be able to find it by searching, but searching is no fun on this forum.
User avatar
hgm
Posts: 27701
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: icsDrone

Post by hgm »

The IP is 80.100.28.169 .

I will look if I can find the log. This was actually done on another server (using the same code on a VPS, where icsDrone was also running).
Michel
Posts: 2271
Joined: Mon Sep 29, 2008 1:50 am

Re: icsDrone

Post by Michel »

I guess I also need a human account since a guest would forfeit his game when disconnecting.
User avatar
hgm
Posts: 27701
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: icsDrone

Post by hgm »

Good point!

I made an account 'Michel'; it should have sent the password to your uhasselt e-mail account.
Michel
Posts: 2271
Joined: Mon Sep 29, 2008 1:50 am

Re: icsDrone

Post by Michel »

I managed to reproduce the problem. The reason is that the challenge on your ICS presented after an adjourned game looks as follows
Challenge: Michel (----) GnuCheese (1792) rated non-standard 2 12 Loaded from blitz/0 (adjourned).
The variant "non-standard" is bizarre here. Is it really meant to be this way?

On FICS the corresponding Challenge is
Challenge: IOEO (1441) GnuCheese (2497) unrated lightning 1 0 (adjourned).