Navigation

    forum

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

    Topics created by Virus_377b2d

    • Unsolved How to lower CPU usage
      Help • • Virus_377b2d

      3
      3
      Posts
      2159
      Views

      @virus_377b2d I agree with the points left by @Bazsi1224 . I am in a similar spot with my code. I was able to pretty easily add the profiler linked on the "Third Party Tools" part of the documentation site. It's a quick setup and can point you in the direction of function calls that are eating up larger portions of your CPU. Hope this helps.
    • Solved How to take energy out of a link
      Help • • Virus_377b2d

      4
      4
      Posts
      4131
      Views

      @virus_377b2d const link = Game.getObjectById("..."); const creep = Game.creeps.mycreep; if(creep.withdraw(link, RESOURCE_ENERGY) == ERR_NOT_IN_RANGE) { creep.moveTo(link); }
    • Solved How do I connect containers or storage to spawn like extensions automatically are?
      Help • • Virus_377b2d

      2
      2
      Posts
      2574
      Views

      You cannot, that's not how they work.