Navigation

    forum

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

    Posts made by Dordrow

    • RE: Undefined ticksToLive

      @deft-code My code example starts with if (!Game.creeps['TEST'].spawning)

      posted in Technical Issues and Bugs
      Dordrow
    • Undefined ticksToLive

      Hi,

      Since last update, in Steam's private server, creep.ticksToLive is undefined during the first tick after the creep spawns.

      This problem does not happen in the online server (and did not happen in the private server previously).

      Code example :

      On Steam's private server :

      spawn.spawnCreep([WORK,CARRY,MOVE,MOVE], 'TEST');
      if (!Game.creeps['TEST'].spawning) console.log('TEST ticksToLive : '+Game.creeps['TEST'].ticksToLive);
      
      [00:21:20]TEST ticksToLive : undefined
      [00:21:21]TEST ticksToLive : 1499
      [00:21:22]TEST ticksToLive : 1498
      [00:21:23]TEST ticksToLive : 1497
      [00:21:24]TEST ticksToLive : 1496
      [00:21:25]TEST ticksToLive : 1495
      [00:21:26]TEST ticksToLive : 1494
      [00:21:27]TEST ticksToLive : 1493
      

      Same code in the online official server :

      [00:27:30][shard3]TEST ticksToLive : 1499
      [00:27:33][shard3]TEST ticksToLive : 1498
      [00:27:36][shard3]TEST ticksToLive : 1497
      [00:27:39][shard3]TEST ticksToLive : 1496
      [00:27:42][shard3]TEST ticksToLive : 1495
      
      posted in Technical Issues and Bugs
      Dordrow