gogui-twogtp

For discussing go computing, software announcements, etc.
User avatar
Phelan
Gosei
Posts: 1449
Joined: Tue Apr 20, 2010 3:15 pm
Rank: KGS 6k
GD Posts: 892
Has thanked: 1550 times
Been thanked: 140 times

gogui-twogtp

Post by Phelan »

I've been delving into computer go lately, and was trying to get the twogtp command that comes with GoGui to work, with only partial success.
I've managed to get fuego and gnugo playing on the text interface with the following command:

Code: Select all

gogui-twogtp -black "..\Go Engines\gnugo-3.8\gnugo.exe --mode gtp
" -white "..\Go Engines\fuego-svn1157-modbook\fuego.exe" -verbose -auto


But I haven't been able to get the graphical display to work. What am I missing?
a1h1 [1d]: You just need to curse the gods and defend.
Good Go = Shape.
Associação Portuguesa de Go
User avatar
karaklis
Lives in sente
Posts: 797
Joined: Tue Apr 20, 2010 2:14 pm
GD Posts: 600
Has thanked: 93 times
Been thanked: 105 times

Re: gogui-twogtp

Post by karaklis »

I use the following settings to run GnuGo vs. Fuego:

Code: Select all

Label: GnuGo-Fuego

Command: C:\Windows\System32\java.exe -jar gogui-twogtp.jar -black "C:\pgm\go\gnugo\gnugo38\gnugo.exe --mode gtp" -white "C:\pgm\go\Fuego\fuego041\fuego.exe"

Working Directory: C:\go\gogui-1.2.2\lib
User avatar
Phelan
Gosei
Posts: 1449
Joined: Tue Apr 20, 2010 3:15 pm
Rank: KGS 6k
GD Posts: 892
Has thanked: 1550 times
Been thanked: 140 times

Re: gogui-twogtp

Post by Phelan »

My version does not include the jar files.

However, what I want to do, is to have fuego play gnugo and show it to me graphically.
If I do:

Code: Select all

gogui -computer-both -program "..\Go Engines\fuego-svn1157-modbook\fuego.exe" -verbose -auto
GoGui shows me the game between two instances of fuego.
What I want it to do is this, only with two different programs. Googling seems to show that it used to work, by calling something like:

Code: Select all

gogui -program "gogui-twogtp -black \"..\Go Engines\gnugo-3.8\gnugo.exe --mode gtp\" -white \"..\Go Engines\gnugo-3.8\gnugo.exe --mode gtp\" -verbose -auto"
But this no longer seems to work...
a1h1 [1d]: You just need to curse the gods and defend.
Good Go = Shape.
Associação Portuguesa de Go
User avatar
karaklis
Lives in sente
Posts: 797
Joined: Tue Apr 20, 2010 2:14 pm
GD Posts: 600
Has thanked: 93 times
Been thanked: 105 times

Re: gogui-twogtp

Post by karaklis »

Actually the jar files are provided with GoGui. It's not in the bin folder, but in the lib folder. If you still have no jar file, you are probably supposed to update you gui.
User avatar
Phelan
Gosei
Posts: 1449
Joined: Tue Apr 20, 2010 3:15 pm
Rank: KGS 6k
GD Posts: 892
Has thanked: 1550 times
Been thanked: 140 times

Re: gogui-twogtp

Post by Phelan »

Just uninstalled and reinstalled, to be sure.
The latest install only brings a folder with windows executables...
a1h1 [1d]: You just need to curse the gods and defend.
Good Go = Shape.
Associação Portuguesa de Go
User avatar
karaklis
Lives in sente
Posts: 797
Joined: Tue Apr 20, 2010 2:14 pm
GD Posts: 600
Has thanked: 93 times
Been thanked: 105 times

Re: gogui-twogtp

Post by karaklis »

You're right. According to the release note the jar files have been replaced by exe files in version 1.3:

http://gogui.sourceforge.net/doc/news.html

I will upgrade and have a look then in the evening whether I can get it to run..
User avatar
karaklis
Lives in sente
Posts: 797
Joined: Tue Apr 20, 2010 2:14 pm
GD Posts: 600
Has thanked: 93 times
Been thanked: 105 times

Re: gogui-twogtp

Post by karaklis »

The new version works straightaway:

Code: Select all

Label: GnuGo-Fuego new

Command: gogui-twogtp.exe -black "C:\pgm\go\gnugo\gnugo38\gnugo.exe --mode gtp" -white "C:\pgm\go\Fuego\fuego041\fuego.exe"

