1.14.7 • Published 3 months ago

screeps-performance-server v1.14.7

Weekly downloads
-
License
-
Repository
-
Last release
3 months ago

Screeps-Performance-Server

Windows not supported, contact Panda for support

This is a Screeps server setup that includes milestones and the Stats mod built in. It was originally created by TooAngel and this version includes data export for the milestones results. The exported data includes:

  1. Milestones reached
  2. Room status (ControllerId, creep count, level, progress, structure count)
  3. Tick count
  4. Start/end time

Requirements

  • Node.js 16.x
  • Docker-Compose

Installation

  1. Clone this repo
  2. Run npm install to install dependencies

Setup

  • Update all .example files to your needs. This is not required if you use the default setup.

Custom bot

  1. Create a new folder in the bots directory
  2. Add your bot's JS files to the new folder (the entry file must be named main.js)
  3. Update the config.yml file's bots.bot string to the path of your bot

Run commands

Config

  • --debug: listen to setup Docker logs
  • --force: force the non-.example config files to be overwritten
  • --botFilePath: change the path to the bot folder (where the main.js file is located or all other .js files are located)
  • --steamKey: change the Steam key used to authenticate the bot
  • --deleteLogs: delete the logs folder on startup

Network

  • --serverPort: change the port the server will run on
  • --cliPort: change the port the CLI will run on
  • --relayPort: change the port the relay will run on
  • --disableMongo: disable the MongoDB database and use default db instead

Server

  • --maxBots: limit the number of bots that can be spawned
  • --tickDuration: change the tick duration (default: 100 (ms)
  • --maxTickCount: limit the number of ticks the server will run
  • --maxTimeDuration: change the maximum duration of the server in minutes (default: 60 minutes)

Exporting

  • --discordWebHookUrl: send the result to the configured webhook
  • --discordUsername: change the username of the webhook message, default: Screeps Performance Server
  • --githubOwner: username of the GitHub user that owns the repo to report to
  • --githubRepo: name of the repo on GitHub to report to
  • --githubAuth: add a GitHub token to the request header
  • --pasteBinUrlDevKey: add a PasteBin dev key to send the result to PasteBin
  • --logFilter: filter the logs by a string and export them to an file called logListener in logs folder

Usage

  • Run npm run server to start the server

After you see Start the simulation with runtime (... ticks if chosen limited tick run), go to localhost:21025 (if not changed) and check out the admin utils dashboard. The default pre-spawned user password is password.

You can also start the server using npx by running npm i -g screeps-performance-server and then npx screeps-performance-server with optional parameters (see #Configuration run commands)

Milestones

You can add milestones to the config file, which will be checked every tick. If one of them is reached, it will be logged. The server should stop after all milestones have been reached.

To add a milestone, you can edit or add one and add/update one of the following options:

  • level (rcl)
  • creeps (count)
  • structures (count)
1.14.5

3 months ago

1.14.4

3 months ago

1.14.3

3 months ago

1.14.2

3 months ago

1.14.7

3 months ago

1.14.6

3 months ago

1.14.1

3 months ago

1.14.0

3 months ago

1.12.5

3 months ago

1.12.4

3 months ago

1.13.2

3 months ago

1.13.1

3 months ago

1.13.0

3 months ago

1.12.3

4 months ago

1.12.2

4 months ago

1.12.1

7 months ago

1.12.0

7 months ago

1.10.6

8 months ago

1.11.3

7 months ago

1.11.2

8 months ago

1.11.1

8 months ago

1.10.5

1 year ago

1.10.3

1 year ago

1.9.1

1 year ago

1.8.2

1 year ago

1.7.3

1 year ago

1.5.5

1 year ago

1.9.0

1 year ago

1.8.1

1 year ago

1.7.2

1 year ago

1.5.4

1 year ago

1.8.0

1 year ago

1.7.1

1 year ago

1.5.3

1 year ago

1.7.0

1 year ago

1.5.2

1 year ago

1.6.0

1 year ago

1.5.1

1 year ago

1.7.6

1 year ago

1.5.8

1 year ago

1.8.4

1 year ago

1.5.7

1 year ago

1.8.3

1 year ago

1.7.4

1 year ago

1.5.6

1 year ago

1.10.1

1 year ago

1.2.0

2 years ago

1.1.1

2 years ago

1.4.3

1 year ago

1.4.2

1 year ago

1.5.0

1 year ago

1.4.1

1 year ago

1.4.0

1 year ago

1.3.0

1 year ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.41

2 years ago

1.0.4

2 years ago

1.0.31

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago