Accidently overwrote creeps in memory
-
I was trying to use:
Memory = JSON.parse(RawMemory.get()); //on the first access to Memory object Memory = 1; RawMemory.set(JSON.stringify(Memory));
from http://docs.screeps.com/global-objects.html but it ended up giving the error
globals.Memory.creeps = {}; ^ TypeError: Cannot create property 'creeps' on number '1'
and I realize what I did but I can't undo it
-
@shadiez Fixed it by reseting with https://steamcommunity.com/app/464350/discussions/5/352792037315230592/
-
Why were you doing
Memory = JSON.parse(RawMemory.get()); //on the first access to Memory object // ...your script RawMemory.set(JSON.stringify(Memory));
It is done for you before and after the tick.