Screeps

Screeps

Not enough ratings
[screepsmod-mongo] MongoDB And Redis for the Screeps Private Server
 
Rate  
Favorite
Favorited
Unfavorite
File Size
Posted
0.000 MB
Oct 1, 2018 @ 10:12am
1 Change Note ( view )

Subscribe to download
[screepsmod-mongo] MongoDB And Redis for the Screeps Private Server

Subscribed
Unsubscribe
Description
This mod replaces the default LokiJS storage engine with a more scalable engine MongoDB.


Installation Windows:
  1. Make sure you backup you DB!
    • Open screeps game folder (Default should be: "C:\Program Files (x86)\Steam\steamapps\common\Screeps\server\")
    • Copy "db.json" and make a backup.
  2. Download and install MongoDB for Windows from here[www.mongodb.com]
    • Make sure to leave the check mark to run MongoD as a Sercice.
  3. Download and install Redis from here[github.com]
    • Make sure to add the check mark to install the path variables.
  4. Done!


Installation Other:
For Ubuntu Based Systems (or to get more infos) follow these instructions: here[docs.screeps.com]
  1. Make sure you backup you DB!
    • Open screeps game folder
    • Copy "db.json" and make a backup.
  2. Download and install MongoDB for Windows from here[www.mongodb.com]
    • Make sure to leave the check mark to run MongoD as a Sercice.
  3. Download and install Redis for Windows from here[redis.io]
    • Make sure to add the check mark to install the path variables.
  4. Done!

Import old DB:
  • 'mongo.importDB("path/to/db.json")' in the screeps cli to import your existing DB.
  • 'system.resetAllData()' in the screeps cli for a completely fresh DB.
restart the server and everything should work.

If things dont work:
  1. Check that MongoD is running
    • Windows: Type 'net start MongoDB' in cmd
    • Other: Type 'mongod --dbpath=path/to/db.json' in shell
  2. Check that redis-server is running
    • Windows: Type 'net start Redis' in cmd
    • Other: Type 'redis-server' in shell
< >
5 Comments
Geir1983 10 hours ago 
This mod (version 1 Oct) is not working with the PowerCreeps, any plans to update it @KonKeyHD?
Dastroyer Apr 13 @ 9:26pm 
I had an issue importing an existing database, some kind of parsing error..I bit the bullet and reset my server as I wasn't terribly far into the simulation, after resetting and starting fresh, it worked beautifully..Playing on local server and followed above instructions exactly
Geir1983 Jan 27 @ 2:15am 
worked great for me, local server and latest version (3.2.0), just followed the steps described above (windows) :steamhappy:
jaycephus Dec 17, 2018 @ 2:09pm 
Does this work with "local server" option?
MrFaul Nov 11, 2018 @ 12:31am 
you should update the mod to the lastest version from args or remove it, right now it doesn't works any more