It is currently Thu Sep 20, 2018 3:23 pm Advanced search

timeout on first turn always..

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

timeout on first turn always..

Postby L7ColWinters » Sun Oct 31, 2010 5:02 am

So I am having trouble running my own bot locally... I can run the example bots, but for some reason when I run this line of code
{
java -jar tools/PlayGame-1.2.jar maps/map7.txt 1000 200 log.txt "java MyBot" "java MyBot" | java -jar tools/ShowGame-1.2.jar
}
the command line just sits there indeffinetly. No time outs or any type of info and i have to close out the cmd window.

If i do the above code but use a runnable jar and do "java -jar mybot.jar", it runs but says that both players timed out on the first turn and i believe thats because the run method was never called..

any help would be appreciated.
L7ColWinters
Cadet
 
Posts: 5
Joined: Sun Oct 31, 2010 4:54 am

Re: timeout on first turn always..

Postby Innominate » Sun Oct 31, 2010 9:34 am

Have you tried replacing your code with a barebones bot which simply ends the turn as soon as it can? If you still get a time-out, then something might be wrong.
Innominate
Captain
 
Posts: 22
Joined: Wed Oct 06, 2010 3:20 am

Re: timeout on first turn always..

Postby L7ColWinters » Sun Oct 31, 2010 4:19 pm

found it, thanks though.

It was the fact that i had a printtrace statement which would crash the game.
L7ColWinters
Cadet
 
Posts: 5
Joined: Sun Oct 31, 2010 4:54 am


Return to Technical Issues

Who is online

Users browsing this forum: No registered users and 2 guests