Thanks, Tedivm! I ran into the same error again today, but using the try/catch block allowed me to fix the problem on the fly. Much appreciated!
Posts made by bikewrecker
-
RE: [SOLVED] Can't Operate Console When Experiencing Error
-
[SOLVED] Can't Operate Console When Experiencing Error
Hi folks, I recently had an issue where one of my creeps spawned with nothing in its memory for some reason, so I started getting an error
" TypeError: Cannot read property 'run' of undefined
at Object.Creep.runRole [...]"
which makes sense since the creep doesn't have a role set in its memory. The problem I'm having is that I can't fix the situation by editing the creeps memory manually via the console. I tried
Game.creeps.[creepname].memory.role = "creepRole";
But since the error was repeating every tick, the console wouldn't apply the changes to the creeps memory because of the error which would be fixed if the console applied the changes to the creeps memory... I also tried entering the role in the memory console as well, but those changes wouldn't stick either. Anyways, if there is a workaround I could use in future situations of this type, I would love to hear it.
Thanks!