Navigation

    forum

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

    Topics created by grandpa_sam

    • Solved Adding functions to memory object prototypes seems to cause memory loading error.
      Technical Issues and Bugs • • grandpa_sam

      2
      2
      Posts
      3042
      Views

      This is not an issue, Memory is intended for storing plain data only.
    • Solved Add functionality to memory objects
      Help • • grandpa_sam

      15
      15
      Posts
      18574
      Views

      However watch out for nested function calls. In my example, if findByCost tried internally to call more functions from SpeciesClass with the usual this.function() syntax then it will fail. For every functions that you plan to call onto "foreign" objects, make sure all nested methods are called using the YourClass.prototype.function.call(this) syntax.
    • screep.carry.energy show 50 units while right panel for creep clearly show it is not carrying anything
      Technical Issues and Bugs • • grandpa_sam

      5
      5
      Posts
      5517
      Views

      Moderately surprised it even allowed him to modify that property.