Okay, I downgraded my AI to v2 but now I get an comparable error, namely that _entities[id] is undefined at line 226 from base.js This is my current code: function NiBotAI(settings) { BaseAI.call(this, settings); this.turn = 0; } NiBotAI.prototype = new BaseAI(); NiBotAI.prototype.OnUpdate = function() { if (this.gameFinished){ return; } this.turn++; }; What is wrong? Second question: Is there a way to reload scripts, so I don't have to reload the save game every time?