Working Directory: C:\Progra~1\GoGui142
User avatar
Phelan
Gosei
Posts: 1449
Joined: Tue Apr 20, 2010 3:15 pm
Rank: KGS 6k
GD Posts: 892
Has thanked: 1550 times
Been thanked: 140 times

Re: gogui-twogtp

Post by Phelan »

No graphical display, though.
a1h1 [1d]: You just need to curse the gods and defend.
Good Go = Shape.
Associação Portuguesa de Go
User avatar
karaklis
Lives in sente
Posts: 797
Joined: Tue Apr 20, 2010 2:14 pm
GD Posts: 600
Has thanked: 93 times
Been thanked: 105 times

Re: gogui-twogtp

Post by karaklis »

Strange. I have no problems with graphical display.

What is your "working directory"? Are there spaces in the path?
Do I see it right that you start GoGui from a command line?
User avatar
Phelan
Gosei
Posts: 1449
Joined: Tue Apr 20, 2010 3:15 pm
Rank: KGS 6k
GD Posts: 892
Has thanked: 1550 times
Been thanked: 140 times

Re: gogui-twogtp

Post by Phelan »

My working directory is "C:\jogos\GoGui".
The command as you give it doesn't work for me, I only get a command line prompt.
I also need the "-auto" option to get them to start playing.
If I add the option "-verbose" I can see some text output.

I have no idea what I am doing wrong, and why the GUI in gogui won't display while using gogui-twogtp.exe.

Could you take a screenshot of what you see after running the command?
a1h1 [1d]: You just need to curse the gods and defend.
Good Go = Shape.
Associação Portuguesa de Go
User avatar
karaklis
Lives in sente
Posts: 797
Joined: Tue Apr 20, 2010 2:14 pm
GD Posts: 600
Has thanked: 93 times
Been thanked: 105 times

Re: gogui-twogtp

Post by karaklis »

I have made a few screenshots that show what I did to get it running.

Unfortunately the gui shows up in German and it cannot be changed (the old version was available in English).
Attachments
gogui_screenshots.zip
(557.05 KiB) Downloaded 612 times
User avatar
Phelan
Gosei
Posts: 1449
Joined: Tue Apr 20, 2010 3:15 pm
Rank: KGS 6k
GD Posts: 892
Has thanked: 1550 times
Been thanked: 140 times

Re: gogui-twogtp

Post by Phelan »

Strange, that doesn't seem to work for me. :scratch: If I try to attach (Anhangen) the twogtp program, I get the result in the images.
Attachments
error.zip
(271.93 KiB) Downloaded 496 times
a1h1 [1d]: You just need to curse the gods and defend.
Good Go = Shape.
Associação Portuguesa de Go
User avatar
karaklis
Lives in sente
Posts: 797
Joined: Tue Apr 20, 2010 2:14 pm
GD Posts: 600
Has thanked: 93 times
Been thanked: 105 times

Re: gogui-twogtp

Post by karaklis »

This could also be a problem with one of the engines. I remember that I had problems with Fuego in some very old version. Have you tried to run GnuGo vs. GnuGo via twogtp?
User avatar
Phelan
Gosei
Posts: 1449
Joined: Tue Apr 20, 2010 3:15 pm
Rank: KGS 6k
GD Posts: 892
Has thanked: 1550 times
Been thanked: 140 times

Re: gogui-twogtp

Post by Phelan »

Nope, I've found the problem. I was using the options "-auto" and "-verbose". Either of these options on twogtp makes it not respond correctly to commands. Thanks for the help! :)
a1h1 [1d]: You just need to curse the gods and defend.
Good Go = Shape.
Associação Portuguesa de Go
User avatar
Phelan
Gosei
Posts: 1449
Joined: Tue Apr 20, 2010 3:15 pm
Rank: KGS 6k
GD Posts: 892
Has thanked: 1550 times
Been thanked: 140 times

Re: gogui-twogtp

Post by Phelan »

I've been working on a new gobot, but am now having trouble getting it to interface with twogtp. When I run my bot from the commandline, it seems to accept all necessary gtp input and respond appropriately, but when I call it through twogtp, the bot doesn't respond at all, even to the 'protocol_version' command...

If anyone is interested in helping me find out what's wrong, let me know, and I'll give you access to the source.
a1h1 [1d]: You just need to curse the gods and defend.
Good Go = Shape.
Associação Portuguesa de Go
Post Reply