Re: [computer-go] Connecting a gtp engine to CGOS 19
On Sun, 2007-11-04 at 11:26 +, Jacques Basaldúa wrote: > Solved! > > It is working now. The problem was the tcl script does not > pass all remaining parameters to the called application > (gnugo in the example). To solve this, the command line > should be delimited with a quote " char. This is a pretty common trick. I use it all the time with GoGUI too. ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] Connecting a gtp engine to CGOS 19
I can either link this from the main CGOS web page or build it into the web page. There are temporary instructions now but they are based on the previous location for the 19x19 server and are no longer relevant. These instructions are oriented to windows machines, so I would specify so if I link them. Also, the cgosview instructions are wrong now.You cannot call it the way you specified if you are using the latest one. Call it with these args: cgosview.exe -server cgos.lri.fr -port 6919 You don't need to specify the arguments for the 19x19 server, that is the default so for 19x19 you can just say cgosview.exe If you fix that up and send a message to the group, I will link this post in.You might give it a subject: Connecting a gtp engine to CGOS 19x19 using Windows OS (or something similar) - Don Jacques Basaldúa wrote: > Solved! > > It is working now. The problem was the tcl script does not > pass all remaining parameters to the called application > (gnugo in the example). To solve this, the command line > should be delimited with a quote " char. > > tcl cgos3.tcl testingTCL password "E:\\GO\\PROGRAMS\\GnuGo\\gnugo37 > --mode gtp --chinese-rules --capture-all-dead" > > instead of: > > tcl cgos3.tcl testingTCL password E:\\GO\\PROGRAMS\\GnuGo\\gnugo37 > --mode gtp --chinese-rules --capture-all-dead > > > I repeat the corrected post: > > > > 1. Get TCL. There are many "flavors" with GUI, debugger etc. > The simplest, when you just need to run a Tk application > is something like: > > http://www.equi4.com/pub/tk/tclkit-win32.upx.exe > > This .exe is all you need, about 1M and without any annoyances, > installation, registry etc. > > For simplicity: Rename tclkit-win32.upx.exe as tcl.exe > > > 2. Get the .tcl client from CGOS. > > http://cgos.boardspace.net/public/cgos3.zip > > > 3. Modify the .tcl script to use the 19x19 server > ># ... set server cgos.boardspace.net >set server cgos.lri.fr > ># ... set port 6867 >set port 6919 > >No other modification is necessary. > > > 4. Create an account in CGOS. I remember having read that when you > use one for the first time, any name and password are valid > and then, you have to use the same password to continue using it. > > So, for testing purposes, I use the account: > > name: testingTCL > pass: password > > > 5. Using gnugo for the sake of simplicity (just for the test), > > gnugo37 --mode gtp --chinese-rules --capture-all-dead > > should be a valid setting to play on CGOS. > > Remember that you will loose lots of won games if your > program does not capture all the opponent's dead stones. > > Chinese rules is mandatory as well. > > > 6. Create a .bat file with: > > tcl cgos3.tcl "testingTCL password E:\\GO\\PROGRAMS\\GnuGo\\gnugo37 > --mode gtp --chinese-rules --capture-all-dead" > > > 7. Run the .bat file wait for the next round. Your program should be >playing. > > 8. To supervise your program: > >Download cgosview.exe from > >http://cgos.boardspace.net/public/cgosview-windows.zip > >Call it with these args: cgosview.exe cgos.lri.fr 6919 > > > Jacques. > > ___ > computer-go mailing list > computer-go@computer-go.org > http://www.computer-go.org/mailman/listinfo/computer-go/ > ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] Connecting a gtp engine to CGOS 19
Solved! It is working now. The problem was the tcl script does not pass all remaining parameters to the called application (gnugo in the example). To solve this, the command line should be delimited with a quote " char. tcl cgos3.tcl testingTCL password "E:\\GO\\PROGRAMS\\GnuGo\\gnugo37 --mode gtp --chinese-rules --capture-all-dead" instead of: tcl cgos3.tcl testingTCL password E:\\GO\\PROGRAMS\\GnuGo\\gnugo37 --mode gtp --chinese-rules --capture-all-dead I repeat the corrected post: 1. Get TCL. There are many "flavors" with GUI, debugger etc. The simplest, when you just need to run a Tk application is something like: http://www.equi4.com/pub/tk/tclkit-win32.upx.exe This .exe is all you need, about 1M and without any annoyances, installation, registry etc. For simplicity: Rename tclkit-win32.upx.exe as tcl.exe 2. Get the .tcl client from CGOS. http://cgos.boardspace.net/public/cgos3.zip 3. Modify the .tcl script to use the 19x19 server # ... set server cgos.boardspace.net set server cgos.lri.fr # ... set port 6867 set port 6919 No other modification is necessary. 4. Create an account in CGOS. I remember having read that when you use one for the first time, any name and password are valid and then, you have to use the same password to continue using it. So, for testing purposes, I use the account: name: testingTCL pass: password 5. Using gnugo for the sake of simplicity (just for the test), gnugo37 --mode gtp --chinese-rules --capture-all-dead should be a valid setting to play on CGOS. Remember that you will loose lots of won games if your program does not capture all the opponent's dead stones. Chinese rules is mandatory as well. 6. Create a .bat file with: tcl cgos3.tcl "testingTCL password E:\\GO\\PROGRAMS\\GnuGo\\gnugo37 --mode gtp --chinese-rules --capture-all-dead" 7. Run the .bat file wait for the next round. Your program should be playing. 8. To supervise your program: Download cgosview.exe from http://cgos.boardspace.net/public/cgosview-windows.zip Call it with these args: cgosview.exe cgos.lri.fr 6919 Jacques. ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
[computer-go] Connecting a gtp engine to CGOS 19
I am trying to make a description of all steps required. But it still doesn't work. So please, say what am I doing wrong. 1. Get TCL. There are many "flavors" with GUI, debugger etc. The simplest, when you just need to run a Tk application is something like: http://www.equi4.com/pub/tk/tclkit-win32.upx.exe This .exe is all you need, about 1M and without any annoyances, installation, registry etc. For the following, I rename it as tcl. 2. Get the .tcl client from CGOS. http://cgos.boardspace.net/public/cgos3.zip 3. Modify the .tcl script to use the 19x19 server # ... set server cgos.boardspace.net set server cgos.lri.fr # ... set port 6867 set port 6919 Use # to change the original lines into remarks and add new lines. AFAIK no other modification is necessary. Please, confirm. 4. Create an account in CGOS. I remember having read that when you use one for the first time, any name and password are valid and then, you have to use the same password to continue using it. Now I can't find where I read that. Please, confirm. So, for testing purposes, I use the account: name: testingTCL pass: password 5. Using gnugo for the sake of simplicity (just for the test), gnugo37 --mode gtp --chinese-rules --capture-all-dead should be a valid setting to play on CGOS. 6. I create a .bat file with: tcl cgos3.tcl testingTCL password E:\\GO\\PROGRAMS\\GnuGo\\gnugo37 --mode gtp --chinese-rules --capture-all-dead 7. I run the .bat file and that launches both tcl.exe and gnugo37.exe I don't get any info from neither. I can't see my program when I use: E:\TEMP\cgosview.exe cgos.lri.fr 6919 to see what is happening on the server. I have waited for many rounds to finish, but my program never plays if it is connected at all, something I don't know. 8. Shouldn't there be log files somewhere? Where? I don't mean .log files with gtp info. I can do that myself. I mean log files giving some info about the communication and the state of the server. Jacques. ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/