DeathF0X 198 Posted October 10, 2012 Hello Im working since 2 days to start server,now 1 problem left. How to combine A2+OA, i searched with google for hours bur i cant find a good answer. Infos: OA is installed and working alone no problems folder : /home/server2_co after that i copy my whole arma 2 dic in " /home/server2_co/arma2 but i cant find a solution. i really hope someone can help me arma2oaserver #!/bin/bash # # armaserver: ArmA 2 Linux Dedicated Server Control Script # (c) 2010 BIStudio # ArmA 2 binary version must be 1.04 or later # # mod by: Psycho Dad , Date: 2012/08/05 #======================================================================= #======== CONFIGURATION PARAMETERS ======== #======== MUST BE EDITED MANUALLY TO FIT YOUR SYSTEM PARAMETERS ======== #======================================================================= ARMA_DIR=. CONFIG=server.cfg PORT=2305 PIDFILE=${ARMA_DIR}/${PORT}.pid RUNFILE=${ARMA_DIR}/${PORT}.run LOGFILE=${ARMA_DIR}/${PORT}.log SERVER=${ARMA_DIR}/server [color="#FF0000"]OTHERPARAMS="-mod=expansion;ca;arma2\;"[/color] #======================================================================= ulimit -c 1000000 # setup the libraries, local dir first! (add!) export LD_LIBRARY_PATH=".:${ARMA_DIR}/lib32:/usr/lib32:${LD_LIBRARY_PATH}" case "$1" in start) if [ -f ${RUNFILE} ]; then $0 stop fi echo "Starting ArmA 2 server..." # remove core dumps (add!) find ${ARMA_DIR} -name core -type f -print | xargs -r rm -f # file to mark we want server running... echo "go" >${RUNFILE} # launch the background watchdog process to run the server (mod!) nohup </dev/null >/dev/null 2>&1 $0 watchdog-port-${PORT} & ;; stop) echo "Stopping ArmA 2 server..." if [ -f ${RUNFILE} ]; then # ask watcher process to exit by deleting its runfile... rm -f ${RUNFILE} fi # and terminate ArmA 2 server process if [ -f ${PIDFILE} ]; then kill -TERM $(< ${PIDFILE}) if [ -f ${PIDFILE} ]; then rm -f ${PIDFILE} fi sleep 1s fi # kill watchdog (add!) pgrep -U ${UID} -fl watchdog-port-${PORT} | awk '{print $1}' | xargs -r kill -TERM >/dev/null 2>&1 ;; status) if [ -f ${RUNFILE} ]; then echo "Server should be running..." else echo "Server should not be running..." fi if [ -f ${PIDFILE} ]; then PID=$(< ${PIDFILE}) echo "PID file exists (PID=${PID})..." if [ -f /proc/${PID}/cmdline ]; then echo "Server process seems to be running..." fi fi ;; check) echo -n "ArmA 2 directory: ${ARMA_DIR} " if [ -d ${ARMA_DIR} ]; then echo "OK" else echo "MISSING!" fi echo -n "Server executable: ${SERVER} " if [ -x ${SERVER} ]; then echo "OK" else echo "ERROR!" fi echo "Port number: ${PORT}" echo -n "Config file: ${CONFIG} " if [ -f ${CONFIG} ]; then echo "OK" else echo "MISSING!" fi echo "PID file: ${PIDFILE}" echo "RUN file: ${RUNFILE}" ;; restart) echo "Restarting ArmA 2 server..." $0 stop >/dev/null $0 start >/dev/null ;; watchdog-port-${PORT}) # this is a background watchdog process. Do not start directly while [ -f ${RUNFILE} ]; do # launch the server... cd ${ARMA_DIR} echo >>${LOGFILE} "WATCHDOG ($$): [$(date)] Starting server (port ${PORT})..." ${SERVER} >>${LOGFILE} 2>&1 -server -config=${CONFIG} -port=${PORT} -pid=${PIDFILE} ${OTHERPARAMS} if [ -f ${RUNFILE} ]; then echo >>${LOGFILE} "WATCHDOG ($$): [$(date)] Server died, waiting to restart..." sleep 10s else echo >>${LOGFILE} "WATCHDOG ($$): [$(date)] Server shutdown intentional, watchdog terminating" fi done ;; *) echo "$0 (start|stop|restart|status|check)" ;; esac Share this post Link to post Share on other sites
Tom_48_97 523 Posted October 10, 2012 (edited) Question: Why you've got a backslash at the end? Try this: MOD="X;Y;Z" Also, fill ARMA_DIR=/home/server2_co/ I've not yet installed a CO server (will do this week), but where I'm confused is when you install Arma2co client, you install Arma2OA inside the ARMA2 folder, not the inverse... If your first server is on port 2302, you can't use 2305 since it's already used by the first for VON, but just an info, I don't think you've made the error. Edited October 10, 2012 by tom_48_97 spelling Share this post Link to post Share on other sites
DeathF0X 198 Posted October 10, 2012 first i have uploaded oa in this folder,then i created an arma2 in the oa folder and upload arma2 in this folder. You mean i have to install a2 first and then overwrite it with arma2oa ? Share this post Link to post Share on other sites
visceralsyn 10 Posted October 10, 2012 Upload A2, inside the A2 directory create a directory named 'expansion'. Upload the A2OA directories to the expansion directory. Download the A2OA-Beta server, extract the contents to the A2 root directory, run install. You will not need -mod=expansion;ca;arma2\ on OTHERPARAMS line by installing it this way. as for the OTHERPARAMS line, if you use the quotes " ", then you do not need to use the blackslash \, to seperate mods. he can use any port he wants, by default the client runs on 2302. if he has no server running on 2302, he can run one on 2305. ...Syn... Share this post Link to post Share on other sites
DeathF0X 198 Posted October 11, 2012 (edited) upload A2,create expansion,upload a2oa in ex.,now when i the server start he "died" http://pastebin.com/jCS5SMfe expansion folder: arma2oaserver ARMA_DIR=/home/server3_co_ace <--i only used a new folder to test CONFIG=server.cfg PORT=2305 PIDFILE=${ARMA_DIR}/${PORT}.pid RUNFILE=${ARMA_DIR}/${PORT}.run LOGFILE=${ARMA_DIR}/log.${PORT}.txt SERVER=${ARMA_DIR}/server OTHERPARAMS=-cpucount=2 Edited October 11, 2012 by skullfox Share this post Link to post Share on other sites
visceralsyn 10 Posted October 11, 2012 Download the A2OA-Beta server, extract the contents to the A2 root directory, then run the install. That files list, does not show the server binary, so I'm assuming you have not downloaded the latest Linux Server, or run the install script I've got ARMA_DIR=. in my Arma2oaserver script, not the absolute path. ...Syn... Share this post Link to post Share on other sites
DeathF0X 198 Posted October 11, 2012 (edited) i used v1.62.97755 That files list, does not show the server binary Edited October 11, 2012 by skullfox Share this post Link to post Share on other sites
visceralsyn 10 Posted October 11, 2012 Do not run server with the root user account, create a user account, change all file and folder ownership and permissions to that user account. ...Syn... Share this post Link to post Share on other sites
DeathF0X 198 Posted October 11, 2012 i found the solution Yeaa THX for helping me http://forums.bistudio.com/showthread.php?123563-Ubuntu-10-04-amp-ArmA2-OA&p=2002534&viewfull=1#post2002534 => install the whole game (vanilla&OA) on windows => patch the game to what ever (current 1.59) => make a copie from the whole game (backup is good everytime) => create a txt file into the arma folder with "patched 1.59 or whatever" for overview only => structure into the main dir must be: (rest you can delete - not needed on linux) - AddOns - Common - Dta - Expansion *! - Keys - Missions - MPmissions Share this post Link to post Share on other sites