Screeps server Manager for Linux



  • Hi.

    This is a project i've made this weekend on my free time and i wanted to share it to everyone who have access to the private servers.
    This is a one file script to create and install a Screeps server quickly and without headache. ^^

    This file have been tested on Debian 8 Jessie (64 bits)

    https://github.com/iKlem/linux-screeps-server-manager

    Everything is explained but if i missed something tell me and i'll updated it.

    Thanks again for akuukis & coteyr for sharing their lines of scripts.


  • Culture

    A note, the greenworks rebuild is no longer needed, the server doesn't use it unless started via steam client



  • This script launch the server with the "node ../../screeps.js start" so without the steam client.
    But if you have a start script/lines to do without the greenwork i can add it to the script with the actual behavior.


  • Culture

    No extra config needed, you still need STEAM_KEY, but it never tries loading greenworks when launched via start.js.
    The rebuild instructions we all have still had it from the original releases where it was needed.



  • hi,

    I am working on an Ubuntu 16.04.1 Server. Here are a few additional dependencies that I had to install:

    make, g++

     

    Also there seems to be a trailing comma in your package.json, line 6



  • I am installing on Ubuntu 16.04.1

    I am able to successfully run ./screepsserver install-deps, however, when I run ./screepsserver i, I get 'Error:Installation aborted' as soon as I answer y for the installation directory.

    Ideas?

    I have tried as root and as a normal user elevating.



  • Yes, i've seen it and i'll fix it for the next update. You have to press "enter" to install ^^



  • Thanks iKlem.  I feel stupid for not trying that. 

    Everything works fine after hitting enter. 



  • This is also my fault, i forgot to update this part



  • How long does it normally take to generate the package.json? I'm pretty sure i have all and it still tries to generate some.

     

    Because its at 

    ├─┬ Checking for package.json file
    │ ├─── Warning: The package.json file is missing!
    │ ├─── Generating package.json file with default options...

     

    and nothing happens, no new files only the node-modules folder is created.



  • Normally it take few seconds. But why it keep trying generating a package ? What command did you launch and in what order ?



  • Tried ./screepsserver install, asked me for the location and said the node-modules were missing. After it nothing happens.

     

    Using Debian and all dependencies installed.

    Distributor ID: Debian
    Description: Debian GNU/Linux testing (stretch)
    Release: testing
    Codename: stretch



  • Can you delete the "node_modules" and retry ?
    And what's your distribution ?



  • Already deleted it several times but there is nothing in it.

     

    Using Debian and all dependencies installed.

    Distributor ID: Debian
    Description: Debian GNU/Linux testing (stretch)
    Release: testing
    Codename: stretch

     

    What i also dont understand is why it checks for the package.json in the root folder.



  • What's your Node version ?



  • Got it to work. Seems like Node really was to low. Anyway thanks for the help, script is fully working ^^



  • No problem and nice to see it works 😄