InBetween for Linux

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

Moderators: hgm, Rebel, chrisw

User avatar
michiguel
Posts: 6401
Joined: Thu Mar 09, 2006 8:30 pm
Location: Chicago, Illinois, USA

InBetween for Linux

Post by michiguel »

Is there anywhere such a tool?

Miguel
mhalstern
Posts: 484
Joined: Wed Nov 18, 2009 1:09 am

Re: InBetween for Linux

Post by mhalstern »

michiguel wrote:Is there anywhere such a tool?

Miguel
Please describe in more detail exactly what you are looking for.
Dann Corbit
Posts: 12540
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: InBetween for Linux

Post by Dann Corbit »

mhalstern wrote:
michiguel wrote:Is there anywhere such a tool?

Miguel
Please describe in more detail exactly what you are looking for.
InBetween is an API capture tool to collect the conversation between a chess engine and the GUI.
User avatar
hgm
Posts: 27790
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: InBetween for Linux

Post by hgm »

Not so much collect, as well perform substitutions in it, based on a config file that lists which words in the communication should be substituted by which others.

It is mainy used to solve problems with non-compliant engines, by putting it between GUI and engine.
User avatar
michiguel
Posts: 6401
Joined: Thu Mar 09, 2006 8:30 pm
Location: Chicago, Illinois, USA

Re: InBetween for Linux

Post by michiguel »

hgm wrote:Not so much collect, as well perform substitutions in it, based on a config file that lists which words in the communication should be substituted by which others.

It is mainy used to solve problems with non-compliant engines, by putting it between GUI and engine.
Actually both are right. According to the documentation it can log the communication between the the GUI and the engine if it is desired. In fact, I may like to use it for that purpose. I need it in Windows to track problems between Gaviota and GUIs like aquarium and chessmaster that were reported not to work, but I like to use tools that are available also in Linux.

Miguel
User avatar
hgm
Posts: 27790
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: InBetween for Linux

Post by hgm »

Using a two-way tee could serve that purpose, not? Run

tee gui2engine | engine | tee engine2gui

in stead of the bare engine. Or does that give problems with buffering?

One off-topic question: during CCT you mentioned the benign XBoard bug, of the error diaog not reacting to the OK button. Are you sure that this was not because there is _another_ error dialog behind it, which has somehow grabbed the mouse? When this happens again, could you just move away the non-responding dialog window, rather than closig it, to see if there is anything behind it?
User avatar
michiguel
Posts: 6401
Joined: Thu Mar 09, 2006 8:30 pm
Location: Chicago, Illinois, USA

Re: InBetween for Linux

Post by michiguel »

hgm wrote:Using a two-way tee could serve that purpose, not? Run

tee gui2engine | engine | tee engine2gui

in stead of the bare engine. Or does that give problems with buffering?
I will take a look. Otherwise, in the future I may hack you micromax2wb adapter that seems to me simple to modify.

One off-topic question: during CCT you mentioned the benign XBoard bug, of the error diaog not reacting to the OK button. Are you sure that this was not because there is _another_ error dialog behind it, which has somehow grabbed the mouse? When this happens again, could you just move away the non-responding dialog window, rather than closig it, to see if there is anything behind it?
I just tried and the problem remains even after moving the dialog.

Miguel
User avatar
Roland Chastain
Posts: 640
Joined: Sat Jun 08, 2013 10:07 am
Location: France
Full name: Roland Chastain

Re: InBetween for Linux

Post by Roland Chastain »

hgm wrote: Sat Feb 27, 2010 1:43 pm Using a two-way tee could serve that purpose, not? Run

tee gui2engine | engine | tee engine2gui

in stead of the bare engine. Or does that give problems with buffering?
Hello! Sorry to restart an old discussion, but I tried that trick and it works!

I created a file named spy with this content,

Code: Select all

tee gui2engine.txt | ./cheng4_linux_x64 | tee engine2gui.txt
made the file executable, and loaded it in XBoard, and I could play a game. It's a very nice trick.

Best regards.

Roland
Qui trop embrasse mal étreint.