Binary 0 Posted February 8, 2010 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
Pulverizer 1 Posted February 8, 2010 arma2server '-mod=@lol;@wtf' Share this post Link to post Share on other sites
Binary 0 Posted February 8, 2010 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
Defunkt 431 Posted February 8, 2010 Have a look at the shell script in THIS post. Share this post Link to post Share on other sites
Bob.Dob 0 Posted February 9, 2010 (edited) 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 February 9, 2010 by Bob.Dob Share this post Link to post Share on other sites
Binary 0 Posted February 9, 2010 Thank you for that awesome post Bob Dob - It's working now :) Share this post Link to post Share on other sites
Bob.Dob 0 Posted February 12, 2010 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
1longtime 10 Posted March 6, 2010 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