Yes it seems indeed to be looking for all resources.
The same goes for pos.lookFor(LOOK_ENERGY)
Hence a creep checking for energy on it's way happens to pick up other stuff here and there too.
Yes it seems indeed to be looking for all resources.
The same goes for pos.lookFor(LOOK_ENERGY)
Hence a creep checking for energy on it's way happens to pick up other stuff here and there too.
Maybe count your creeps and structures? If there is only the spawn then you respawned...
I have a question concerning this:
http://support.screeps.com/hc/en-us/articles/203137792-Simultaneous-execution-of-creep-actions
If i use ranged_heal and ranged_attack at the same time, will they both execute properly or just one?
I'm not sure how to read that chart, since ranged_heal is in both lines...
Hmm... ok. In that case i'll look into other ways of optimization first.
But in case someone wants to give some more general directions to the topic i'm very interested
There seems to be a minor Bug with the Controller if a player respawns.
I am now reserving the controler in E49S18, however the downgrade ticker is still running at 19'000 something.
I'm at the point where my CPU get's to it's limits. and i think that for my knowledge i have done the optimizations i could find.
I see that pathfinding is a major part of my used CPU, however i have no experiance at all with storing and reusing paths, and couldnt find something that helped me (as a newb to programming).
So, would anyone be willing to share some code snippets with me?
1. how and where to store a path
2. how to know when to use a path that is stored
3. how to use a stored path.