Navigation

    forum

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

    Topics created by shadow_bird

    • Spawn create creep
      Technical Issues and Bugs • • shadow_bird

      3
      3
      Posts
      9160
      Views

      xD Let say I was tired ^^
    • Flag removal
      Feature Requests • • shadow_bird

      1
      1
      Posts
      2541
      Views

      No one has replied

    • Find closest across rooms
      Help • • shadow_bird

      6
      6
      Posts
      11193
      Views

      I also posted a custom implementation to calulate room distance here:  http://screeps.com/forum/topic/710/How-do-you-calculate-room-distance-across-regions-E-W-N-S-?page=1#community_comment_209668949  But this will only calculate how far away the rooms are to each other (in rooms), not exact pos distance from within two different rooms.
    • Flag / Controller
      Help • • shadow_bird

      3
      3
      Posts
      5572
      Views

      Thanks, I was writting the scout way but I didn't though about simulating my own ticksToEnd ;).
    • Chemical reaction without labs
      Help • • shadow_bird

      3
      3
      Posts
      3971
      Views

      Ok, I didn't know that boosted creep drop minerals I only saw energy when I did encountered them
    • Memory slot for Structures
      Feature Requests • • shadow_bird

      7
      7
      Posts
      8805
      Views

      Here is an example of how to add it yourself. you have to do this every tick before you use the .memory of the structure. Idk if this is done well or not but it works for me. I got the code from http://stackoverflow.com/questions/30147800/extend-source-prototype-to-have-a-memory-object and just modified it slightly so it would be for structures instead of sources: Object.defineProperty(Structure.prototype, 'memory', { configurable: true, get: function() { if(_.isUndefined(Memory.myStructuresMemory)) { Memory.myStructuresMemory = {}; } if(!_.isObject(Memory.myStructuresMemory)) { return undefined; } return Memory.myStructuresMemory[this.id] = Memory.myStructuresMemory[this.id] || {}; }, set: function(value) { if(_.isUndefined(Memory.myStructuresMemory)) { Memory.myStructuresMemory = {}; } if(!_.isObject(Memory.myStructuresMemory)) { throw new Error('Could not set source memory'); } Memory.myStructuresMemory[this.id] = value; } });