Giter Site home page Giter Site logo

screepsmod-history's Introduction

screepsmod-history

This is a history mod for the Screeps Private Server

JavaScript Style Guide CircleCI

NPM info

Requirements

  • nodejs 10+
  • Plenty of disk space, I see an average of 8kb per tick per room, by default this saves 200,000 ticks. So ~20MB per active room.

Warning

Currently with AWS mode this produces a lot of PUT requests, this can easily become very expensive. For that reason, AWS mode is currently not recommended

Configuration

All options and defaults are listed below

History

  • historyChunkSize: 100 (Number of ticks per history file)
  • mode: sqlite (valid values are file, aws, and sqlite)
  • region: us-east-1
  • apiVersion: latest
  • accessKeyId:
  • secretAccessKey:
  • bucket:
  • path: history

Examples

Config can be applied in several ways:

.screepsrc

Add to the bottom of your .screepsrc file

[history]
historyChunkSize = 100
mode = 'aws'
region = 'us-east-1'
apiVersion = 'latest'
accessKeyId = 'my-aws-access-key-id'
secretAccessKey = 'my-aws-secret-access-key'
bucket = 'my-bucket'
path = 'my-custom-path'

ENV Method

Please note that this method only works when launching modules directly or with screeps-launcher, when launched via the default launcher they will be ignored.

HISTORY_MODE='aws'

screepsmod-history's People

Contributors

alinanova21 avatar nafets-st avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.