AutoScreep Starter Bot is designed to provide a solid foundation for your Screeps AI bot development. It serves as a base bot architecture, offering essential components such as task management and spawning systems. While it may not boast advanced AI capabilities out of the box, it lays the groundwork for your bot's growth and optimization. With AutoScreep Starter Bot, you can jumpstart your Screeps AI journey and build upon this robust foundation to create a bot tailored to your specific needs and objectives.
Task Managers are essential for prioritizing tasks and managing Creep roles efficiently.
The Core Manager serves as the system's entry point, running other managers using a CPU-based priority system. This prioritization system ensures that critical tasks, such as operating Spawns and Towers, are executed first, and it can automatically skip lower priority tasks when the CPU bucket is running low.
The Spawn Manager processes orders to spawn creeps from a priority-based queue.
Operations allow you to create autonomous missions that focus on achieving specific goals.
Creep and Room Services provide task managers with efficient access to query for creeps and rooms.
Prototypes allow you to expand the capabilities of regular Game objects with extra behaviors or optimizations.
To get started with AutoScreep Starter Bot, ensure you have installed:
- Node.js (LTS recommended)
-
Download and extract or clone the source code to a folder of your choice.
-
Open your terminal and navigate to the project folder.
-
Run
npm install
(oryarn
) to install the required packages and TypeScript declaration files
AutoScreep Starter Bot utilizes Rollup to compile your TypeScript code and upload it to a Screeps server.
-
Move or copy
screeps.sample.json
toscreeps.json
and edit the file, providing your Screeps credentials. Optionally, you can add or remove some of the destinations based on your requirements. -
The
package.json
includes NPM scripts that serve as aliases for the Rollup commands. For example, runningnpm run push-main
will build and push using the "main" destination in yourscreeps.json
file.
Note: For uploading code to a private server, you must have screepsmod-auth installed and configured.
This bot is heavily inspired by the public release of KasamiBot, and we extend our gratitude to Kasami for generously sharing their work!