0.0.10 • Published 3 years ago

arma-server v0.0.10

Weekly downloads
17
License
MIT
Repository
github
Last release
3 years ago

arma-server

Node wrapper for starting arma servers

Supported games

  • arma1
  • arma2
  • arma2oa
  • arma3
  • arma3_x64
  • cwa (does not support linux)
  • ofp
  • ofpresistance

CLI

Install the module globally from NPM

npm install arma-server -g

ArmA Headless

arma-headless [options]

Options

-h, --help          output usage information
--filePatching      Enable file patching
--game [value]      Game to launch
--host [value]      Server IP to join
--mods <mods>       Comma separated list of mods
--password [value]  Password required to join server
--path [value]      Path to arma server directory
--port [value]      Server port to join
--type [value]      Type of server, either linux, windows or wine

ArmA Server

arma-server [options]

Options:

-h, --help                   output usage information
--config [value]             Server config name
--disableVoN [value]         Disable VON
--filePatching               Enable file patching
--game [value]               Game to launch
--headlessClients <clients>  Whitelisted IPs for headless clients
--hostname [value]           Name in server list
--localClient <clients>      Whitelisted IPs for local clients
--mods <mods>                Comma separated list of mods
--motd <motd>                Comma separated list of messages to show
--motdInterval [value]       Interval between messages
--password [value]           Password required to join server
--passwordAdmin [value]      Admin password required to join server
--path [value]               Path to arma server directory
--persistent [value]         Run server persistent
--platform [value]           Type of server, either linux, windows or wine
--players [value]            Maximum number of player slots
--serverMods <mods>          Comma separated list of server mods
--verifySignatures [value]   Verifies .pbos against .bisign files

Module

Install the module from NPM

npm install arma-server

Headless

To use the server class var ArmaServer = require('arma-server').Headless;

Options

References,

OptionTypeDefaultDescription
filePatchingbooleangame defaultEnable file patching
gamestring'arma3'Which game engine to use
hoststringgame defaultIP or hostname that client should connect to
modsarray of strings[]Array of mods as strings to use, relative to game folder
parametersarray'-noSound', '-world=empty'Additional parameters that will be passed to the arma executable
passwordstringgame defaultServer password
pathstringcurrent working directoryPath to Arma directory
platformstring'linux' or 'windows' depending on current OS'linux', 'windows' or 'wine' depeding on which to use
portintegergame defaultServer port

Server

To use the server class var ArmaServer = require('arma-server').Server;

Options

References,

Not all options are available yet

Options

OptionTypeDefaultDescription
additionalConfigurationOptionsstringemptyAdditional configuration options as text appended to the configuration file if defined. Make sure to not reuse any other defined configuration options as they will end up twice in the file.
adminsarraygame defaultWhitelist UIDs as admins, array of strings
allowedFilePatchingintegergame defaultAllow clients to use file patching. 0 is disallow, 1 is allow HC, 2 is allow all clients
allowedHTMLLoadExtensionsarray of stringsgame defaultWhitelisted file extensions allowed
allowedLoadFileExtensionsarray of stringsgame defaultWhitelisted file extensions allowed
allowedPreprocessFileExtensionsarray of stringsgame defaultWhitelisted file extensions allowed
battleEyebooleangame defaultShould BattleEye be enabled
configstring'server.config'Name of config file to be saved, stored in configs directory
disableVoNbooleangame defaultShould built in VoN be disabled
doubleIdDetectedstringgame defaultServer side script to execute on duplicate client id
filePatchingbooleangame defaultEnable file patching
forceRotorLibSimulationbooleangame defaultForce rotor simulation from Helicopters DLC
gamestring'arma3'Which game to start
forcedDifficultystringgame defaultSet forced difficulty from matching CfgDifficultyPresets or Custom to use CustomDifficulty. Missions list with defined difficulty overrides this value.
headlessClientsarray of stringsgame defaultWhitelist headless clients, array of IPs as strings
hostnamestringgame defaultName of server
kickDuplicatebooleangame defaultShould duplicate clients be kicked
localClientarray of stringsgame defaultWhitelist local clients, array of IPs as strings
logFilestringgame defaultPath to log file
missionsarraygame defaultArray of missions as object with mission name and difficulty. Params can also be optionally set. See below
modsarray[]Array of mods as strings to use, relative to game folder
motdarray of stringsgame defaultMessages to show as MOTD
motdIntervalintegergame defaultTime between motds
onDifferentDatastringgame defaultServer side script to execute on different data
onHackedDatastringgame defaultServer side script to execute on hacked data
onUnsignedDatastringgame defaultServer side script to execute on unsigned data
onUserConnectedstringgame defaultServer side script to execute on user connected
onUserDisconnectedstringgame defaultServer side script to execute on user disconnected
parametersarray'-noSound', '-world=empty'Additional parameters that will be passed to the arma executable
passwordstringgame defaultServer password
passwordAdminstringgame defaultAdmin password
pathstringcurrent working directoryPath to game folder
persistentbooleangame defaultIf server should run in persistent mode
platformstring'linux' or 'windows' depending on current OS'linux', 'windows' or 'wine' depending on which to use
playersintegergame defaultNumber of player slots
serverModsarray[]Array of server mods as strings to use, relative to game folder
timeStampFormatstringgame defaultLog timestamp format, see references
verifySignaturesintegergame defaultAddons signature verification. Default = 0. Weak = 1. Full = 2. See references
vonCodecQualityintegergame defaultValue of 1 - 20, default is 3. See references
voteMissionPlayersintegergame defaultNumbers of players needed to be connected before mission vote
voteThresholdfloatgame defaultPercentage required to win voting
Missions
KeyTypeDescription
namestringName of mission, could either be filename without pbo suffix or mission name as declared in cfgMissions
difficultystringIn Arma 2 and above, recruit, regular, veteran or mercenary
paramsarrayArray with mission parameters, see below
Mission Parameters
KeyTypeDescription
namestringMission parameter name as declared in the mission
valuenumberMission parameter value
0.0.10

3 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

5 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

9 years ago

0.0.1

9 years ago