TypeError: game.runCode is not a function



  • So, every once in a while I suddenly get this error:

    17:16:18]TypeError: game.runCode is not a function
    at /opt/engine/dist/core/runtime.js:27:12
    at fulfilled (/opt/engine/dist/core/node_modules/q/q.js:794:54)
    at self.promiseDispatch.done (/opt/engine/dist/core/node_modules/q/q.js:823:30)
    at Promise.promise.promiseDispatch (/opt/engine/dist/core/node_modules/q/q.js:756:13)
    at /opt/engine/dist/core/node
    modules/q/q.js:564:44
    at flush (/opt/engine/dist/core/node_modules/q/q.js:110:17)
    at doNTCallback0 (node.js:408:9)
    at process._tickDomainCallback (node.js:378:13)

    To be honest, I don't have a clue what to do about it 😐 This seems like a bug.



  • I have the same bug, but my creeps are still active



  • I got this error also quite often and it seems, that this particular tick is skipped.



  • Oh, now just CPU warnings come.



  • Same for me, and my screeps all died and my ramparts all vanished. The ramparts were at 200k so they would be fine.