Jump to content
Sign in to follow this  
1para{god-father}

Can not get Mods working on Dedi

Recommended Posts

I just cannot get any MODS working on our server any help would be most welcome !

The server comes up fine but and I displays the mod line but it just does not seem to load the MOD

#!/bin/bash
#
# armaserver: ArmA 2 Linux Dedicated Server Control Script
#  (c) 2010 BIStudio
#  ArmA 2 binary version must be 1.04 or later
#

#=======================================================================
#========               CONFIGURATION PARAMETERS                ========
#======== MUST BE EDITED MANUALLY TO FIT YOUR SYSTEM PARAMETERS ========
#=======================================================================
ARMA_DIR=/var/www/vhosts/1para.alexjg.co.uk/httpdocs/arma2
CONFIG=//var/www/vhosts/1para.alexjg.co.uk/httpdocs/arma2/server.cfg
PORT=2302
PIDFILE=${ARMA_DIR}/${PORT}.pid
RUNFILE=${ARMA_DIR}/${PORT}.run
LOGFILE=${ARMA_DIR}/log.${PORT}.txt
SERVER=${ARMA_DIR}/server
MOD="@lingor"
OTHERPARAMS=-cpucount=4
#=======================================================================
ulimit -c 1000000

case "$1" in


   start)
if [ -f ${RUNFILE} ]; then
    $0 stop
fi
echo "Starting ArmA 2 server..."
# file to mark we want server running...	
echo "go" >${RUNFILE}
# launch the background watchdog process to run the server
nohup </dev/null >/dev/null $0 watchdog &
;;

   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
fi
;;


   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}"
	echo "MODS    : ${MOD}"	
;;

   restart)
$0 stop
$0 start
       ;;

   watchdog)
# 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} -mod=${MOD}
    if [ -f ${RUNFILE} ]; then
	echo >>${LOGFILE} "WATCHDOG ($$): [$(date)] Server died, waiting to restart..."
	sleep 5s
    else
	echo >>${LOGFILE} "WATCHDOG ($$): [$(date)] Server shutdown intentional, watchdog terminating"
    fi
done    
;;
   *)
echo "$0 (start|stop|restart|status|check)"
;;
esac

log I get

14:36:57 Missing addons detected:
14:36:57   lingor

Edited by psvialli

Share this post


Link to post
Share on other sites

Instead of MOD="@lingor" try MOD=${ARMA_DIR}/modlist.txt whereas modlist.txt is a plain txt file with the mods in form "@cba;@ace;@lingor" without the "" in the file.

If that doesn't work, doublecheck if you have a @lingor directory in your gameserver root directory wich actually also contains that addons folder and all the files. And check if it's readable by the user the server runs under.

Is it a Linux or Windows dedicated?

Share this post


Link to post
Share on other sites

Or...

Use the linux script as intended:

OTHERPARAMS=-cpucount=4

to

OTHERPARAMS=-cpucount=4 -mod=@lingor

or even

OTHERPARAMS='-cpucount=4 -mod=@lingor'

Adding mess to the script, when all the mods can be put on the OTHERPARAMS line, officially irks me to no end. Why bother using the provided script, if yer ganna bloat it with more garbage?

...Syn...

Share this post


Link to post
Share on other sites

... because then you won't need to bother with the script, but can possibly alter the additional modfile trough a webinterface or in any other convenient way. :)

Share this post


Link to post
Share on other sites

Yes it is 100% there called @lingor and have all the stuff needed in the same folder as it was transfrered from my PC and i tested it !

Also tried another Map same result - @hellskitchen works on my PC transfers it all to the server same file structure and when i go into the dedi i see the new map on the list and the mission but when i clcik on the mission nothing. Its like it does not load the MOD ?

And the mission is just a test i.e 1 unit placed down as player

Any Idea ?

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  

×