Navigation

    forum

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

    Topics created by LogicalKip

    • Questions about market system
      Help • • LogicalKip

      5
      5
      Posts
      5997
      Views

      The remaining amount includes the order amount. So the number would be 10k not 9k. When a part of the order is completed both amount and remainingAmount will update accordingly. Amount will represent the amount of the resource available in the terminal up to the remainingAmount.
    • Did your creeps start going into other rooms on their own ?
      Help • • LogicalKip

      3
      3
      Posts
      5063
      Views

      If I had to guess . . . You haven't set "maxRooms" to one in your moveTo call, so your creeps are finding paths that involve going out of the room (which is more likely to occur when their way is blocked by other creeps). I'm also guessing you're using `creep.room` to get the target, so when it enters a new room it is also switching targets. This would explain why it goes for the new controller. Easy fix is to set maxRooms to one on creeps that have no reason to leave the room.
    • How can I detect that I have respawned ?
      General Discussion • • LogicalKip

      9
      9
      Posts
      12351
      Views

      How about summing the progress of your controller(s) _.sum(_.filter(Game.rooms, r=>{return r.controller && r.controller.my}), 'controller.progress') == 0 you can also check if there is a controller with level > 1 before summing.  But the sum will be == 0 for some loops until the first progress is made.  If you need only the first loop you will have to combine this approach with the memory approach.  when == 0 (&& !first Loop gone) set "first Loop gone" (this is your first loop) then when > 0 set "first Loop gone" = false to wait for respawn again