Forum Jump :

Author Message


Posts: 20251
Rank:


Level: Super Admin

Country: nl
Location: The Netherlands
Occupation:
Age: 41
In-game name: Foxhound

 
#1 Posted at 2013-03-10 14:08        
     
Want to know more about Server bandwidth & Optimisation?
Than have a look at this thread: [Tutorial] Server bandwidth & Optimisation

CONTENTS
  • Setting up your server
    • What you need
    • how you do it
  • Links
    • Information
    • useful Tools
    • Useful Addons
  • Selecting between Stable & Dev Builds
  • Server Admin Commands
  • Running multiple servers on one machine
  • Location of files
  • Re-locating MpMissions
  • Port Forwarding
  • Trouble Shooting & Help
    • Best way to use this thread
    • Live chat help
    • What cannot be done
    • Known Issues
  • Example files
    • Arma3Alpha.cfg
    • Arma3Alpha.cfg
    • .Arma3AlphaProfile
  • Advanced configuration
    • -profiles
    • AutoServer_Restart.bat File
    • Firedeamon
  • Changelog
This tutorial was originally intended for setting up a server using the client arma3.exe and -server command line paramneter.
Since then, the ArmA3server.exe has been released, the tutorial has now been reworked to reflect that and only appertains to the useage of the ArmA3server.exe
The tutorial is intended for the lowest level of knowledge and skill, I make no apologies to those who think it is patronising. if you do, why are you reading a tutorial :j:

Updated Monday 27th May up to and including
This post





SETTING UP YOUR SERVER

What you need
  • 1 Standalone Windows server (2008 or later) (Sound and GPU not required)
  • 1 Steam Account
  • Ownership of ArmA3
  • According to this THIS POST you can run the ArmA3server on Win2003 now
This is how you do it.

Take note.
There are additions within these instructions that you may not need, if you only intend running 1 instance of an Arma3 server on your machine
However, adding these superfluous commands and content will not be detrimental to single instance servers
Directory paths are all customisable but for the sake of this tutorial, all file examples and command lines used will be consistent with the tutorial instructions
  • Login as Administrator:
  • Install the latest version of DirectX
  • Create the following empty directories
    • D:\Apps\Steam
    • D:\Games\ArmA3\A3Master
    • D:\Games\ArmA3\A3Files
  • Download steamcmd.exe and save it to your targetted Steam install directory (E.g D:\Apps\Steam)
  • Run the steamcmd.exe. (This will download and install the required steam files to your custom steam directory)
  • Create an ArmA3_Steam_updater.cmd file, (Example shown below) and save it to D:\Games\ArmA3\A3Files
  • Run the ArmA3_Steam_updater.cmd file
  • Just after logging into Steam, the console window will hang and ask for a validation key
  • Steam will have automatically sent you an email with this validation code, which you then need to input at the command prompt
  • The Update console window should then continue to run and install ArmA3 ((DEV or STABLE) version to the target directory as defined in the .cmd file) eg (D:\Games\ArmA3\A3Master)
  • Create a shortcut for the ArmA3Server.exe on the server desktop
  • Add the following parameters to the Target Line in the shortcut tab of the newly created desktop shortcut
    • -port=2302 (Required if running multiple server instances)
    • "-profiles=d:\Games\Arma3\A3Master"
    • -config=CONFIG_Vanilla.cfg
    • -world=empty
    • so it looks something similar to the following
      "D:\Games\Arma3\A3Master\arma3server.exe" "-profiles=d:\Games\Arma3\A3Master" -port=2302 -config=CONFIG_Vanilla.cfg -world=empty
  • Add firewall rules for the UDP ports (See below for -Port information)
  • Create a simple Notepad document called "CONFIG_vanilla.cfg" and save it to the root folder of your ArmA3 install on the server D:\Games\ArmA3\A3Master (See below for ".cfg" content)
  • Then start up your shortcut, check the server runs. (You will see a console pop up in your desktop after a few seconds)
  • Close the console window down, then you will need to edit the following files which will have been created
    • D:\Games\Arma3\A3Master\Users\Adminstrator\Administrator.Arma3AlphaProfile
    • D:\Games\Arma3\A3Master\Users\Administrator\Arma3Alpha.cfg
    • (See below for example files)
  • Restart the server
  • Start up your client Arma3 (Running the same branch as the server, (eg Stable or DEV) and you should then be able to see your server in the server browser (Filters are available to reduce the server list)
  • Login to your server using the password you defined in CONFIG_Vanilla.cfg by typing "/" to open the chat window and then type (#login ADMINPASSWORD followed by enter
  • Once logged in you will be presented with a mission list, select one of the missions to start the game
  • Prove the stability of your server by running BIS missions initially before you start adding user made content



SUPPORTING INFORMATION

USEFUL LINKS

INFORMATION
USEFUL TOOLS
Arma-Server-Monitor
Firedeamon
Arma 3 Restarter.exe server monitor
***ArmA3 server using TA2DST Method A U-tube video tutorial by Kirkwood364 which uses Tophe's Arma 2 Dedicated Server Tool to administer and run an A3 server
(Links for all the files required are available in the 1st comment of his Utube video)

USEFUL ADDONS
Zeu_ServerSkill
DETAILED INFORMATION
This addon, installed serverside only, allows redefining skill setting on both the server (and remotely to the clients). This fixes the issue of not being able to reset Skill and precision settings and makes the AI less lethal

Zeu_ServerBriefing
DETAILED INFORMATION
This addon, installed serverside only, injects an additional section to the clients briefing. You can edit the userconfig file to state exactly what information you want in this section.
Typical useage
  • Your teamspeak details
  • Your web address
  • Server rules
TICKETS RAISED that need your Vote_
0009221
0009383
0009381
0009111
0009106




SELECTING DEVELOPMENT OR STABLE BUILD

Edit the ArmA3_Steam_Updater.cmd and run it
To select Development version
  • SET A3BRANCH=107410 -beta development
To roll back to stable build
  • SET A3BRANCH=107410 -beta
Important Feature since 12th March 2013
the development branch and the stable branch versions are no longer compatible. this means:
  • Only DEV clients can connect to a DEV server
  • Only Stable clients can connect to stable servers



SERVER ADMIN COMMANDS

(Known to work, (highlighted in Green))
Not working: (Highlighted in red)
Untested (Highlighted in black)

reference: In Game Admin commands

SERVER MANAGEMENT
  • #login < password > : Admin login
  • #logout : Admin logout
    #lock : Lock server (Auto unlocks at end of mission)
    #unlock : Unlocks server
    #missions : Stops mission, reloads mission list
    #reassign : Moves all players from their unit selection slots back into the lobby
    #restart : returns the mission to the unit selection screen, with all players in their slots ansd restarts the mission
    #shutdown: shuts the server down
    #Init : Reloads file defined by -config command line parameter

PLAYER MANAGEMENT
  • #userlist : Displays the list of users on the server (use pgup to scroll up)
  • #kick < Server Player ID > (First entry for a player using #userlist)
    #kick < nickName > (Second entry for a player using #userlist
    #kick < Player UID > (Third entry for a player using #userlist)

    #exec kick < Server Player ID > (First entry for a player using #userlist)
    #exec kick < nickName > (Second entry for a player using #userlist
    #exec kick < Player UID > (Third entry for a player using #userlist)

    #exec ban < Server Player ID > (First entry for a player using #userlist)
    #exec ban < nickName > (Second entry for a player using #userlist
    #exec ban < Player UID > (Third entry for a player using #userlist)

DEBUGGING
  • #monitor 10 : Activates the server monitor which reports Bandwidth and memory useage Every * seconds via chat window)
  • #monitor 0 : Deactivates the server monitor
    #debug off : Deactivates debugging
    #debug 30 : Debug reporting interval (Default is 10 seconds
    #debug von
    #debug console
    #debug checkFile expansion\Dta\ui.pbo
    #debug userSent <username>
    #debug userInfo <username>
    #debug userQueue <username>
    #debug JIPQueue <username>
    #debug totalSent 10



RUNNING MULTIPLE SERVERS ON SAME MACHINE

This is possible and there are a few methods to accomplish this.
Each server instance requires
  • Its own unique set of ports
  • Its own profile
  • Its own config
This POST explains it more in depth

In addition each method has some pro's and cons
To select the preferred methodology that suits your requirements you need to have considered the following
  • The useage of the "Keys" folder
  • The useage of the "MpMissions" folder
  • Available Hard drive space
  • Update management
METHOD 1

see THIS POST for more detailed information

This is copy of the master install into a different directory
As may times as you have space for
Pros
  • Most robust
  • Unique MpMissions folder
  • Unique "keys" folder
  • Allows ability to run seperate instances of different branches of the game, (E.g Dev or Stable)
Cons
  • Uses more drive space
  • requires more effort to create and automate the updating process
METHOD 2

This uses 1 master install folder and has renamed arma3server.exe's in sub folders of the master
see THIS POST for more detailed information

Pros Comparison to Method 1
  • Uses less space than Method 1
  • Updating will be easier
Cons Comparison to Method 1
  • Not very Robust
  • Shares MpMissions folders with all the other exe's (Will create a very cluttered MpMissions folder and allows admins to select addon required missions for a mod this server instance isn't running
  • Shares "keys" folder with all other exe's (This can cause an issue when running various differing -mod servers)
  • Will not allow you to run seperate instances of different branches of the game
METHOD 3

This is a hybrid of method 1, in that it is essentially a "Virtual" copy of the master install in a different directory
the difference being that many folders are sim linked to the initial Master directory

Pros Comparison to Method 1
  • Uses less drive space (As you wont have multiple copies of the addons folder)
  • Allows for unique MpMissions folder if desired
  • Allows for unique "keys" folder if desired
  • Updating will be easier
Cons Comparison to Method 1
  • Requires more effort to initially create the simlinks and directories
  • Will not allow you to run seperate instances of different branches of the game at the same time, (E.g Dev or Stable)
METHOD 4

You could of course mix n match all 3 methods to suit your specific requirements




LOCATION OF FILES (When setting parameters)

Just to clarify here is an example file structure and location of files if you set certain parameters

Command line entry: -profiles

NOTE: If running Firedeamon, the user will be "SYSTEM", for most other scenarios it will be "Administrator"
The below example is for Firedeamon.
Files automatically created during exe.start if they don't already exist are highlighted in Blue

"-profiles=d:\Games\Arma3\A3Master"

d:\Games\Arma3\A3Master\Users\SYSTEM\SYSTEM.Arma3AlphaProfile
d:\Games\Arma3\A3Master\Users\SYSTEM\SYSTEM.vars.Arma3AlphaProfile
d:\Games\Arma3\A3Master\Users\SYSTEM\Arma3Alpha.cfg
d:\Games\Arma3\A3Master\MPMissions\ ? Think this was auto created can't remember
d:\Games\Arma3\A3Master\arma3.rpt

Command line entry: -config

if you then add a -config parameter as in the example below, you will need to manually create the file and edit it accordingly

Using this example will look for the file in the root directory of the virtual server it is for
-config=CONFIG_Vanilla.cfg

You can also use a full path and place it wherever you want
-config=d:\Games\Arma3\A3Master\CONFIG_Vanilla.cfg

In the "CONFIG_Vanilla.cfg, if you add the line
logFile = "A3Master.log"; 
The logfile will automatically be created as

d:\Games\Arma3\A3Master\A3Master.log

Command line entry: -netlog
This will automatically create the following file
d:\Games\Arma3\A3Master\mpStatistics.log



RE-LOCATING MPmIssions (For example to a dropbox)

To define a different location for your MpMissions, such as a drop box location, carry out the following steps.
  • Either Move your MpMissions to its new location or just delete it. (Don't leave a copy in the original location)
  • run cmd tool on your server to create the link, use "" around the directories
  • example mklink /J "D:\Games\Arma3\A3Master\mpmissions" "C:\Users\user\Desktop\Dropbox\mpmissions"

Credits to



PORT FORWARDING (ArmA3) (Firewalls)

ArmA3 uses the same default ports as ArmA2 with the addition of 2 steam ports. So if you intend running A2 and A3 servers on the same machine, you need to edit the ports used
Default ports are all UDP and as follows
  • 2302 (Arma3 Game port)
  • 2303 (Server reporting)
  • 2305 (Von)
  • 8766 (Steam port)
  • 27016 (Steam query port)

To define the ArmA3 Game port used,
state -port= **** in your command line arguments (Where *** is the new initial ArmA3 Game eg 2302)

and to define your Steam ports
add the following lines to your CONFIG_Vanilla.cfg (editing the actual port numbers as required)
// STEAM
steamport=8766;
steamqueryport=27016;

If you are running multiple servers, i would suggest the following format

SERVER 1
  • 2300 UDP (steamport)
  • 2301 UDP (Steam query port)
  • 2302 UDP (used for game)
  • 2303 UDP (used for server reporting)
  • 2304 UDP (? no information available for this port useage)
  • 2305 UDP (used for VoN transmissions)
so open ports 2300-2305
and leave at least 10 ports between the next server set

SERVER 2
  • 2320 UDP (steamport)
  • 2321 UDP (Steam query port)
  • 2322 UDP (used for game)
  • 2323 UDP (used for server reporting)
  • 2324 UDP (? no information available for this port useage)
  • 2325 UDP (used for VoN transmissions)
so open ports 2320-2325
leave at least 10 ports then repeat the process for No3 server etc



F.A.Q

coming soon



TROUBLE SHOOTING

Best way to use this thread
  • For any initial query Read through this first post (It is updated with posted content every few days)
  • If your query is not answered here, then follow the "Updated to this post" link at the top of this post and read on from there
  • If that does not answer your query, then you may need to read through the entire thread, I may have missed something important. if I have let me know.
  • If you still have no answer then post on the thread and we will try and get a solution
  • You could also join the Server Admins Skype group channel, where you will get live help
IMPORTANT To help others please post back any solutions you find. Not all server admins are highly trained IT Technicians (Including me)

LIVE Chat help
For Live help, join the Skype group channel
#Dwarden all server hosters, we have Skype channel for collaborative work of server admins, add me on Skype and demand access, slap me on IRC, try hit me over email or so ... thanks

What cannot be done
  • ArmA3 -server on Win 2003 0/s Apparently you can now, see THIS POST
  • BattleEye/Rcon is not currently supported
  • Skillenemy/Friendly PrecisionEnemy / Friendly values when changed seem to have no effect. (Server side addon available to fix this)
  • ****.ArmA3Alphaprofile defining...... difficulty="*****"; or difficultyMP="*****";eg "Veteran" has no effect, all missions will run in regular mode unless manually redefined in mission selection screen

**********************************

Known Issues
  • My server has 2500ms ping in server browser (This is caused by running the steam client as Non Administrator) see http://feedback.arma3.com/view.php?id=9374
  • Server keeps crashing
  • Reports from Admins who have been running OFP/ArmA series servers for some time suggests that the A3 -servers are remarkably stable for such an early stage AlphA.
    Therefore the most likely reason for consistent crashes would be
    We are also in an ALPHA, so it is to be expected
    • Use of 3rd party content, eg user made missions or addons
    • Server not capable of handling the resources required, badly configured or underpowered
  • DirectX
    • Windows Web Server 2008 - Error message: arma3.exe - Entry Point Not Found.The procedure entry point CreateDXGIFactory1 could not be located in the dynamic link library dxgi.dll.
    • Reporting Post Solution Post
      Bug Tracker Ticket

      • Windows 2008 server with this issue, the following may resolve it
      • Nobody has yet reported being able to run a -server with 2003
      #noseekThis problem has been solved
      Our server original operating system: Windows Server 2008 Enterprise (Simplified Chinese) SP1

      Run steam and ArmA 3 Alpha occur same error message: ...CreateDXGIFactory1 could not be located in the dynamic link library dxgi.dll...

      First, download and install directx_11_redist,the problem persists

      Then upgrade Windows Server to SP2, still error... :cryy:

      Last, download and install Windows6.0-KB971512-x86,the problem is solved!:yay:

      For reference

  • ArmA2 and ArmA3 servers conflict if they use the same ports. on the same machine.
  • It can cause one of the servers to use a different port automatically which will not have been defined in your firewall outbound rules and therefore not visible to the outside world
    this is easily remedied by stating a different port number in your startup params, eg -port=2312 (Leave at least 10 ports between servers)
    So your target line would then look something like

    "D:\Games\ArmA3\A3Master\arma3server.exe" -port = 2312 -config=CONFIG_Vanilla.cfg




EXAMPLE FILES

Arma3_Steam_Updater.cmd
@echo off
SETLOCAL ENABLEDELAYEDEXPANSION

       :: DEFINE the following variables where applicable to your install

    SET STEAMLOGIN=mylogin mypassword
    SET A3BRANCH=107410 -beta development
        :: For stable use 107410 -beta
        :: For Dev use 107410 -beta development
                :: Note, the missing qotation marks, these need to be wrapped around the entire "+app_data......"

    SET A3Path=D:\Games\A3Master
        SET STEAMPATH=D:\apps\Steam


:: _________________________________________________________

echo.
echo     You are about to update ArmA3
echo        Dir: %A3Path%
echo        Branch: %A3BRANCH%
echo.
echo     Key "ENTER" yo procede
pause
%STEAMPATH%\steamcmd.exe +login %STEAMLOGIN% +force_install_dir %A3Path% +"app_update %A3BRANCH%" validate +quit
echo .
echo     Your ArmA3 is now up to date
echo     key "ENTER" to exit
pause



CONFIG_Vanilla.cfg
//
// server.cfg
//
// comments are written with "//" in front of them.

// STEAM

steamport        =2300;
steamqueryport        =2301;

// GLOBAL SETTINGS

hostname        = "My Server:    My Teamspeak address";        // The name of the server that shall be displayed in the public server list
//password         = "ServerAccessPassword";            // Password for joining, eg connecting to the server
passwordAdmin         = "AdminPassword";                // Password to become server admin. When you're in Arma MP and connected to the server, type '#login xyz'
reportingIP         = "arma3pc.master.gamespy.com";            // This is the default setting. Leave empty for private servers if you do not want your server listed publicly
logFile            = "A3Master.log";
verifySignatures     = 2;

// WELCOME MESSAGE ("message of the day")
// It can be several lines, separated by comma
// Empty messages "" will not be displayed at all but are only for increasing the interval

motd[] = {
        "",
        "",
    "",
    ""__________     SYSTEM MESSAGES __________",
    "Welcome to My  Server",
    "IMPORTANT   Verify Signatures is enabled",
    "",
    "TS3 Server:     teamspeak.mydomain.com",
    "Web:            www.mywebsite.com",
    "TS3 Server:     teamspeak.zeus-community.net",    "",
    "__________     END OF MESSAGE __________",
    ""
};
motdInterval = 5;            // Time interval (in seconds) between each message



// JOINING RULES
maxPlayers        = 40;        // Maximum amount of players. Civilians and watchers, beholder, bystanders and so on also count as player.
// VOTING
voteMissionPlayers    = 1;        // Tells the server how many people must connect so that it displays the mission selection screen.
voteThreshold        = 0.33;        // 33% or more players need to vote for something, for example an admin or a new map, to become effective
//voteMissionPlayers    = 0;

// INGAME SETTINGS
disableVoN        = 0;        // If set to 1, Voice over Net will not be available
vonCodecQuality     = 8;        // Quality from 1 to 10
persistent        = 1;        // If 1, missions still run on even after the last player disconnected.

// MISSIONS CYCLE (see below)
class Missions
{
          class Mission1
         {
              template="co_xx_mymission.stratis";
              difficulty="Regular";
          };
};

**********************************


****.Arma3AlphaProfile

edit to suit
version=2;
viewDistance=3000;
preferredObjectViewDistance=3000;
terrainGrid=12.5;
activeKeys[]=
{
};


class Difficulties
{
    class recruit
    {
        class Flags
        {
            Armor=1;
            FriendlyTag=0;
            EnemyTag=0;
            MineTag=1;
            HUD=1;
            HUDPerm=1;
            HUDWp=1;
            HUDWpPerm=1;
            HUDGroupInfo=1;
            AutoSpot=1;
            Map=1;
            WeaponCursor=1;
            AutoGuideAT=1;
            ClockIndicator=1;
            3rdPersonView=1;
            UltraAI=0;
            CameraShake=0;
            UnlimitedSaves=1;
            DeathMessages=1;
            NetStats=1;
            VonID=1;
            ExtendetInfoType=1;
        };
        skillFriendly=0.6;
        skillEnemy=0.6;
        precisionFriendly=0.28;
        precisionEnemy=0.28;
    };
    class regular
    {
        class Flags
        {
            Armor=1;
            FriendlyTag=1;
            EnemyTag=0;
            MineTag=1;
            HUD=1;
            HUDPerm=1;
            HUDWp=1;
            HUDWpPerm=1;
            HUDGroupInfo=1;
            AutoSpot=1;
            Map=1;
            WeaponCursor=1;
            AutoGuideAT=1;
            ClockIndicator=1;
            3rdPersonView=1;
            UltraAI=0;
            CameraShake=1;
            UnlimitedSaves=1;
            DeathMessages=1;
            NetStats=1;
            VonID=1;
            ExtendetInfoType=1;
        };
        skillFriendly=0.6;
        skillEnemy=0.6;
        precisionFriendly=0.28;
        precisionEnemy=0.28;
    };
    class veteran
    {
        class Flags
        {
            Armor=0;
            FriendlyTag=0;
            EnemyTag=0;
            MineTag=1;
            HUD=1;
            HUDWp=1;
            HUDWpPerm=1;
            HUDGroupInfo=1;
            AutoSpot=0;
            WeaponCursor=0;
            ClockIndicator=1;
            3rdPersonView=1;
            UltraAI=0;
            CameraShake=0;
            DeathMessages=0;
            NetStats=1;
            VonID=1;
            ExtendetInfoType=0;
        };
        skillFriendly=0.6;
        skillEnemy=0.6;
        precisionFriendly=0.28;
        precisionEnemy=0.28;
    };
    class mercenary
    {
        class Flags
        {
            HUD=1;
            AutoSpot=0;
            WeaponCursor=0;
            DeathMessages=0;
            NetStats=1;
            VonID=1;
        };
        skillFriendly=0.6;
        skillEnemy=0.6;
        precisionFriendly=0.28;
        precisionEnemy=0.28;
    };
};

difficulty="veteran";

**********************************

Arma3Alpha.cfg
language="English";
adapter=-1;
MinBandwidth=800000;
MaxBandwidth=25000000;
MaxMsgSend=384;
MaxSizeGuaranteed=512;
MaxSizeNonguaranteed=256;
MinErrorToSend=0.003;
MaxCustomFileSize=100000;
Windowed=0;
serverLongitude=0;
serverLatitude=52;
serverLongitudeAuto=0;
serverLatitudeAuto=52;




ADVANCED CONFIGURATION

-Profiles

-Profiles is used to load and save files to a different directory to that of the initial root install
This would be used when you want to run a "copy" of the initial ArmA2 install as it will load configs and Mpmissions in that "Copied" folder
This is used to run multiple instances of A3 servers on the same machine.


Example -profiles command line entry: "-profiles=d:\Games\ArmA3\A3Master"

**********************************
AUTO SERVER RESTART .BAT File

#eRazeri Here`s a nice little batch file that I created to auto-restart server if it has crashed:

::Made by eRazeri
@echo off
:start
C:\Windows\System32\tasklist /FI "IMAGENAME eq arma3server.exe" 2>NUL | C:\Windows\System32\find /I /N "arma3server.exe">NUL
if "%ERRORLEVEL%"=="0" goto loop
echo Server monitored is not running, will be started now 
start "" /wait "D:\Games\Arma3\A3Master\arma3server.exe" -config=CONFIG_Vanillar.cfg "-profiles=G:Games\ArmA3\A3Master"  -world=empty
echo Server started succesfully
goto started
:loop
cls
echo Server is already running, running monitoring loop
:started
C:\Windows\System32\timeout /t 10
C:\Windows\System32\tasklist /FI "IMAGENAME eq arma3server.exe" 2>NUL | C:\Windows\System32\find /I /N "arma3server.exe">NUL
if "%ERRORLEVEL%"=="0" goto loop
C:\Windows\System32\taskkill /im arma3server.exe
goto start

**********************************

Firedeamon

Programs tab
  • d:\Games\Arma3\A3Master\Arma3server.exe
  • Working Directory: d:\Games\Arma3\A3Master
  • Parameters: -port=2302 "-profiles=d:\Games\Arma3\A3Master" -config=Config_Vanilla.cfg -world=empty

Auto Restart Script, although firedeamon will do this for you if configured correctly

#almaxkiller Ok I got Firedeamon working where it will automatically restart the server if it closes.
First:
Create a batch file and name it "arma3servercheck.bat" using notepad or notepad+.
Place the following in it:
@echo off
tasklist | findstr /i arma3server.exe
if %errorlevel% neq 0 goto restart
goto end
:restart
start "" "server.bat"
:end
exit


Then create your "server.bat" file using the launch parameters of your choosing.
Example (this is what we are using to run our ARMA 3 Wasteland server):

NOTE: Both of these files MUST be saved in the same location as your ARMA3server.exe, otherwise you need to change the file directory to "arma3server.exe" in each. Also note that if you are using this process you should have exit on the last line of the server.bat otherwise you will come back to a messy server with a lot of cmd windows open (depending on how many times your server shut down).

In FireDeamon create a service with the arma3servercheck.bat file and have it have a start-up time of 60000ms and a pre-launch delay of 60000ms. Also in the "Upon Program Exit:" Have it set to Restart the Program at 60000ms. All of those settings are overkill I am sure, but it makes it were every minute the process runs to see if arma3server.exe is running, and if not starts it up. Hope this helps some people, and if anybody comes up with a better solution please let me know!



CHANGELOG


Version 1.01
  • Added info about defining a different port if running an A2 and an A3 server on the same machine
  • Added "Known Issues about Windows 2003 server and Direct X (No solution as yet)
  • Added links to WIKI for folks who were unable to find the obvious information
Version 1.02
  • reformatted , reorganised initial post
  • Added example files
  • Added firedeamon section
  • Added Port forwarding section
  • Added Autorestart section
  • Added Running Client and Server on same machine section
Version 1.03
  • Updated "How To" instructions, added initial start up to be in online mode and run as Administrator
  • Added additional commandline params
  • Added to troubleshooting: Known issues
Version 1.04
  • Added "How to run development version
  • Updated troubleshooting: with fix for DirectX issue
  • Updated troubleshooting: with "How best to use this thread"
Version 1.05
Date: 17th March 2013
  • Added Section: "LOCATION OF FILES (When setting parameters)"
  • Added Section: "RE-LOCATING MPMissions (For example to a dropbox)"
  • Added "VerifySignatures = 2" into config.cfg (My bad, why I forgot to add this I will never know) IMPORTANT Please add to config
Version 1.06
Date: 23rd March 2013
  • Added Section: "Server Admin Commands)"
Version 1.07
Date: 26th May 2013
  • Major rewrite of tutorial modifying for useage of ArmA3server.exe and multiple server instances
  • Added section for Multi Server set up on the same machine
Version 1.08
Date: 27th May 2013
  • Syntax error in the ArmA3_Steam_Updater.cmd
  • changed
        SET A3BRANCH="107410 -beta development"
            :: For stable use "107410 -beta"
            :: For Dev use "107410 -beta development"
    
                    +app_update %A3BRANCH%
    to
        SET A3BRANCH=107410 -beta development
            :: For stable use 107410 -beta
            :: For Dev use 107410 -beta development
                    :: Note, the missing quotation marks, these need to be wrapped around the entire "+app_data......" line
    
            "+app_update %A3BRANCH%"

Version 1.09
Date: 29th May 2013
  • Win2003 can now be used
  • Tidy up of initial thread, no consistency in Directory defintitions


Note:
This is all copied, with his permission, from a post made by Terox on the BI forums.

This post was edited by Foxhound (2013-06-17 10:03, ago)

Visit my family webshop desteigerhoutshop.nl.

Author Message


Posts: 1
Rank:


Country: af
Location: 31°37′N 65°43′E
Occupation:
Age:
In-game name: anderson

 
#2 Posted at 2013-03-26 14:05        
     
**Disclaimer: I run Linux in my household, I have Win7 installed on my game rig, but it is not the primary OS on that system. I wanted to build an A3 dedicated server, because that is just how I am.

So, in case there are people out there that have an Ubuntu (Linux) server and want to get a Windows server running to install Steam and A3, here's how I did it. I don't have a monitor attached to that server, so I had to do a little more work to be able to run it, it all works out in the end.

I have tested this on an Ubuntu 12.04 server (host system) with the IP address 192.168.0.100 where I'm logged in as a normal user.


To install VirtualBox 4.1 on our Ubuntu 12.04 server, we open /etc/apt/sources.list...
sudo nano /etc/apt/sources.list
Add the following line:
deb http://download.virtualbox.org/virtualbox/debian precise contrib


Download the following
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -


sudo apt-get update


Execute this command
sudo apt-get install linux-headers-$(uname -r) build-essential virtualbox-4.1 dkms
(The dkms package ensures that the VirtualBox host kernel modules are properly updated if the Linux kernel version changes.)


Get the extension pack
cd /tmp
wget http://download.virtualbox.org/virtualbox/4.1.18/Oracle_VM_VirtualBox_Extension_Pack-4.1.18-78361.vbox-extpack
sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.1.18-78361.vbox-extpack

(Make sure you grab the latest version from the VirtualBox web site.)


Now we must add the user that will run VirtualBox (administrator in this example) to the vboxusers group:
sudo adduser administrator vboxusers
VirtualBox is now installed and ready to be used.

***Step by step: creating a virtual machine on a headless server***

Note that on the server machine, since we will only use the headless server, neither Qt nor SDL nor the X Window system will be needed.


On the headless server, create a new virtual machine:
VBoxManage createvm --name "A3Server" --ostype WindowsXP --register

Note that if you do not specify --register, you will have to manually use the registervm command later.


Note further that you do not need to specify --ostype, but doing so selects some sane default values for certain VM parameters, for example the RAM size and the type of the virtual network device. To get a complete list of supported operating systems you can use
VBoxManage list ostypes

Make sure the settings for this VM are appropriate for the guest operating system that we will install. For example:
VBoxManage modifyvm "A3Server" --memory 4096 --acpi on --boot1 dvd --nic1 nat

Create a virtual hard disk for the VM (in this case, 100GB in size):
VBoxManage createhd --filename "A3Server.vdi" --size 100000

Add an IDE Controller to the new VM:
VBoxManage storagectl "A3Server" --name "IDE Controller" --add ide --controller PIIX4

Set the VDI file created above as the first virtual hard disk of the new VM:
VBoxManage storageattach "A3Server" --storagectl "IDE Controller" --port 0 --device 0 --type hdd --medium "A3Server.vdi"

Attach the ISO file that contains the operating system installation that you want to install later to the virtual machine, so the machine can boot from it:
VBoxManage storageattach "A3Server" --storagectl "IDE Controller" --port 0 --device 1 --type dvddrive --medium /full/path/to/iso.iso

Start the virtual machine using VBoxHeadless:
VBoxHeadless --startvm "A3Server"

If everything worked, you should see a copyright notice. If, instead, you are returned to the command line, then something went wrong. Here's what mine shows, for an example:
anderson@primus:~$ VBoxHeadless --startvm "A3Server"
Oracle VM VirtualBox Headless Interface 4.1.24
(C) 2008-2012 Oracle Corporation
All rights reserved.


VRDE server is listening on port 3389.

Connect via RDP, install your server OS and then follow the standard guide for installing an A3 dedicated server like the one on the BIS forums


Advertisement


Author Message


Posts: 4
Rank:


Level: Member

Country: uk
Location:
Occupation:
Age:
In-game name:

 
#3 Posted at 2013-04-23 06:24        
     
I have a question regarding the server.cfg
What does the following commands really do in terms of server performance?



language="English"; (Ok I get this one)
adapter=-1; (I run without this fine, What bennifit is there form having it?)
MinBandwidth=800000; (Min ammount I can expect from my server I got this set to 20mbps)
MaxBandwidth=25000000; (Max ammount I got this set to 100mbps The max my server is rated for)
MaxMsgSend=384; (I know this links to the max ammount of messages the game can send in any refresh cycle, but what does increasing/de-creasing this have on server performance?)
MaxSizeGuaranteed=512; (I have seen threads that claim its best to increase to 1024, or to only drop to 124)
MaxSizeNonguaranteed=256; (This I have been told can be set to nothing less than 64 or it counts the packet as fragmented and causes problems with the server. And that a lower number on this one would be better but how low? There are other threads that say this is connected to the MaxSizeGuaranteed and should be set at aprox 50% of its value)
MinErrorToSend=0.003; (The lower the number the smoother things look through scopes or binoculars, But how low should this be set before it causes lag)
MaxCustomFileSize=100000; (This preset to 160kb and is obsolite and could be removed. ARAM 3 is hard coded to not allow any custom files larger than 50kb. I know because I have 8/9 of my .ogg files working, the only one that does not is exactly 51kb in size. The rest are 49kb and under)
Windowed=0;
serverLongitude=0;
serverLatitude=52;
serverLongitudeAuto=0;
serverLatitudeAuto=52; (these are just for the server location so i dont need to change them)

I have read up on many forums about these settings, not one has given a proper description of what each of these does, how it relates to the other functions and what effect they have on a running server. I have seen many people ask this exact question, and either no-body knows, or they are keeping it a guarded secret.


Author Message


Posts: 13
Rank:


Level: Member

Country: ca
Location:
Occupation:
Age:
In-game name:

 
#4 Posted at 2013-07-26 06:32        
     
I've seen this on the BI forums. Can anyone please help me with my server. I purchased one from FPSplayers.com And I'm just getting them to add some mods (A day later.) And there telling me certain mods aren't able to be added because they neeed more files and shit. What does that mean!!! what files. And I dont wanna play vanilla ArmA 3 because;

a) Deleting my mods would be annoying
b) Stock weapons suck ass!

How am I able to play on other servers with my mods and it work find. No errors! Can someone please help me.


Author Message


Posts: 20251
Rank:


Level: Super Admin

Country: nl
Location: The Netherlands
Occupation:
Age: 41
In-game name: Foxhound

 
#5 Posted at 2013-07-26 06:43        
     
If your serverhost can not even install the mods you want maybe you should choose a different host?
If you have root access to your server you can maybe install the mods yourself?

Visit my family webshop desteigerhoutshop.nl.

Author Message


Posts: 1
Rank:


Level: Member

Country: de
Location:
Occupation:
Age:
In-game name:

 
#6 Posted at 2013-09-03 05:47        
     
Hey guys.

I have a question regarding saving the progress of a warfare mission. A friend of mine is hosting a dedicted server for a few of our friends on a seperate computer. When we stop playing he is generally shutting down his computer, because he doesn't want to let it run 24/7 just to keep the progress that we made. Is there any way to save the progress on his machine, so that when he reboots the server he can load it back up?

My guess after googleing a bit would be 'no', but I just wanted to ask, just to be sure.

Thanks.


Author Message


Posts: 1
Rank:


Level: Member

Country: it
Location: somewhere in the Alps
Occupation:
Age:
In-game name: CypeRevenge

 
#7 Posted at 2013-11-21 08:21        
     
a simple noob question?
i can only update the server with the ArmA3_Steam_updater.cmd (i have the same, sample here in post) ?
or I need to change something in the updater.cmd ?


Author Message

tupec  



Posts: 1
Rank:


Level: Member

Country: uk
Location:
Occupation:
Age:
In-game name:

 
#8 Posted at 2015-02-04 21:57        
     
So guys i'm a new gamer to arma and i really get tired when i'm gaming what sort of gaming desks are available to help me game with more comfort?


Author Message


Posts: 20251
Rank:


Level: Super Admin

Country: nl
Location: The Netherlands
Occupation:
Age: 41
In-game name: Foxhound

 
#9 Posted at 2015-02-04 23:34        
     
@tupec
Hows that related to how to run an Arma 3 server?

Instead, post here:
Arma 3 system requirements / upgrades / performance improvements


Update:

The info is outdated and since people (who have no idea how to properly post on a forum) keep digging this up with unrelated questions it is time to lock it and let it slip into the darkness of forgotten....

This post was edited by Foxhound (2016-11-19 10:33, 334 days ago)

Visit my family webshop desteigerhoutshop.nl.




This topic is locked, new posts are not allowed.