Jump to content
Sign in to follow this  
Binary

Launching mods on Linux server

Recommended Posts

Simple question - as topic says.. How do i include a mod in the arma2server file on a Linux server ??

Share this post


Link to post
Share on other sites

Hmm.. Still can't get it to work..

The -mod=@blabla should that be in the arma2server file or launched as a parameter ??

Share this post


Link to post
Share on other sites
The -mod=@blabla should that be in the arma2server file or launched as a parameter ??

edited into the arma2server near the bottom of the script where you see the comment

# launch the server...
           cd ${ARMA_DIR}
           echo >>${LOGFILE} "WATCHDOG ($$): [$(date)] Starting server (port ${PORT})..."
           [color="Red"]${SERVER} >>${LOGFILE} 2>&1 -server -cfg=${CFG} -config=${CONFIG} -port=${PORT} -pid=${PIDFILE} -name=${NAME} -profile=${PROFILE} [b]-mod=${MOD}[/color][/b]

You can then edit arma2server script variables near the top of the script, the MOD= line (highlighted in red below) is where you can specify the directory names where the addons you want to load are contained.

eg.

#=======================================================================
#========               CONFIGURATION PARAMETERS                ========
#======== MUST BE EDITED MANUALLY TO FIT YOUR SYSTEM PARAMETERS ========
#=======================================================================
ARMA_DIR=.
CFG=arma2.cfg
CONFIG=server.cfg
PORT=2302
PIDFILE=${ARMA_DIR}/${PORT}.pid
RUNFILE=${ARMA_DIR}/${PORT}.run
LOGFILE=${ARMA_DIR}/log.${PORT}.txt
SERVER=${ARMA_DIR}/server
PROFILE=${ARMA_DIR}/orc/orc.arma2profile
NAME=orc
[b][color="Red"]MOD=ace\;acex\;cba\;acex_pla[/color][/b]
#======================================================================

ace, acex, cba, acex_pla all being addon directories within your root /arma2/ directory where your arma2server script is also located.

eg.

/arma2/ace/addons/*.pbo

Edited by Bob.Dob

Share this post


Link to post
Share on other sites

Thank you for that awesome post Bob Dob - It's working now :)

Share this post


Link to post
Share on other sites
Thank you for that awesome post Bob Dob - It's working now :)

Good to hear B!

Share this post


Link to post
Share on other sites

Just a note, if you are attempting to use mods in subfolders / subdirectories on a Linux server, you need to use a backslash in the path (even though Linux uses forward slashes) AND you need to "escape" that backslash with another backslash. You also need to "escape" the semicolon with a backslash... so basically lots of backslashes.

For instance, if you wanted to start the server with the following mods:

@mymod
@foo\@bar

...then the modified line in the "arma2server" file would look like:

$MOD=@mymod\;@foo\\@bar\;

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×