How My Bot Boosts a Creep – A Detailed Explanation for Beginners
How My Bot Boosts a Creep – A Detailed Explanation for Beginners
Boosting is one of the most important steps to becoming a veteran Screeps player. You’ll eventually need boosted creeps to attack high-level rooms or defend against them — and once you can boost efficiently, you can also use those boosted creeps to accelerate your economy.
In this post, I’ll explain how my bot handles boosting from start to finish — including how it requests boosts, prepares resources, and executes the actual boosting process.
1. Boost Request
Whenever my bot requests a creep to be spawned and boosted, it also creates a boost request object in the room’s memory:
room.memory.boostRequests = [
{
creepName: "Attacker_123",
requestedAt: Game.time,
resources: {
XKH2O: 660, // Resource type and amount
XLHO2: 540,
XZHO2: 300,
}
},
...
];
Each boostRequest
contains:
- The creep name to be boosted.
- The
Game.time
when the request was made. - The resource types and required amounts for each boost.
While the creep is being spawned, another creep in the same room starts preparing everything needed for the boost.
2. Boosting Process Overview
My bot processes boost requests from oldest to newest. Each request goes through three phases: Gather → Prepare → Boost.
🧺 Gather Phase
-
Check resources: Make sure all the required minerals and energy are available to perform the boost.
-
Import if missing: If some resources are missing, request them via the room’s terminal from other rooms.
-
Switch to prepare phase: Once all resources are ready, the system transitions to the next step.
⚗️ Prepare Phase
-
Stop lab reactions: If the labs are currently running reactions, stop them first.
-
Courier transfers: Courier creep transport the correct resources to the appropriate labs.
-
Batch preparation: If there are multiple boost requests, try to prepare all of them — again from the oldest to the newest.
-
Ready check: If the target creep has finished spawning and everything is prepared, the bot switches to the boost phase.
⚡ Boost Phase
-
Move the creep: The target creep moves to the prepared labs.
-
Perform boosting: Each lab boosts the creep until the entire process completes.
3. Tips and Safety Checks
Here are a few lessons I learned the hard way:
- 📌 Create boost request only when spawn returend OK to avoid duplication.
- ✅ Check if the target creep is alive and waiting before starting the boost phase.
- ⚗️ Select labs wisely — prefer labs that already contain the required minerals or that are being used as reaction labs.
- ⚡ Don’t forget energy — labs need energy as well as minerals to perform the boost!
- 🔄 Handle failures — if something goes wrong, return to the gather or prepare phase instead of getting stuck.
- 🤝 For duos or quads, make the creeps that spawn first get renewed until all teammates are ready.
- ⏳ Timeouts matter — if a boost request makes no progress after a certain time, give up and move to the next one.
4. Final Thoughts
So that’s how my bot handles boosting — a full cycle from request to completion, with recovery in case of failure.
Once you’ve built a stable boosting pipeline, you’ll unlock a huge new layer of Screeps gameplay. Try spawning a boosted singleton with tough, ranged attack and heal boosts, and send it to your neighbor — it’s a great way to test your system (and maybe start a small war 😄).
Leave a comment