Skip to content

Why your bot may crash

dtdannen edited this page Sep 4, 2013 · 3 revisions

Over time I have discovered numerous causes for crashed games, and list them here to help future researchers:

  1. Null pointers. Check the last chunk of code you wrote. You may need to check some variable is not null before using it

  2. Too many log file writes (this can cause the bot to crash in late game for apparently no reason)

Using the debugger is EXTREMELY helpful. See: How to Debug Starcraft Programs (BWAPI bots)

Clone this wiki locally