Benevolent27 / starmade.js

This is an unfinished server wrapper for StarMade. It is nearly in a basic functional state. The end result will be a highly moddable, feature rich, and well-documented wrapper that runs on any OS Node.js runs on.
http://lvdserver.b33r.us
GNU General Public License v3.0
3 stars 4 forks source link

Add command line operators that can be used when running starmade.js #12

Open Benevolent27 opened 6 years ago

Benevolent27 commented 6 years ago

There should be some startup options for the scripting that allow other functionality, such as: -stop -forcestop -restart When run with a command line argument, it should perform that action on the server. No arguments will be equivalent to "-start". Since this will be a separate process running, it will need to be able to communicate with the main process somehow, so the port listening needs to be set up first before this can happen.

Benevolent27 commented 6 years ago

I've added a few command line operators so far: -forceStart = kills existing running script or StarMade server(s) listed in the server.lck file and then starts as normal -ignoreLockFile = Ignores the existing server.lck file, renaming it to server.lck.bak, and then starts.