Navigation

    forum

    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    1. Home
    2. Shadiez
    • Flag Profile
    • block_user
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Groups
    • Blog

    Shadiez

    @Shadiez

    2
    Posts
    994
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Shadiez Follow

    Posts made by Shadiez

    • RE: Accidently overwrote creeps in memory

      @shadiez Fixed it by reseting with https://steamcommunity.com/app/464350/discussions/5/352792037315230592/

      posted in Technical Issues and Bugs
      Shadiez
    • 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

      posted in Technical Issues and Bugs
      Shadiez