mirror of
https://github.com/Dahlgren/arma-server-web-admin.git
synced 2024-08-30 17:22:10 +00:00
Set game type in config file
This commit is contained in:
parent
ae4d326734
commit
ad555cb4e5
@ -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
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user