MacPorts/xboard: Timing anomalies

Discussion of chess software programming and technical issues.

Moderators: hgm, Dann Corbit, Harvey Williamson

JoshPettus
Posts: 730
Joined: Fri Oct 19, 2012 2:23 am

Re: More details

Post by JoshPettus »

Ah, I mispoke. I meant the linux version of timestamp,

Good to know about openseal. The osx version of timeseal seems to work fine though.
User avatar
sje
Posts: 4675
Joined: Mon Mar 13, 2006 7:43 pm

Re: Minor grief with -xrm option

Post by sje »

sje wrote:I believe that multi is specific to ICC and is not available at FICS.

On FICS,

Code: Select all

        -zippyGameEnd "seek 5"
Will issue a single seek. But I want more than one of them, and passing "\n" inside a string doesn't work. I haven't tried a backslash escape yet. I've been doing a lot of flailing without much progress; somewhere there must be documentation on how to do multiple seeks on FICS via xboard.
FICS does not allow the use of a semicolon for command separation.

A pre-expanded, multi-line string will break some other things, even if it worked here.

If xboard can't/won't expand newline characters, then I'll have to fall back to have the program send tellics commands with seek ads each time it gets a result directive.
User avatar
hgm
Posts: 27702
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Minor grief with -xrm option

Post by hgm »

sje wrote:A pre-expanded, multi-line string will break some other things, even if it worked here.
Why? WinBoard always stores the values of its string options in expanded form. When you say -zippyGameEnd "seek 5\nseek 10" there will be no backslash and no n in the string, but an ascii 012 code. There will also be no quotes; WinBoard strips these too, when parsing the command line.
matthewlai
Posts: 793
Joined: Sun Aug 03, 2014 4:48 am
Location: London, UK

Re: Minor grief with -xrm option

Post by matthewlai »

sje wrote:I believe that multi is specific to ICC and is not available at FICS.

On FICS,

Code: Select all

        -zippyGameEnd "seek 5"
Will issue a single seek. But I want more than one of them, and passing "\n" inside a string doesn't work. I haven't tried a backslash escape yet. I've been doing a lot of flailing without much progress; somewhere there must be documentation on how to do multiple seeks on FICS via xboard.
I use
-zippyGameEnd "seek 5 0 f\\nseek 2 12 f\\nseek 15 0 f"

on Linux. Probably works on OSX, too.
Disclosure: I work for DeepMind on the AlphaZero project, but everything I say here is personal opinion and does not reflect the views of DeepMind / Alphabet.
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: More details

Post by bob »

JoshPettus wrote:again sounds like an ICC issue.
Not sure how. I run on ICC using a mac + xboard + quartz + timestamp with no problems whatsoever...
JoshPettus
Posts: 730
Joined: Fri Oct 19, 2012 2:23 am

Re: More details

Post by JoshPettus »

Perhaps I misinterpreted, I was thinking that ICC handles it's own time stamping of moves, which as Harm explained, we can't change even if it's not working. (I admit I haven't tested it much as I don't have an ICC account except to see if ICC treats it as active, which it does.) But Is his problem that his engine moves are being recorded by xboard rounded to the nearest second and not centi second? Why would that be?
User avatar
sje
Posts: 4675
Joined: Mon Mar 13, 2006 7:43 pm

Re: Minor grief with -xrm option

Post by sje »

matthewlai wrote:I use
-zippyGameEnd "seek 5 0 f\\nseek 2 12 f\\nseek 15 0 f"
That might work. Isn't that the same as:

Code: Select all

-zippyGameEnd "seek 5 0 f\\nseek 2 12 f\\nseek 15 0 f"
matthewlai
Posts: 793
Joined: Sun Aug 03, 2014 4:48 am
Location: London, UK

Re: Minor grief with -xrm option

Post by matthewlai »

sje wrote:
matthewlai wrote:I use
-zippyGameEnd "seek 5 0 f\\nseek 2 12 f\\nseek 15 0 f"
That might work. Isn't that the same as:

Code: Select all

-zippyGameEnd "seek 5 0 f\\nseek 2 12 f\\nseek 15 0 f"
I forgot how I arrived at that line, but it has to do with the shell interpreting quotes vs having xboard interpret them, etc.
Disclosure: I work for DeepMind on the AlphaZero project, but everything I say here is personal opinion and does not reflect the views of DeepMind / Alphabet.
User avatar
sje
Posts: 4675
Joined: Mon Mar 13, 2006 7:43 pm

Minor grief with -noGUI option

Post by sje »

Minor grief with -noGUI option

On Mac OS/X 10.10 Yosemite:

X Windows from Apple, last seen in OS/X 10.7, is not available. There is a third party XQuartz option, although their primary download site has had spotty connectivity recently.

Without X Windows of some kind, MacPorts/xboard should run with the -noGUI option set. But it doesn't; it aborts early with a "Can't open display" diagnostic.
User avatar
sje
Posts: 4675
Joined: Mon Mar 13, 2006 7:43 pm

Re: Minor grief with -xrm option

Post by sje »

matthewlai wrote:
sje wrote:
matthewlai wrote:I use
-zippyGameEnd "seek 5 0 f\\nseek 2 12 f\\nseek 15 0 f"
That might work. Isn't that the same as:

Code: Select all

-zippyGameEnd "seek 5 0 f\\nseek 2 12 f\\nseek 15 0 f"
I forgot how I arrived at that line, but it has to do with the shell interpreting quotes vs having xboard interpret them, etc.
FICS says:

Code: Select all

fics% No such board: f\nseek 2