PS Changelog build 30


  • Dev Team

    • Changed mods loading system. Now all active mods should be listed in the mods/mods.json file. You can specify any path relative to its folder in the mods array there:
    {
      "mods": [
        "examples/change-constant.js",
        "examples/cli-method.js",
        "examples/cronjob.js",
        "examples/driver-method.js",
        "examples/http-endpoint.js",
        "examples/notifications-mailer/notifications-mailer.js",
        "examples/player-sandbox.js",
        "examples/process-object.js",
        "examples/room-history.js",
        "examples/tick-duration.js"
      ]
    }
    • If the mod is published to the NPM repository, you can run npm install my-screeps-mod in the mods folder, and it will be added automatically. The mod’s package.json should contain "screeps_mod": true parameter in this case:
    {
      "name": "my-screeps-mod",
      "version": "1.0.0",
      "main": "my-screeps-mod.js",
      "screeps_mod": true
    }
    • Added new command node modules/launcher/bin/screeps init, that creates new Screeps world data in the specified folder (current working directory by default).