Life In 19x19 http://prod.lifein19x19.com/ |
|
gogui-twogtp http://prod.lifein19x19.com/viewtopic.php?f=18&t=5325 |
Page 1 of 2 |
Author: | Phelan [ Tue Jan 10, 2012 1:01 pm ] |
Post subject: | gogui-twogtp |
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: 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? |
Author: | karaklis [ Tue Jan 10, 2012 3:05 pm ] |
Post subject: | Re: gogui-twogtp |
I use the following settings to run GnuGo vs. Fuego: Code: 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 |
Author: | Phelan [ Wed Jan 11, 2012 4:40 am ] |
Post subject: | Re: gogui-twogtp |
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: 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: 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...
|
Author: | karaklis [ Wed Jan 11, 2012 1:35 pm ] |
Post subject: | Re: gogui-twogtp |
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. |
Author: | Phelan [ Wed Jan 11, 2012 2:47 pm ] |
Post subject: | Re: gogui-twogtp |
Just uninstalled and reinstalled, to be sure. The latest install only brings a folder with windows executables... |
Author: | karaklis [ Wed Jan 11, 2012 11:55 pm ] |
Post subject: | Re: gogui-twogtp |
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.. |
Author: | karaklis [ Fri Jan 13, 2012 6:12 am ] |
Post subject: | Re: gogui-twogtp |
The new version works straightaway: Code: 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 |
Author: | Phelan [ Fri Jan 13, 2012 1:34 pm ] |
Post subject: | Re: gogui-twogtp |
No graphical display, though. |
Author: | karaklis [ Fri Jan 13, 2012 2:23 pm ] |
Post subject: | Re: gogui-twogtp |
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? |
Author: | Phelan [ Fri Jan 13, 2012 3:16 pm ] |
Post subject: | Re: gogui-twogtp |
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? |
Author: | karaklis [ Fri Jan 13, 2012 3:46 pm ] | ||
Post subject: | Re: gogui-twogtp | ||
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).
|
Author: | Phelan [ Fri Jan 13, 2012 5:19 pm ] | ||
Post subject: | Re: gogui-twogtp | ||
Strange, that doesn't seem to work for me. ![]()
|
Author: | karaklis [ Sat Jan 14, 2012 2:12 am ] |
Post subject: | Re: gogui-twogtp |
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? |
Author: | Phelan [ Sat Jan 14, 2012 3:46 am ] |
Post subject: | Re: gogui-twogtp |
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! ![]() |
Author: | Phelan [ Sun Jan 15, 2012 11:24 pm ] |
Post subject: | Re: gogui-twogtp |
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. |
Author: | karaklis [ Mon Jan 16, 2012 10:46 am ] |
Post subject: | Re: gogui-twogtp |
A question that I am interested in as well. I am considerung to make an engine as well, but not before EGC 2012 as I am still focused on improving my own play until then ![]() Few questions regarding your question. What programming language do you use? Is it something C like? I used to do some programming with chess engines some 14 years ago (using winboard protocol, without much success though) and remember that it used anonymous pipes. Does your bot work with GoGui - not via twogtp but directly? Another GUI that supports GTP is Drago. Could be an option to check whether the bot works with that. |
Author: | Rémi [ Mon Jan 16, 2012 2:08 pm ] |
Post subject: | Re: gogui-twogtp |
Phelan wrote: 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. make sure your i/o is unbuffered: http://home.hccnet.nl/h.g.muller/engine-intf.html#6 and don't forget the extra new-line needed by the gtp protocol. Rémi |
Author: | Phelan [ Mon Jan 16, 2012 5:52 pm ] |
Post subject: | Re: gogui-twogtp |
Thanks Rémi, it was exactly those two things I had to change to make it work. ![]() karaklis, it's written entirely in ANSI C, I think. I'm planning on putting the code up tomorrow. Don't expect nothing groundbreaking, it was mostly just a way to learn how GTP works. My next objective is to get it on CGOS, and maybe KGS. |
Author: | Rémi [ Tue Jan 17, 2012 1:47 am ] |
Post subject: | Re: gogui-twogtp |
I recommend the computer-go mailing list for such questions. All the programmers are there. |
Author: | Phelan [ Tue Jan 17, 2012 5:32 am ] |
Post subject: | Re: gogui-twogtp |
Just signed up, thanks. ![]() |
Page 1 of 2 | All times are UTC - 8 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |