[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 - OMG two times with the same bot on the same map!

It is currently Thu Apr 26, 2018 8:45 pm Advanced search

OMG two times with the same bot on the same map!

Code won't compile? Found a bug? Post here!

OMG two times with the same bot on the same map!

Postby Accoun » Mon Nov 29, 2010 9:46 pm

Accoun
Colonel
 
Posts: 82
Joined: Tue Mar 02, 2010 10:11 am

Re: OMG two times with the same bot on the same map!

Postby Roamboater » Mon Nov 29, 2010 9:59 pm

omg
Roamboater
Lieutenant
 
Posts: 13
Joined: Mon Oct 18, 2010 7:11 pm

Re: OMG two times with the same bot on the same map!

Postby Accoun » Mon Nov 29, 2010 10:12 pm

it caused in final games:
http://ai-contest.com/profile.php?user_id=3916
Nov 29th 15:31:17 GreenTea Loss View Game >>
Nov 29th 15:19:10 GreenTea Loss View Game >>
Accoun
Colonel
 
Posts: 82
Joined: Tue Mar 02, 2010 10:11 am

Re: OMG two times with the same bot on the same map!

Postby glevee » Mon Nov 29, 2010 11:17 pm

Yes, but he crashed in different spots: turn 82 and 75 ...
glevee
Colonel
 
Posts: 68
Joined: Tue Sep 28, 2010 1:11 am

Re: OMG two times with the same bot on the same map!

Postby Janzert » Tue Nov 30, 2010 3:17 am

This is certainly cause for concern, in fact if you look at the pairing code in create_matchups.py the highest priority in map choice is to prevent this from happening. This is of course because the same two players on the same map will almost always or at least very, very frequently give the same outcome and would lead to distortion of the rankings.

After a few false starts in direction for what could be causing this (isn't debugging fun, fun, fun) here is what seems to have happened.

In case you're aren't familiar with how the overall system works for getting from pairing a player to having the result in the database here is a quick high level overview. The process starts in create_matchups.py where the specific pairing and map to play is chosen, it then inserts these matchups into a queue in the database. Generally a few minutes worth of matches are generated in a batch. The worker instances then request matches and they are handed out from this queue. At the time they are handed out they are timestamped in the queue but not removed. When the game finishes on the worker it then turns it back in, the result is recorded and the match is removed from the queue. The match can't be immediately removed from the queue for two reasons. First so that if the pairing script runs while the game is in progress it doesn't think the players are most deserving of a game and immediately schedule them again. Second if the worker crashes while the game is in progress it needs to be rescheduled. So if the game has been handed out but not turned back in for a certain amount of time the server will hand it back out again.

That last part is where the problem came in. The time limit to hand out a game that hadn't been turned back in was set at 6 minutes. This would seem safe since games can only go for 3 minutes and 20 seconds. Unfortunately it appears very rarely something happens that delays the game being turned in for several minutes, I don't know what specifically causes.

All that is to say that there have been 5 matchups that were played twice. As would be expected every repetition resulted in the same player winning both times. In order to prevent it from occurring anymore my first quick path was to increase the time limit before handing a match back out to 15 minutes. I then also implemented a check when recording a game result to check that the particular pairing and map haven't already been played.

To eliminate whatever small distortion is introduced by the repeat games I'll also move the repeats out of the rankings.

Janzert
Janzert
Contest Organizer
 
Posts: 271
Joined: Sun Feb 07, 2010 1:59 am

Re: OMG two times with the same bot on the same map!

Postby glevee » Tue Nov 30, 2010 8:36 am

glevee
Colonel
 
Posts: 68
Joined: Tue Sep 28, 2010 1:11 am

Re: OMG two times with the same bot on the same map!

Postby Accoun » Tue Nov 30, 2010 9:09 am

it code bug
and "he crashed in different spots: turn 82 and 75" it shows unsabile servers unstablety
---
and please replace/add maps
current map set unlucky for me
in TCP 499 maps set give to me higher position in ranking
most time it be:
1.bocsimacko
2._iouri_
3.Accoun
4._Astek_ (as_* bots)
5.george
and:
1.bocsimacko
3.Accoun
2._iouri_
finaly
---
last 6 games Accoun vs GreenTea_For_TCP on TCP
http://openpaste.org/en/24036/
GreenTea_For_TCP newer be long time in top
Accoun
Colonel
 
Posts: 82
Joined: Tue Mar 02, 2010 10:11 am

Re: OMG two times with the same bot on the same map!

Postby Janzert » Tue Nov 30, 2010 12:36 pm

Janzert
Contest Organizer
 
Posts: 271
Joined: Sun Feb 07, 2010 1:59 am

Re: OMG two times with the same bot on the same map!

Postby krokkrok » Wed Dec 01, 2010 8:21 pm

krokkrok
Major
 
Posts: 38
Joined: Mon Sep 13, 2010 2:48 am

Re: OMG two times with the same bot on the same map!

Postby Savis » Wed Dec 01, 2010 9:31 pm

Savis
Cadet
 
Posts: 3
Joined: Thu Oct 07, 2010 8:58 pm

Next

Return to Technical Issues

Who is online

Users browsing this forum: No registered users and 1 guest

cron