Open Saborknight opened 5 years ago
Found a game queryer to solve all our problems: https://www.npmjs.com/package/gamedig This includes not just Arma 3, but also Space Engineers, Teamspeak, Garry's mod, Minecraft, and more, see the games list here: https://www.npmjs.com/package/gamedig#games-list
So, this game query-er doesn't do anything except return information on the game server instance. I should have guessed from the name... Good for the status
command, but that's pretty much it.
Back to Dahlgren!
Updated the feature list of commands
For the servers to run independently of this driver, I need to add a pull request to add
{
detached: true,
stdio: 'ignore'
}
to https://github.com/Dahlgren/node-arma-server/blob/e1f1e75888491c4fcb330f25b61818ae7397609f/src/server.js#L112 and https://github.com/Dahlgren/node-arma-server/blob/e1f1e75888491c4fcb330f25b61818ae7397609f/src/headless.js#L71
Created our fork of arma-server for this: https://github.com/2bnb/node-arma-server
I'm now changing the implementation from Dahlgren's ArmaManager to use the commandlines that FASTER outputs for use with it's profiles and mods.
Dahlgren implemented functionality that allowed easy starting of an arma 3 server (https://github.com/Dahlgren/node-arma-server). He doesn't necessarily allows stopping it, but it is supposed to return the PID of the executable! We can use that to stop and check if the process is running. Otherwise, checking the port listener and then grabbing the PID related there is another option.
Controls to implement:
#restart
add_mod - Adds a mod to the start parameters of a particular serverremove_mod - Removes a mod from the start parameters of a particular serveradd_server_modremove_server_mod