@deft-code My code example starts with if (!Game.creeps['TEST'].spawning)
Dordrow
@Dordrow
2
Posts
518
Profile views
0
Followers
0
Following
Posts made by Dordrow
-
RE: Undefined ticksToLive
-
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