What's wrong with this engines.json file?

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

User avatar
Ozymandias
Posts: 1537
Joined: Sun Oct 25, 2009 2:30 am

What's wrong with this engines.json file?

Post by Ozymandias »

I get the following warning from cutechess-cli 0.7.3 (September 6): cannot start SF070116, cannot execute command Stockfish_070116_510_LIBS_x64_modern_BYO, finished match. This is the file in question:

Code: Select all

[ 
  { 
    "workingDirectory" : "C:\\", 
    "command" : "Stockfish_070116_510_LIBS_x64_modern_BYO", 
    "name" : "SF070116", 
    "options" : [ 
      { 
        "name" : "Hash", 
        "value" : 16 
      }, 
      { 
        "name" : "SyzygyProbeLimit", 
        "value" : 5 
      }, 
      { 
        "name" : "SyzygyProbeDepth", 
        "value" : 1 
      }, 
      { 
        "name" : "Threads", 
        "value" : 1 
      } 
    ] 
  }, 
  { 
    "workingDirectory" : "C:\\", 
    "command" : "Stockfish_221215_510_LIBS_x64_modern_BYO", 
    "name" : "SF221215", 
    "options" : [ 
      { 
        "name" : "Hash", 
        "value" : 16 
      }, 
      { 
        "name" : "SyzygyProbeLimit", 
        "value" : 5 
      }, 
      { 
        "name" : "SyzygyProbeDepth", 
        "value" : 1 
      }, 
      { 
        "name" : "Threads", 
        "value" : 1 
      } 
    ] 
  }  
]
User avatar
Ajedrecista
Posts: 2120
Joined: Wed Jul 13, 2011 9:04 pm
Location: Madrid, Spain.

Re: What is wrong with this engines.json file?

Post by Ajedrecista »

Hello Juan:

I have an old .json file that worked with cutechess-cli 0.5.1 and the only difference I see is that the name of the engine after "command" finishes with .exe; in your case:

Code: Select all

[ 
  { 
    "workingDirectory" : "C:\\", 
    "command" : "Stockfish_070116_510_LIBS_x64_modern_BYO.exe", 
    "name" : "SF070116", 
    "options" : [ 
      { 
        "name" : "Hash", 
        "value" : 16 
      }, 
      { 
        "name" : "SyzygyProbeLimit", 
        "value" : 5 
      }, 
      { 
        "name" : "SyzygyProbeDepth", 
        "value" : 1 
      }, 
      { 
        "name" : "Threads", 
        "value" : 1 
      } 
    ] 
  }, 
  { 
    "workingDirectory" : "C:\\", 
    "command" : "Stockfish_221215_510_LIBS_x64_modern_BYO.exe", 
    "name" : "SF221215", 
    "options" : [ 
      { 
        "name" : "Hash", 
        "value" : 16 
      }, 
      { 
        "name" : "SyzygyProbeLimit", 
        "value" : 5 
      }, 
      { 
        "name" : "SyzygyProbeDepth", 
        "value" : 1 
      }, 
      { 
        "name" : "Threads", 
        "value" : 1 
      } 
    ] 
  }  
]
I do not know if it will be enough, just assuming your working directory is correct, I mean, that the engines are there. Good luck!

Regards from Spain.

Ajedrecista.
User avatar
Ozymandias
Posts: 1537
Joined: Sun Oct 25, 2009 2:30 am

Re: What is wrong with this engines.json file?

Post by Ozymandias »

Of all the silly things… that was it. When you have all the files in the cutechess directory, you can skip extensions, but apparently, not when invoking "workingDirectory".
User avatar
ilari
Posts: 750
Joined: Mon Mar 27, 2006 7:45 pm
Location: Finland

Re: What is wrong with this engines.json file?

Post by ilari »

Ozymandias wrote:Of all the silly things… that was it. When you have all the files in the cutechess directory, you can skip extensions, but apparently, not when invoking "workingDirectory".
Yes. That's sort of a bug and will be fixed at some point. But for now things should go smoothly if you include the extension.