- Created Sunday, March 1st 2015 @ 18:21:48
I really like the site and the stuff you guys have setup here, as such I've spent all weekend programming trying to get something working! That said, I've been having some real issues, I haven't actually had a bot pass your tests yet...
Here's a list of things I've tried:
- Custom scala bot for Warlight 2 (Failed with can't find ./java)
- Upload java starter bot for Warlight 2 (Worked)
- Slightly modified java starter bot for Warlight 2 (Failed with some similar bash-y error)
- Python bots for Omaha (mostly failed in testing stages)
I am yet to get to the point where a bot of mine has played another game. I'm not sure if any developers are able to access the logs, but am happy to put links in here or paste output. Mostly the problems have been something I can't do anything about (i.e. compilation passed but some bash script failed) or stuff that leaves me in the dark about whether things are working. There were a couple of examples of this (I didn't respond to EOF in python, and was logging the input commands to stderr which produced a massive amount of empty output from the tests).
I'm now at the stage where my python bot has passed the simple tests and is now waiting for a testgame I believe.
Running testcase /opt/aigames/etc/testsheadsupomaha/testheadsupomaha.txt... Testing Bot with setup input... ... finished testcase in 0.070000000298 seconds check 0
Bot has output, creating full testgame...
It's been like this for at least 20 minutes now. I'm not sure if this is normal now.
Not sure exactly what I'm trying to say here. I guess in some cases it would be nice to have an error message that says "Sorry, this error is our bad", or "This error is your bad", and call out what happened more explicitly. In the case of the testgame, it would be nice to see a message there saying how long you expect this to take, 20 mins seems long to me, but I just don't know.
DeveloperCreated Sunday, March 1st 2015 @ 18:40:53
Glad to hear you like our site. We had some server updates last week and apparently Scala (and maybe Java) are not properly working anymore, I'll have a look at that tomorrow. For your Python bot: congratulations, you have found a bug in our system.
Your bot is stuck in an infinite loop (I can see that because your output is just a very large amount of "/n/n/n/n/n". This caused a timeout and therefore you were still waiting for it to go to the test match.
Anyway, fix this error and your bot should upload just fine. I'll work on a solution for the infinite loop problem this week so it won't happen again.
- Created Sunday, March 1st 2015 @ 19:55:47
Hey,thanks for the quick response :)
So I'm fairly sure I've fixed that problem with the python program - (the loop is now while not stdin.closed) and contains if (len(rawline) == 0: break) I've also got a try catch EOFError, so hope I've covered all bases. This has fixed the ridiculous amounts of output problem but the bot is still waiting to start the practice game.
To demonstrate this, the last bot I uploaded (12) was simply the starter example, which is also still waiting to go on to the practise game. I hope that also helps!