Page 1 of 2
gogui-twogtp
Posted: Tue Jan 10, 2012 1:01 pm
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?
Re: gogui-twogtp
Posted: Tue Jan 10, 2012 3:05 pm
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
Re: gogui-twogtp
Posted: Wed Jan 11, 2012 4:40 am
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...
Re: gogui-twogtp
Posted: Wed Jan 11, 2012 1:35 pm
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.
Re: gogui-twogtp
Posted: Wed Jan 11, 2012 2:47 pm
by Phelan
Just uninstalled and reinstalled, to be sure.
The latest install only brings a folder with windows executables...
Re: gogui-twogtp
Posted: Wed Jan 11, 2012 11:55 pm
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.htmlI will upgrade and have a look then in the evening whether I can get it to run..
Re: gogui-twogtp
Posted: Fri Jan 13, 2012 6:12 am
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
Re: gogui-twogtp
Posted: Fri Jan 13, 2012 1:34 pm
by Phelan
No graphical display, though.
Re: gogui-twogtp
Posted: Fri Jan 13, 2012 2:23 pm
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?
Re: gogui-twogtp
Posted: Fri Jan 13, 2012 3:16 pm
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?
Re: gogui-twogtp
Posted: Fri Jan 13, 2012 3:46 pm
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).
Re: gogui-twogtp
Posted: Fri Jan 13, 2012 5:19 pm
by Phelan
Strange, that doesn't seem to work for me.

If I try to attach (Anhangen) the twogtp program, I get the result in the images.
Re: gogui-twogtp
Posted: Sat Jan 14, 2012 2:12 am
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?
Re: gogui-twogtp
Posted: Sat Jan 14, 2012 3:46 am
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!

Re: gogui-twogtp
Posted: Sun Jan 15, 2012 11:24 pm
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.