2012-12-21T00:14:20 *** crimbox has quit IRC (Quit: Leaving.) 2012-12-21T00:59:27 *** crimbox has joined #aichallenge 2012-12-21T01:30:09 *** Garf has joined #aichallenge 2012-12-21T01:31:33 *** mceier has quit IRC (Quit: leaving) 2012-12-21T01:37:45 smiley1983 is it possible to run a bot on python3? 2012-12-21T01:38:03 im trying to get it working on a windows machine with python3 2012-12-21T01:38:59 *** sevikkk has quit IRC (Ping timeout: 255 seconds) 2012-12-21T01:41:59 *** antimatroid has joined #aichallenge 2012-12-21T01:48:16 *** smiley1983 has quit IRC (Ping timeout: 265 seconds) 2012-12-21T01:48:51 *** smiley1983 has joined #aichallenge 2012-12-21T01:57:59 *** Garf has quit IRC (Quit: Make a new plan, Stan!) 2012-12-21T02:18:53 *** Wren80[work] has joined #aichallenge 2012-12-21T02:19:24 *** pairofdice has joined #aichallenge 2012-12-21T02:33:23 *** ermau_ has quit IRC (Changing host) 2012-12-21T02:33:23 *** ermau_ has joined #aichallenge 2012-12-21T02:33:25 *** ermau has quit IRC (Disconnected by services) 2012-12-21T02:33:28 *** ermau_ is now known as ermau 2012-12-21T02:53:10 crimbox: I have found the py3 version of tcpclient and added it to the planetwars_tcp dir: http://tinyurl.com/ca83ah7 2012-12-21T02:55:21 smiley1983 awesome thanks! 2012-12-21T02:56:07 *** mceier has joined #aichallenge 2012-12-21T02:56:12 you're welcome :) 2012-12-21T02:59:38 smiley1983, do all the starter kits need to be modified? 2012-12-21T02:59:46 im trying to get the java one working 2012-12-21T03:02:05 it's possible to make the change in tcpclient instead, see this post: http://forums.aichallenge.org/viewtopic.php?f=3&t=3641#p16399 2012-12-21T03:02:41 and the post before, for info on modifying the starters 2012-12-21T03:04:03 but if you make the change in tcpclient, it only needs to be done once and can then be used with all the old bots 2012-12-21T03:04:32 *** kilae has joined #aichallenge 2012-12-21T03:09:50 of course, if you want to write a bot using the starter, then it's probably best to update it to use the new format 2012-12-21T03:18:13 smiley1983 is your server down? 2012-12-21T03:34:53 crimbox: rebooting, some of the webservers were down though games were still running 2012-12-21T03:35:21 smiley1983, im really having trouble getting the bot to do something 2012-12-21T03:36:07 how do i debug? 2012-12-21T03:37:25 first, use the copy in pw_dist for local testing 2012-12-21T03:37:48 Some of the options you can give to playgame.py relate to what info it writes to game_logs 2012-12-21T03:38:28 you can get it to write each bot's stdin, stdout and stderr streams, and then log info to stderr within the bot code 2012-12-21T03:39:03 I' 2012-12-21T03:39:24 what language did you write your bot in? 2012-12-21T03:39:37 ve never done any debugging of error streams from tcp games, but I think you can just capture everything from stdout 2012-12-21T03:39:42 ocaml 2012-12-21T03:39:56 for bot planetwars and ants 2012-12-21T03:40:01 bot -> both 2012-12-21T03:40:37 all of the starterkits are java bots 2012-12-21T03:41:08 i cant remember where i found the python kit 2012-12-21T03:42:54 Those java bots, Ragebot and so on, will be the sample opponents; the python starter is here: https://github.com/smiley1983/ants-tcp/tree/master/planetwars/pw-dist/planetwars/dist/starter_bots 2012-12-21T03:43:20 I don't know why there are two python directories there, or which one is correct 2012-12-21T03:44:59 Also, if you checkout the original pw code from here, you can get some more starters from planet_wars/starter_packages : http://code.google.com/p/ai-contest/source/checkout 2012-12-21T03:47:11 *** Accoun has quit IRC (*.net *.split) 2012-12-21T03:49:18 *** Accoun has joined #aichallenge 2012-12-21T03:52:38 actually, I think c# might be the only one not included elsewhere 2012-12-21T03:52:56 Most of the others were linked through the forums, some of the links may still work, many don't 2012-12-21T03:54:50 for some reason the games are lasting longer than 200 turns 2012-12-21T03:54:55 i just got one going for 1000 2012-12-21T03:57:02 ok i see 2012-12-21T04:04:00 *** janzert1 has quit IRC (Ping timeout: 252 seconds) 2012-12-21T04:06:36 *** epicmonkey has joined #aichallenge 2012-12-21T04:30:36 smiley1983: whats wrong with this code: http://pastebin.com/3GhJ6QTf 2012-12-21T04:30:50 the bot doesnt act. it just sits there 2012-12-21T04:31:10 there has to be something else in another file thats wrong 2012-12-21T04:42:44 from game_logs/0.bot1.error: turn 1 bot 1 invalid actions: 0 4 1 # source planet does not belongs to you 2012-12-21T04:52:05 i cant get this thing working...... 2012-12-21T04:52:14 im just using the starter kit! http://pastebin.com/0FZVKCUL 2012-12-21T04:52:31 i changed the current_line thing as well 2012-12-21T04:53:04 if it can just shoot one ship i can go from there 2012-12-21T04:54:50 The code you just posted works when I run it, sending ships 2012-12-21T04:54:55 what command are you using to test it? 2012-12-21T04:55:20 python tcpclient.py 106.187.44.50 2091 "python MyBot.py" tinny bbbbbb -1 2012-12-21T04:55:45 the bots just site there and do nothing: http://106.187.44.50:2090/replay.166 2012-12-21T04:56:30 i also added: if line.startswith("ready"): 2012-12-21T04:56:31 line = "go" 2012-12-21T04:56:43 to tcpclient.py on line 97, as you said in the forum 2012-12-21T04:57:41 I just ran a game successfully, so the server is working: http://106.187.44.50:2090/replay.170 2012-12-21T04:57:57 *** ermau has quit IRC (Remote host closed the connection) 2012-12-21T04:58:10 then where would the problem lie? 2012-12-21T04:58:27 first, I suggest testing your bot locally to make sure the environment is right 2012-12-21T04:59:01 to do this, go to the pw_dist directory (in the same parent directory as planetwars_tcp) 2012-12-21T04:59:18 copy the play_one_game.sh to test.sh 2012-12-21T04:59:29 (are you on linux or windows? you 2012-12-21T04:59:46 mac 2012-12-21T05:00:04 okay, so I think the .sh files might work correctly 2012-12-21T05:00:32 then edit test.sh so it specifies your bot as well as the one it currently has 2012-12-21T05:01:04 (if only one bot is specified, it uses the same command for both) 2012-12-21T05:01:37 then, running test.sh should run a game and load the replay in a browser 2012-12-21T05:02:05 or it will spit out some errors if something is wrong 2012-12-21T05:06:06 env: python2: No such file or directory 2012-12-21T05:07:49 okay, first thing is to change "python2" to "python" in the bot-running commands 2012-12-21T05:08:40 in test.sh, that is 2012-12-21T05:08:50 yep same error 2012-12-21T05:09:52 hm... there are definitely no more instances of "python2" in the script, and it still complains that there's no python2? 2012-12-21T05:10:34 ok i went through all the files in pw-dist and changed python2 to python 2012-12-21T05:10:50 same result? 2012-12-21T05:11:03 Traceback (most recent call last): 2012-12-21T05:11:04 File "./playgame.py", line 16, in 2012-12-21T05:11:04 import visualizer.visualize_locally 2012-12-21T05:11:04 ImportError: No module named visualizer.visualize_locally 2012-12-21T05:12:50 *** ermau has joined #aichallenge 2012-12-21T05:13:35 that's... strange... assuming that the "visualizer" directory exists and it contains "visualize_locally.py", I don't know what to suggest except possibly removing references to it from playgame.py. However, before doing something so drastic, there's something else to try: 2012-12-21T05:14:01 I tried running a game against the server and catching its output, and you can at least see what commands you're sending: 2012-12-21T05:14:53 if you have a script called tcp_game.sh, you can catch the output: 2012-12-21T05:15:06 ./tcpgame.sh > tcp.log 2012-12-21T05:15:33 then edit tcp.log, and the lines between the two "go" lines on each turn will be your bot's output 2012-12-21T05:16:16 if you want to paste such a log somewhere, I'll have a look through it 2012-12-21T05:16:37 *** yschaeff has joined #aichallenge 2012-12-21T05:17:02 getting this to work is more complicated than setting up the server... 2012-12-21T05:18:07 *** yschaeff has left #aichallenge 2012-12-21T05:18:16 seems so, in this case 2012-12-21T05:19:26 *** Cyndre has quit IRC (Quit: Leaving) 2012-12-21T05:23:39 ah, and you can catch your bot's error log like so: ./test.sh > stream.log 2> error.log 2012-12-21T05:24:40 or rather, ./tcpgame.sh > stream.log 2> error.log 2012-12-21T05:27:59 *** epicmonkey has quit IRC (Ping timeout: 248 seconds) 2012-12-21T05:29:18 SCREW IT IM GOING HOME 2012-12-21T05:29:21 *** crimbox has quit IRC (Quit: Leaving.) 2012-12-21T05:37:34 *** awly has joined #aichallenge 2012-12-21T05:39:51 *** ikaros has joined #aichallenge 2012-12-21T06:35:12 *** epicmonkey has joined #aichallenge 2012-12-21T06:49:48 *** antimatroid has quit IRC (Ping timeout: 245 seconds) 2012-12-21T07:18:03 *** heyandy has joined #aichallenge 2012-12-21T08:24:09 *** Eibwen has quit IRC (Read error: Connection reset by peer) 2012-12-21T08:24:36 *** Eibwen has joined #aichallenge 2012-12-21T10:02:38 *** Scooper has joined #aichallenge 2012-12-21T10:23:48 *** NoxiaZ^ has joined #aichallenge 2012-12-21T10:34:32 *** antimatroid has joined #aichallenge 2012-12-21T10:34:55 *** dvladim has joined #aichallenge 2012-12-21T10:41:03 *** epicmonkey has quit IRC (Ping timeout: 248 seconds) 2012-12-21T10:54:55 *** smiley1983 has quit IRC (Ping timeout: 252 seconds) 2012-12-21T10:55:40 *** smiley1983 has joined #aichallenge 2012-12-21T11:04:01 *** janzert has joined #aichallenge 2012-12-21T11:04:52 *** mceier has quit IRC (Quit: leaving) 2012-12-21T11:08:27 *** Areks has quit IRC (Read error: Connection reset by peer) 2012-12-21T11:40:45 *** heinrich5991 has quit IRC (Ping timeout: 252 seconds) 2012-12-21T11:48:47 *** heinrich5991 has joined #aichallenge 2012-12-21T12:04:21 *** awly has quit IRC (Read error: Operation timed out) 2012-12-21T12:04:28 *** epicmonkey has joined #aichallenge 2012-12-21T12:20:07 *** mceier has joined #aichallenge 2012-12-21T12:42:43 *** epicmonkey has quit IRC (Ping timeout: 265 seconds) 2012-12-21T12:49:56 *** dvladim has quit IRC (Ping timeout: 252 seconds) 2012-12-21T13:01:23 *** NoxiaZ^ has quit IRC (Ping timeout: 246 seconds) 2012-12-21T13:14:59 *** mviel has quit IRC (Read error: Connection reset by peer) 2012-12-21T13:23:40 *** kilae has quit IRC (Quit: ChatZilla 0.9.89 [Firefox 17.0.1/20121128204232]) 2012-12-21T13:36:06 *** dvladim has joined #aichallenge 2012-12-21T14:02:40 *** Accoun has quit IRC () 2012-12-21T14:04:14 *** foRei has joined #aichallenge 2012-12-21T14:19:08 *** ramn[ws] has joined #aichallenge 2012-12-21T14:20:34 *** Accoun has joined #aichallenge 2012-12-21T14:31:29 *** dvladim has quit IRC (Ping timeout: 244 seconds) 2012-12-21T14:45:12 *** thestinger has joined #aichallenge 2012-12-21T14:56:59 *** cyphase has quit IRC (Ping timeout: 245 seconds) 2012-12-21T15:02:14 *** NoxiaZ^ has joined #aichallenge 2012-12-21T15:08:10 *** pairofdice has quit IRC (Quit: In girum imus nocte et consumimur igni.) 2012-12-21T15:46:29 *** coeus has joined #aichallenge 2012-12-21T16:58:51 *** awly has joined #aichallenge 2012-12-21T17:37:09 *** thestinger has quit IRC (Ping timeout: 252 seconds) 2012-12-21T17:41:36 *** thestinger has joined #aichallenge 2012-12-21T17:49:59 *** thestinger has quit IRC (Ping timeout: 252 seconds) 2012-12-21T17:59:23 *** thestinger has joined #aichallenge 2012-12-21T18:06:16 *** heyandy is now known as Guest24212 2012-12-21T18:20:22 *** awly has quit IRC (Ping timeout: 260 seconds) 2012-12-21T18:55:08 *** epicmonkey has joined #aichallenge 2012-12-21T19:01:44 *** foRei has quit IRC (Quit: Bye) 2012-12-21T19:08:04 *** cyphase has joined #aichallenge 2012-12-21T19:18:42 *** ikaros has quit IRC (Quit: Ex-Chat) 2012-12-21T19:49:16 *** thestinger has quit IRC (Quit: WeeChat 0.3.9.2) 2012-12-21T19:49:33 *** thestinger has joined #aichallenge 2012-12-21T19:50:11 *** thestinger has joined #aichallenge 2012-12-21T19:59:47 *** epicmonkey has quit IRC (Ping timeout: 252 seconds) 2012-12-21T20:25:55 *** thestinger has quit IRC (Quit: WeeChat 0.3.9.2) 2012-12-21T20:26:11 *** thestinger has joined #aichallenge 2012-12-21T21:19:50 *** Scooper has quit IRC (Quit: Leaving) 2012-12-21T21:34:54 *** Scooper has joined #aichallenge 2012-12-21T21:51:35 *** _flag <_flag!~flag@69-165-173-172.dsl.teksavvy.com> has joined #aichallenge 2012-12-21T21:56:48 *** Scooper has quit IRC (Quit: Leaving) 2012-12-21T22:17:26 *** NoxiaZ^ has quit IRC (Ping timeout: 256 seconds) 2012-12-21T22:24:30 *** thestinger has quit IRC (Read error: Connection reset by peer) 2012-12-21T23:16:26 *** smiley1983 has quit IRC (Ping timeout: 244 seconds) 2012-12-21T23:18:39 *** smiley1983 has joined #aichallenge