You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi i am new to screeps and i have setup a private server to learn, i was taking a look and playing with your code however i get the following scrolling in the console
Brain Exception TypeError: Cannot read property 'role' of null
at Object.brain.addToStats (brain_memory:30:36)
at Object.brain.cleanCreeps (brain_memory:79:11)
at Object.brain.prepareMemory (brain_memory:202:9)
at Object.brain.main.execute (brain_main:82:11)
at Object.module.exports.loop (main:27:18)
at __module (__mainLoop:1:52)
at __mainLoop:2:3
at Object.exports.evalCode (:15370:76)
at Object.exports.run (:20808:24)
at global._init.global._start (:16028:22)
Any ideas ? im just using your code btw to learn and see how others have done it :-)
The text was updated successfully, but these errors were encountered:
The creeps are defined via an attribute in the memory role. In your case, it seems that it cannot access the memory of the creep.
The method is about saving some stats about the creeps, so it is not soo important.
To properly debug it would be good if you can update to the newest version (if you are still using it).
Otherwise it would be nice if you could close the issue.
Hi i am new to screeps and i have setup a private server to learn, i was taking a look and playing with your code however i get the following scrolling in the console
Brain Exception TypeError: Cannot read property 'role' of null
at Object.brain.addToStats (brain_memory:30:36)
at Object.brain.cleanCreeps (brain_memory:79:11)
at Object.brain.prepareMemory (brain_memory:202:9)
at Object.brain.main.execute (brain_main:82:11)
at Object.module.exports.loop (main:27:18)
at __module (__mainLoop:1:52)
at __mainLoop:2:3
at Object.exports.evalCode (:15370:76)
at Object.exports.run (:20808:24)
at global._init.global._start (:16028:22)
Any ideas ? im just using your code btw to learn and see how others have done it :-)
The text was updated successfully, but these errors were encountered: