2bnb / heimdall

Guardian of the realm of memes and autists, lord of Blyat 1. AKA the Discord bot for managing anything dedicated server related.
https://discord.me/2bnb
0 stars 0 forks source link

Integrate arma-manager module #1

Open Saborknight opened 5 years ago

Saborknight commented 5 years ago

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:

Saborknight commented 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

Saborknight commented 4 years ago

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!

Saborknight commented 4 years ago

Updated the feature list of commands

Saborknight commented 4 years ago

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

Saborknight commented 4 years ago

Created our fork of arma-server for this: https://github.com/2bnb/node-arma-server

Saborknight commented 4 years ago

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.