- Created Thursday, February 26th 2015 @ 07:55:24
I seem to be having some issues with the error dump. The one in the I/O test usually works fine and displays some errors, but the game output doesn't show any errors although after one or two turns it suddenly stops giving output, almost certainly because it crashes somewhere. Not seeing any error logs is quite annoying for debugging, and as I can't open the I/O test output anymore after the test match has finished, I can't see any error log at all and I have to re-upload my bot. Am I doing something wrong, or is this a bug in the engine?
- Created Thursday, February 26th 2015 @ 09:41:05
I don't know for sure what's going on. Your bot errors should be stored in the error log, but for some reason the actual errors your bot produces don't get stored, but the errors you output manually do. Maybe this has something to do with Python. I will look into it.
But for now I can help you with your problem. You shouldn't import the python random library, because that always causes problems. You could copy the random class from our old Warlight bot which you can find here.
- Updated Thursday, February 26th 2015 @ 09:53:37
Ok, thanks for looking into it. I'll change the random module stuff this afternoon, although it's not actually used or referred to from the main file yet. P.S. The import error doesn't really seem to be causing trouble for my bot, it's a different error which causes it to completely crash after attacking (?).
- Created Thursday, February 26th 2015 @ 10:19:51
What might work for now is manually catching errors and logging them to the error out.
- Created Thursday, February 26th 2015 @ 13:30:55
Hmm, I've checked again. In the latest version I don't even import random anywhere. I guess it's imported somewhere in the sys module or something. Also, even when I write things to stderr manually, it does not (always) get shown in the error log. I believe I did see of the manually written output in on of the older versions, but still not the error. The I/O test still does show everything I print.
- Created Thursday, February 26th 2015 @ 20:24:01
Hmm. Seems to be working fine now. I did run into some issues with an infinite loop, I guess the error was just online present in the I/O test and not in the actual game where the actual problem was an infinite loop which was caused by a bug. The error with random still occurs though, although it doesn't really seem to interfere with the execution of my bot.
- Created Friday, February 27th 2015 @ 09:34:39
It makes sense that an infinite loop doesn't give an error because it doesn't actually produce an error :)
- Created Friday, February 27th 2015 @ 10:40:09
Indeed. But I guess I was so focused on the error from the I/O test (which is probably present as it doesn't test an entire match but only certain parts, and the bot requires other stuff to function properly) that I assumed that there should be an error in the match as well. Anyway working (sort of) fine now :D