[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4586: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4588: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4589: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4590: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
AI Challenge Forums • View topic - TCP server for ants

It is currently Sat Oct 20, 2018 4:11 pm Advanced search

TCP server for ants

Topics about starter packages, visualizer or any other third party tools.
Please submit new language requests in the Language Request Forum.

Re: TCP server for ants

Postby Scryer » Fri Nov 18, 2011 4:23 am

Scryer
Colonel
 
Posts: 72
Joined: Wed Nov 09, 2011 5:40 pm

Re: TCP server for ants

Postby skuto » Fri Nov 18, 2011 8:04 am

One of the servers (I forgot which...) has a tcpclient3.py on their site for Python 3.
skuto
Captain
 
Posts: 21
Joined: Mon Oct 24, 2011 6:49 pm

Re: TCP server for ants

Postby ferchoman » Fri Nov 18, 2011 3:01 pm

Ok, thanks,
I will be looking a TCP server for python 3+
ferchoman
Lieutenant
 
Posts: 17
Joined: Wed Nov 09, 2011 4:29 pm

Re: TCP server for ants

Postby tygrysek » Fri Nov 18, 2011 7:41 pm

For some time when I want to see games replays on http://213.88.39.97 tcp server, instead of game replay view in graphic mode I see only html source code. How to fix it ?
tygrysek
Cadet
 
Posts: 1
Joined: Fri Nov 18, 2011 7:35 pm

Re: TCP server for ants

Postby BenJackson » Fri Nov 18, 2011 8:46 pm

BenJackson
Colonel
 
Posts: 94
Joined: Sat Oct 29, 2011 4:16 am

Re: TCP server for ants

Postby dabino » Sat Nov 19, 2011 4:19 pm

tcpclient.py just kills the process when it reaches "end", so I have no chances to save my bot statistics. Do you have any idea how to let the bot to receive this "end", as it is per game specification?
dabino
Major
 
Posts: 36
Joined: Thu Sep 09, 2010 9:52 pm

Re: TCP server for ants

Postby bluegaspode » Sat Nov 19, 2011 5:56 pm

I regularly get a "bot timed out" message from fluxid and very rarely can play a full game.
My Java Bot actually finishes with each turn in less than 200ms, there is also no computation that tries to do as much in the turntime as possible.

Much the same as written here: viewtopic.php?f=25&t=1505&p=11312#p11312

Anyone facing the same issues or his tips how to troubleshoot this issue?
bluegaspode
Colonel
 
Posts: 51
Joined: Mon Nov 07, 2011 8:38 am

Re: TCP server for ants

Postby bluegaspode » Sun Nov 20, 2011 11:54 am

A small analysis with wireshark (see pictures below)

One can see that after 216.347 seconds my last turn gets send.
At 238.286 the next turn from fluxid arrives, followed instantly by a timeout message at 238.327 seconds.

Typically the 'turn' messages arrive each second - so also the other three parties don't use too much time.
This time it took fluxid 15seconds until a new turn arrived.

I'm in Germany - so not too far away from poland, but such high latencies are uncommon, are they?
On Fluxid I'd say every second game (or even more) of mine times out :(

I'm not too good with wireshark - any way to find out, when Fluxid sent the last turn?

Bildschirmfoto 2011-11-20 um 12.41.24.png
Bildschirmfoto 2011-11-20 um 12.41.24.png (96.35 KiB) Viewed 3120 times

Bildschirmfoto 2011-11-20 um 12.41.39.png
Bildschirmfoto 2011-11-20 um 12.41.39.png (64.21 KiB) Viewed 3120 times

Bildschirmfoto 2011-11-20 um 12.41.51.png
Bildschirmfoto 2011-11-20 um 12.41.51.png (59.2 KiB) Viewed 3120 times
bluegaspode
Colonel
 
Posts: 51
Joined: Mon Nov 07, 2011 8:38 am

Re: TCP server for ants

Postby amstan » Mon Nov 21, 2011 1:01 am

Alexandru M. Stan
Contest Organizer
User avatar
amstan
Contest Organizer
 
Posts: 691
Joined: Sun Jan 31, 2010 4:02 am
Location: Stoney Creek, Ontario

Re: TCP server for ants

Postby tomb » Tue Nov 22, 2011 6:05 pm

I too was getting the indecipherable (to me anyhow) python error:

File "tcpclient.py", line 158
print USAGE
^
SyntaxError: invalid syntax

I was running Python 3.2.2. I just uninstalled 3.2.2 and installed 2.7.2 and it works no problem. The 15 minutes it took to change was totally worth it. Also, being able to create the debug files on my local machine is awesome. highly recommended.
tomb
Lieutenant
 
Posts: 12
Joined: Thu Nov 17, 2011 4:21 pm

PreviousNext

Return to Starter Packages & Tools

Who is online

Users browsing this forum: No registered users and 5 guests

cron