V3 Remote Engines in Windows - need help in scripting

237 views
Skip to first unread message

TobiasL

unread,
Feb 14, 2021, 5:06:47 PM2/14/21
to PicoChess
Hi all,
I make my first steps in using the remote engines in V3. Its really great and I am now playing Fritz, Shredder, Houdini and my favourite Komodo on Picochess. Really great, 1000 thanks to all „makers“.
But I have a problem in Windows. I dont´t know, how I have to make a correct script.
In MacOS I wrote sh.scripts and it works. In Windows I‘m not able to get a script started.
I tried it with Powershell and ps1-scripts. It works on the Windows PC, I can also start ist manually via ssh from my iPad, but I have to write the scriptname with the extension. I tried to start the script via batch, but there also I have to write the „.bat“ in the command. I have found no way to start a script without using  the extension.
I think my settings are correct, caus I can start the engines directly:
If I copy the original engine, e.g. Komodo in the „remote_engine“ folder and rename the engine in e.g. remote_komodo.exe I can start the engine and it runs without any problem. This works principially for all the engines, but not all angines „allow“ to rename.
E.g. HoudiniPro6 doesn’t find the license informations, if I rename the engine file.

Could you help me ? Thank you


Scally

unread,
Feb 14, 2021, 5:58:20 PM2/14/21
to PicoChess
Hi Tobias,

You obviously have the correct paths and slashes in your picochess.ini file to get the initial connection:

Here’s mine:

### Parameters for a remote engine (server) (from 3.0 on can be used in at the same time with standard engines)
## v3 Where is the server with the engine
engine-remote-server = 192.168.1.245  (The IP address of your windows device)
## v3 What user to use for connect to the remote-engine server
engine-remote-user = Scally  (User of your windows device login)
## v3 What password for the remote-engine-server
engine-remote-pass = mywinpassword  (Password of your windows device login)
## The secret server-key for the remote-engine-server
# engine-remote-key = your_secret_key
## v3 The home path (where the engines live) for the remote-engine-server
engine-remote-home = C:\\Users\\Scally\\Chess\\  (path where your engine folders and batch files are)

On my Windows tablet, using stockfish12 as an example:

My folder layout is: \Scally\Chess\Stockfish-12\

inside my Stockfish-12 folder is my Stockfish 12 engine named stockfish_2009016_x64_modern.exe

also in my  \Scally\Chess folder\  I have my  remote_stockfish.bat   batch/script file
This is the contents of the batch file:

cd C:\Users\Scally\Chess\Stockfish-12
C:\Users\Scally\Chess\Stockfish-12\stockfish_20090216_x64_modern.exe

Within Picochess I have my uci file and engines.ini entries:

file remote_stockfish.uci, this file goes in the  /opt/picochess/engines/armv7l/  folder

DEFAULT]
Hash = 192 
Threads = 3
SyzygyPath = /opt/picochess/tablebases/syzygy 
Slow Mover = 33
Move Overhead = 2000

[Level@00] 
Skill Level = 0 

[Level@01] 
Skill Level = 1

[Level@02] 
Skill Level = 2 

[Level@03] 
Skill Level = 3 

[Level@04]
Skill Level = 4

[Level@05]
Skill Level = 5

[Level@06] 
Skill Level = 6

[Level@07]
Skill Level = 7

[Level@08]
Skill Level = 8

[Level@09] 
Skill Level = 9 

[Level@10]
Skill Level = 10

[Level@11]
Skill Level = 11

[Level@12]
Skill Level = 12

[Level@13]
Skill Level = 13

[Level@14]
Skill Level = 14

[Level@15]
Skill Level = 15

[Level@16]
Skill Level = 16

[Level@17]
Skill Level = 17

[Level@18]
Skill Level = 18

[Level@19]
Skill Level = 19

[Level@20]
Skill Level = 20
Threads = 4 

and within your engines.ini file, also in  /opt/picochess/engines/armv7l/  add this:

[remote_stockfish]
name = Stockfish 12 Windows remote-engine
small = SF12 R
medium = Stf 12 R
large = Stockf 12 R
elo = 3210
ccrl = 3431
levels = 21
cores = 3, level 20 4 cores
ponder/brain = y
fischer chess960 support = y
comments: Win Tablet Remote Engine

I hope that all makes sense, it’s late here and I’ve rushed this before retiring for the night.


Cheers,

Al.

TobiasL

unread,
Feb 14, 2021, 6:23:43 PM2/14/21
to PicoChess
omg, its so easy. Thank you so much.
According to the sh.scripts I wrote the first line „#!/bin!bash“, so the batch didn‘t work. I deleted this line and all works fine. 
I already lied in my bed when I saw your anwser. I went back to my chess computer and tested it. Now I can sleep well ;-)

Thanks a lot. This forum is so great. Everybody is so friendly.
Good night

Tobias
Reply all
Reply to author
Forward
0 new messages