Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

screepsmod-bots

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

screepsmod-bots

Screeps server mod that makes managing bots easy

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

screepsmod-bots

Screeps mod that manages bots in the game. On startup the mod removes the default bots and adds the bots from the bots.yml file.

Setup

  1. Install the mod:
  • npm install screepsmod-bots --save
  1. Install the bots you will be using:
  • npm install @screeps/simplebot --save
  • npm install screeps-bot-overmind --save
  • npm install screeps-bot-tooangel --save
  • npm install screeps-bot-choreographer --save
  1. Copy or create a bots.yml file in the root of your Screeps server directory:
version: 1
bots:
- username: bot1
  botName: overmind
  position: 22,13,W1N8
  cpu: 200
  gcl: 1
  log_console: false
- username: bot2
  botName: tooangel
  position: 34,22,W3N1
  cpu: 200
  gcl: 1
  log_console: false
- username: bot3
  botName: choreographer
  position: 17,12,W8N3
  cpu: 200
  gcl: 1
  log_console: false
- username: bot4
  botName: simplebot
  position: 17,37,W9N9
  cpu: 200
  gcl: 1
  log_console: false
  1. Add the mod and bots to your mods.json file:
{
  "mods": [
    ...
    "node_modules/screepsmod-bots/index.js"
  ],
  "bots": {
    "simplebot": "node_modules/@screeps/simplebot/src",
    "overmind": "node_modules/screeps-bot-overmind/src",
    "tooangel": "node_modules/screeps-bot-tooangel/src",
    "choreographer": "node_modules/screeps-bot-choreographer/dist"
  }
}
  1. Start the server and connect with your client, the default bots in the corners of the map should be gone and replaced with the bots you configured.

Operation

There is no event fired when the server data is reset (system.resetAllData()), so the server must be restarted after the reset, otherwise the mod will not have run on the new data.

To add new bots, edit the bots.yml file and restart the server. Take care to not reuse usernames as if the username matches a wiped bot, it will not be created - already exists.

The positions in the examples are a best attempt to starting rooms with 2 sources that are closely equidistant from other bots.

Keywords

FAQs

Package last updated on 25 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc