Thread history

From Talk:ScalarBot/Version History
Viewing a history listing
Jump to navigation Jump to search
Time User Activity Comment
17:37, 12 October 2017 Dsekercioglu (talk | contribs) New reply created (Reply to What bug can cause zero score? )
09:04, 12 October 2017 Xor (talk | contribs) New reply created (Reply to What bug can cause zero score? )
08:53, 12 October 2017 Dsekercioglu (talk | contribs) New reply created (Reply to What bug can cause zero score? )
08:46, 12 October 2017 Xor (talk | contribs) New thread created  

What bug can cause zero score?

Recently I noticed some very very low score, some are run on my machine, none of which can be reproduced even with thousands of rounds. However, when some exception is thrown in one round, it will only affect that round.

Then if the zero score is caused by uncaught exceptions, it must be thrown in every round. What else can get my bot disabled in every round? It seems that my bot is not firing even one bullet, or moving even one pixel, in the rest of rounds.

Xor (talk)08:46, 12 October 2017

I had this problem about one years ago and I fixed it by finding an infinite loop that doesn't use getXXX() or setXXX() methods. Another thing I did was rewriting everything again starting from the last version.

Dsekercioglu (talk)08:53, 12 October 2017

Thanks for sharing! Do you mean an infinte loop will disable your bot for every round? It seems that infinite loop will cause the system console print something like (xxx not stopping, trying a force stop), e.g. Krabby is printing 35 of that messages per pairing on my machine. So that should only affect one round by it self. Anyway, I’m not receiving that message on the broken battles.

Xor (talk)09:04, 12 October 2017

Yes, I mean that but if you don't call the XXX methods, the program doesn't throw an exception. It causes the bot to get stuck and stop updating itself or sometimes it disables the bot.

Dsekercioglu (talk)17:37, 12 October 2017