Menu

#6 Doesn't detect new game

v1.0_(example)
closed
nobody
None
5
2016-04-06
2007-08-07
Eric
No

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 have worked. So, what needs to be done is some conditional compilation depending on which syntax sscanf() uses. I don't know how to determine that.

The symptoms of this problem include:
Engine unable to play when assigned white.
Engine won't even start unless '-killEngine false' and '-haveCmdNew true' are specified.

Discussion

  • Eric

    Eric - 2007-08-09

    fix game detection

     
  • Eric

    Eric - 2007-08-09

    Logged In: YES
    user_id=1861893
    Originator: YES

    File Added: detect.patch

     
  • Michel

    Michel - 2016-04-06
    • status: open --> closed
    • Group: --> v1.0_(example)
     

Log in to post a comment.

MongoDB Logo MongoDB