It is currently Thu May 01, 2025 3:47 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2  Next
Author Message
Offline
 Post subject: gogui-twogtp
Post #1 Posted: Tue Jan 10, 2012 1:01 pm 
Gosei
User avatar

Posts: 1449
Liked others: 1562
Was liked: 140
Rank: KGS 6k
GD Posts: 892
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?

_________________
a1h1 [1d]: You just need to curse the gods and defend.
Good Go = Shape.
Associação Portuguesa de Go

Top
 Profile  
 
Offline
 Post subject: Re: gogui-twogtp
Post #2 Posted: Tue Jan 10, 2012 3:05 pm 
Lives in sente
User avatar

Posts: 796
Liked others: 93
Was liked: 105
GD Posts: 600
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

Top
 Profile  
 
Offline
 Post subject: Re: gogui-twogtp
Post #3 Posted: Wed Jan 11, 2012 4:40 am 
Gosei
User avatar

Posts: 1449
Liked others: 1562
Was liked: 140
Rank: KGS 6k
GD Posts: 892
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...

_________________
a1h1 [1d]: You just need to curse the gods and defend.
Good Go = Shape.
Associação Portuguesa de Go

Top
 Profile  
 
Offline
 Post subject: Re: gogui-twogtp
Post #4 Posted: Wed Jan 11, 2012 1:35 pm 
Lives in sente
User avatar

Posts: 796
Liked others: 93
Was liked: 105
GD Posts: 600
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.

Top
 Profile  
 
Offline
 Post subject: Re: gogui-twogtp
Post #5 Posted: Wed Jan 11, 2012 2:47 pm 
Gosei
User avatar

Posts: 1449
Liked others: 1562
Was liked: 140
Rank: KGS 6k
GD Posts: 892
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

Top
 Profile  
 
Offline
 Post subject: Re: gogui-twogtp
Post #6 Posted: Wed Jan 11, 2012 11:55 pm 
Lives in sente
User avatar

Posts: 796
Liked others: 93
Was liked: 105
GD Posts: 600
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..

Top
 Profile  
 
Offline
 Post subject: Re: gogui-twogtp
Post #7 Posted: Fri Jan 13, 2012 6:12 am 
Lives in sente
User avatar

Posts: 796
Liked others: 93
Was liked: 105
GD Posts: 600
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

Top
 Profile  
 
Offline
 Post subject: Re: gogui-twogtp
Post #8 Posted: Fri Jan 13, 2012 1:34 pm 
Gosei
User avatar

Posts: 1449
Liked others: 1562
Was liked: 140
Rank: KGS 6k
GD Posts: 892
No graphical display, though.

_________________
a1h1 [1d]: You just need to curse the gods and defend.
Good Go = Shape.
Associação Portuguesa de Go

Top
 Profile  
 
Offline
 Post subject: Re: gogui-twogtp
Post #9 Posted: Fri Jan 13, 2012 2:23 pm 
Lives in sente
User avatar

Posts: 796
Liked others: 93
Was liked: 105
GD Posts: 600
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?

Top
 Profile  
 
Offline
 Post subject: Re: gogui-twogtp
Post #10 Posted: Fri Jan 13, 2012 3:16 pm 
Gosei
User avatar

Posts: 1449
Liked others: 1562
Was liked: 140
Rank: KGS 6k
GD Posts: 892
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

Top
 Profile  
 
Offline
 Post subject: Re: gogui-twogtp
Post #11 Posted: Fri Jan 13, 2012 3:46 pm 
Lives in sente
User avatar

Posts: 796
Liked others: 93
Was liked: 105
GD Posts: 600
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 583 times
Top
 Profile  
 
Offline
 Post subject: Re: gogui-twogtp
Post #12 Posted: Fri Jan 13, 2012 5:19 pm 
Gosei
User avatar

Posts: 1449
Liked others: 1562
Was liked: 140
Rank: KGS 6k
GD Posts: 892
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 466 times

_________________
a1h1 [1d]: You just need to curse the gods and defend.
Good Go = Shape.
Associação Portuguesa de Go
Top
 Profile  
 
Offline
 Post subject: Re: gogui-twogtp
Post #13 Posted: Sat Jan 14, 2012 2:12 am 
Lives in sente
User avatar

Posts: 796
Liked others: 93
Was liked: 105
GD Posts: 600
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?

Top
 Profile  
 
Offline
 Post subject: Re: gogui-twogtp
Post #14 Posted: Sat Jan 14, 2012 3:46 am 
Gosei
User avatar

Posts: 1449
Liked others: 1562
Was liked: 140
Rank: KGS 6k
GD Posts: 892
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

Top
 Profile  
 
Offline
 Post subject: Re: gogui-twogtp
Post #15 Posted: Sun Jan 15, 2012 11:24 pm 
Gosei
User avatar

Posts: 1449
Liked others: 1562
Was liked: 140
Rank: KGS 6k
GD Posts: 892
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

Top
 Profile  
 
Offline
 Post subject: Re: gogui-twogtp
Post #16 Posted: Mon Jan 16, 2012 10:46 am 
Lives in sente
User avatar

Posts: 796
Liked others: 93
Was liked: 105
GD Posts: 600
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 :D But I am already collecting tons of ideas.

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.

Top
 Profile  
 
Offline
 Post subject: Re: gogui-twogtp
Post #17 Posted: Mon Jan 16, 2012 2:08 pm 
Lives with ko

Posts: 170
Liked others: 32
Was liked: 119
Rank: KGS 4 kyu
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

Top
 Profile  
 
Offline
 Post subject: Re: gogui-twogtp
Post #18 Posted: Mon Jan 16, 2012 5:52 pm 
Gosei
User avatar

Posts: 1449
Liked others: 1562
Was liked: 140
Rank: KGS 6k
GD Posts: 892
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.

_________________
a1h1 [1d]: You just need to curse the gods and defend.
Good Go = Shape.
Associação Portuguesa de Go

Top
 Profile  
 
Offline
 Post subject: Re: gogui-twogtp
Post #19 Posted: Tue Jan 17, 2012 1:47 am 
Lives with ko

Posts: 170
Liked others: 32
Was liked: 119
Rank: KGS 4 kyu
I recommend the computer-go mailing list for such questions. All the programmers are there.

Top
 Profile  
 
Offline
 Post subject: Re: gogui-twogtp
Post #20 Posted: Tue Jan 17, 2012 5:32 am 
Gosei
User avatar

Posts: 1449
Liked others: 1562
Was liked: 140
Rank: KGS 6k
GD Posts: 892
Just signed up, thanks. :)

_________________
a1h1 [1d]: You just need to curse the gods and defend.
Good Go = Shape.
Associação Portuguesa de Go

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2  Next

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group