[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/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 - Problem with IssueOrder [FIXED]

It is currently Sat Jan 20, 2018 6:46 am Advanced search

Problem with IssueOrder [FIXED]

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

Re: Problem with IssueOrder

Postby Surya » Tue Nov 15, 2011 2:28 pm

I think we got it, I have loads of errors like this:

turn 17 bot 0 invalid actions:
xxxxxo 2 10 s # unknown action
turn 18 bot 0 invalid actions:
xxxxxo 2 10 s # unknown action
turn 19 bot 0 invalid actions:
xxxxxo 2 10 s # unknown action

....

turn 69 bot 0 invalid actions:
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxo 16 10 w # unknown action
turn 70 bot 0 invalid actions:
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxo 16 10 w # unknown action
turn 71 bot 0 invalid actions:
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxo 16 10 w # unknown action


Any idea why those xxxxx appear?
My C# command is
System.Console.Out.WriteLine("o {0} {1} {2}", loc.Row, loc.Col, direction.ToChar());

Thank you Kuisma for leading me to this!
Surya
Captain
 
Posts: 22
Joined: Tue Nov 15, 2011 9:52 am

Re: Problem with IssueOrder

Postby kuisma » Tue Nov 15, 2011 2:31 pm

Seems you are forgetting a newline at some earlier point. Maybe the x's are some kind of debug printouts? Only send debug to standard error, since standard output is reserved for orders to the engine.
kuisma
Captain
 
Posts: 22
Joined: Mon Oct 31, 2011 8:46 am

Re: Problem with IssueOrder

Postby Surya » Tue Nov 15, 2011 2:37 pm

Ok, my bad I was writing in the console at some point. I feel kinda dumb right now :oops:
Anyway, thank you very much for your time Kuisma, you solved my problem!

Have a nice day
Surya
Captain
 
Posts: 22
Joined: Tue Nov 15, 2011 9:52 am

Re: Problem with IssueOrder [FIXED]

Postby frobalt » Tue Nov 15, 2011 5:59 pm

Can someone explain to me what to do to fix this so I can make sure my bot isn't being stupid?


Is it duplicate orders?
frobalt
Colonel
 
Posts: 53
Joined: Mon Oct 31, 2011 9:42 pm

Re: Problem with IssueOrder [FIXED]

Postby Surya » Tue Nov 15, 2011 7:04 pm

It wasn't duplicate orders, it was worse than that. I was writing in the console. (Console.Write(..))
Surya
Captain
 
Posts: 22
Joined: Tue Nov 15, 2011 9:52 am

Re: Problem with IssueOrder [FIXED]

Postby frobalt » Tue Nov 15, 2011 7:33 pm

Oh, i see.

I'm not, so that can't be the case with me....hmmm....
frobalt
Colonel
 
Posts: 53
Joined: Mon Oct 31, 2011 9:42 pm

Re: Problem with IssueOrder [FIXED]

Postby kuisma » Tue Nov 15, 2011 7:50 pm

kuisma
Captain
 
Posts: 22
Joined: Mon Oct 31, 2011 8:46 am

Re: Problem with IssueOrder [FIXED]

Postby frobalt » Tue Nov 15, 2011 9:01 pm

I think I might have fixed it now....although I can't exactly tell because I've got 200 odd minutes til my next game :/

I suspect it was because it was because it was breaking out of the loop before giving orders, as when I implemented defence this morning I made it so it would check LOS of each ant and move towards the attacker, regardless of distance. Now it checks the distance before attempting to see if it should defend or not.


Or, I'm hoping that's the case anyway...will have to see soon.
frobalt
Colonel
 
Posts: 53
Joined: Mon Oct 31, 2011 9:42 pm

Previous

Return to Starter Packages & Tools

Who is online

Users browsing this forum: No registered users and 1 guest