Set game type in config file

This commit is contained in:
Björn Dahlgren 2015-04-03 12:23:17 +02:00
parent ae4d326734
commit ad555cb4e5
2 changed files with 5 additions and 0 deletions

View File

@ -1,4 +1,5 @@
module.exports = {
game: 'arma3', // arma3, arma2oa, arma2, arma1, cwa, ofpresistance, ofp
path: 'path-to-arma3-directory',
port: 3000,
type: 'linux', // Can be either linux, windows or wine

View File

@ -5,6 +5,8 @@ var spawn = require('child_process').spawn;
var ArmaServer = require('arma-server');
var config = require('../config.js');
var queryInterval = 5000;
var Server = function (path, type, options) {
@ -56,6 +58,7 @@ Server.prototype.start = function() {
battleEye: this.battle_eye ? 1 : 0,
config: this.id,
disableVoN: this.von ? 0 : 1,
game: config.game,
headlessClients: this.headless ? ["127.0.0.1"] : null,
hostname: this.title,
localClient: this.headless ? ["127.0.0.1"] : null,
@ -98,6 +101,7 @@ Server.prototype.start = function() {
if (this.headless) {
var headless = new ArmaServer.Headless({
game: config.game,
host: "127.0.0.1",
mods: this.mods,
password: this.password,