Help with command line

Discussions about Winboard/Xboard. News about engines or programs to use with these GUIs (e.g. tournament managers or adapters) belong in this sub forum.

Moderator: Andres Valverde

Help with command line

Postby elorejano » 24 Aug 2012, 00:07

Hi!
I want to use Typhoon engine by Scott Gasch, but have problems with the command line in winboaed.ini
Can somebody post the right COMPETE line in winboard.ini fot Typhoon?
Thanks in advance
elorejano
 
Posts: 11
Joined: 21 Feb 2010, 16:59

Re: Help with command line

Postby Richard Allbert » 24 Aug 2012, 11:29

/firstChessProgramNames={
"typhoon" -fcp typhoon -fd "C:/Chess/typhoon"
}
Richard Allbert
 
Posts: 105
Joined: 27 Sep 2004, 11:56
Location: Aschaffenburg, Germany

Re: Help with command line

Postby elorejano » 24 Aug 2012, 16:05

Thanks but im reffering with hash and egtb paths
Manual guide say for hash

--hash 128
and fot egtb path

--egtbpath "e:\TB"
but this commands makes a colision with "
And both commands have to be separated with --??
Any ides?
elorejano
 
Posts: 11
Joined: 21 Feb 2010, 16:59

Re: Help with command line

Postby H.G.Muller » 24 Aug 2012, 17:54

Why don't you simply browse to the typhoon.exe for engine file in the Load Engine dialog, and then type in the command-line parameters field

--hash 128 --egtbpath "e:\TB"

before pressing 'OK', and then look with Edit Engine List to see what WinBoard has written in the winboard.ini file?
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

Re: Help with command line

Postby elorejano » 24 Aug 2012, 19:37

Because i use "old" winboard + Thomas McBurney tool EngMan
My typhoon line is

"Typhoon --hash 128M--egtbpath " /fd="e:\winboard\engines\typhoon" ; /name="Typhoon"

See? the quotes are the problem, because typhoon use quotes for TBs location and winboard use this for engines path, then

"Typhoon --hash 128M--egtbpath "E:\TB"" /fd="e:\winboard\engines\typhoon" ; /name="Typhoon"

This produces colision between two quotes ("") and winboard refuse it

Nobody use Typhoon?
elorejano
 
Posts: 11
Joined: 21 Feb 2010, 16:59

Re: Help with command line

Postby H.G.Muller » 24 Aug 2012, 21:14

Because i use "old" winboard + Thomas McBurney tool EngMan


Yeah, that is what you get, using stone-age tools when there are space craft... :wink:

The trick is that you can use 3 different ways to 'quote' strings that would otherwise be seen as multiple entities: single quotes, double quotes, or braces {}. The latter only work at the outer level, and do not allow nesting: everything between them is taken totally literally. Single and double quotes can be nested, and can be escaped with a back-slash when you want them to occur literally in a quoted string.

So to prevent the conflict between the various levels of quoting you should use

'Typhoon --hash 128 --egtbpath "e:\TB"' -fd "e:\winboard\engines\typhoon"

i.e. use sigle quotes to 'protect' the engine command to not conflict with the double quotes you used to protect the egtb path name. In the current case it seems that path name does not really need protection (it contains no spaces), so you could probably have left out those double quotes, and then it would not have mattered which quotes you used around the entire engine command.

Of course the best thing to do would be to complain to Scott that his engine needs those silly command-line options, rather than supporting the memory and egtpath commands to let WinBoard set them.

[Edit] Perhaps it would be better to use {} as outer quoting, rather than single quotes, because there is a backslash somewhere inside the command, and it might not behave inside quotes as you want. So:

{Typhoon --hash 128 --egtbpath "e:\TB"} -fd "e:\winboard\engines\typhoon"
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

Re: Help with command line

Postby elorejano » 25 Aug 2012, 05:02

I agre with you, Scott have to change this.
Any of those option works.
I dont believe: any winboarder have tried Typhoon?
elorejano
 
Posts: 11
Joined: 21 Feb 2010, 16:59


Return to Winboard and related Topics

Who is online

Users browsing this forum: No registered users and 19 guests