

I've set it up, so that a new reserver is sent to the controller, when the reservation point drop below 300. Otherwise you lose the reservation, when you creep dies and the next one is still on its way or beeing constructed. (without reservation, the sources have only half the energy capacity)Īs a controller looses one claim point per tick and a claim module adds 1, you need two modules (or two creeps with 1) in order to raise the reservation points. I've sent out harvesters to my neighbour rooms, together with claim creeps, so I can reserve the rooms. You don't have to wait for GCL for a multi-room environment. If there are rooms inbetween, you also have to call it for exit to exit in the mid rooms. Oh, and findPathTo only gives you the path for the room, where the startlocation is, so for a room to room connection you have to call it once for both directions. By this, the pathfinding can use the already built roads for its calculations and reuse them.

I also called it for one location-location road and waited until there were no more road constructionsites. locations should get you nice 2-3 lane roads over time, as the path avoids the creeps currently on the way. Calling it every few hundred ticks for all your container-container and spawn-container and sources-container.

You could also use findPathTo, which gives you an array with the positions along the path, and call createConstructionSite for every point.
