screepers / screeps-server-mockup

Private server package for unit tests
MIT License
56 stars 13 forks source link

[Critical] Fixed addBot to activate the room the Bot is assigned #36

Closed brisberg closed 4 years ago

brisberg commented 4 years ago

Fixes a critical, current issue with the latest Screeps implementation.

Screeps now requires rooms to be specifically added to an environment variable before they will be run and process by the engine.

See: https://github.com/screeps/backend-local/blob/master/lib/cli/bots.js#L123


Additionally, users need to have a user badge in the database or the private server can stop working. It was causing some instability recently. We should bring the addBot code up to spec with screeps/backend.


Server options was not initializing modpath. I think that was my bad since some time ago. My local server was complaining about not finding the mods file.