Navigation

    forum

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

    Posts made by Prince_of_Savoy

    • Memory Bug: Can't write variables into memory

      I can't seem to define new variables in Creeps memory

      for example when I enter into the console

      Game.creeps.Brody.memory.role = 'harvester';

      And then look at Brody in the Memory viewer I see this:

      http://imgur.com/tixakuU

      Instead of this:

      http://imgur.com/qNSFBJt

       

      When I enter into the console

      console.log(Memory.creeps.Brody.role);

      It return undefined.

      the only way I can access the Information is by

      console.log(Memory.creeps.Brody.);

      which does return harvester. Right now I got my Harvesters running by changing

       if(creep.memory.role == 'harvester') {
                  
                  roleHarvester.run(creep);
              }

      to

       if(creep.memory == 'harvester') {
                  
                  roleHarvester.run(creep);
              }

       

      but that creates a host of other problems.

       

      I am currently not doing Memory cleanup on dead creeps, since I just started.

       

       

       

      posted in Technical Issues and Bugs
      Prince_of_Savoy