Jump to content

NoPlanB

Member
  • Content Count

    9
  • Joined

  • Last visited

  • Medals

Community Reputation

10 Good

About NoPlanB

  • Rank
    Private
  1. Blue1 is going to stop all his activities related to A3 :-( http://forums.bistudio.com/showthread.php?163685-Another-one-is-leaving-Arma3
  2. No problem. I have updated it to the latest version.
  3. Hi @ALL, I have written a small bash script to make things easier (quick & dirty) #!/bin/bash ##################################################################### # # ARMA 3 SERVER -WINE- # ##################################################################### # # AUTHOR : TeddyTornado aka NoPlanB (noplanb@gmx.de) # DATE : 29.08.2013 # VERSION : 0.03a # # OPTION: # start --> Start server # startvnc --> Start server with VNC interface # stop --> Stop server # restart --> Restart server # steamvnc --> Start Steam with VNC interface # # NOTES: # - Do not close SSH connection while connected via VNC! # - BattlEye does not work with WINE! # ##################################################################### # General script configuration WORKDIR="/home/arma3" LOGFILE="arma3wine.log" PIDFILE="arma3wine.pid" # X-Server configuration XSERVER="/usr/bin/Xvfb" XSERVER_DISPLAY=":99" XSERVER_ARGS="$XSERVER_DISPLAY -screen 0 1024x768x16 -ac" # X11VNC Server configuration VNCSERVER="/usr/bin/x11vnc" VNCSERVER_ARGS="-display $XSERVER_DISPLAY -usepw" # WINE configuration WINE="/usr/bin/wine" # Steam configuration STEAM_FOLDER="/home/arma3/.wine/drive_c/Program Files/Steam" STEAM_ARGS="steam.exe -no-dwrite" # BattlEye configuration BE_FOLDER="/home/arma3/.wine/drive_c/Program Files/Steam/SteamApps/common/Arma 3/BattlEye" # ARMA 3 configuration ARMA_FOLDER="/home/arma3/.wine/drive_c/Program Files/Steam/SteamApps/common/Arma 3" ARMA_ARGS="arma3server.exe -no-dwrite -port=2302 -config=a3-gc-server.cfg -cfg=a3-gc-basic.cfg -netlog" ARMA_LOG="/home/arma3/.wine/drive_c/Program Files/Steam/SteamApps/common/Arma 3/net.log" # Internal error messages ERROR01="ERROR: Don't be an idiot and start with user ROOT" ERROR02="ERROR: X-Server is not installed or executable" ERROR03="ERROR: Wine is not installed or executable" ERROR04="ERROR: Working directory is not writeable" ERROR05="ERROR: Arma folder doesn't exist" ERROR06="ERROR: VNC-Server is not installed or executable" ERROR07="ERROR: Steam folder does not exist" ERROR08="ERROR: Server is still running" ERROR09="ERROR: BattlEye folder does not exit" # Internal vars servervnc="false" steamvnc="false" function init { if [ `whoami` = "root" ]; then echo $ERROR01 ; exit 0 ; fi test -x "$XSERVER" || { echo $ERROR02 ; exit 0 ; } test -x "$WINE" || { echo $ERROR03 ; exit 0 ; } test -d "$ARMA_FOLDER" || { echo $ERROR05 ; exit 0 ; } test -d "$STEAM_FOLDER" || { echo $ERROR07 ; exit 0 ; } test -x "$LOGFILE" || touch $LOGFILE || { echo $ERROR04 ; exit 0 ; } test -x "$PIDFILE" || touch $PIDFILE || { echo $ERROR04 ; exit 0 ; } test -x "$VNCSERVER" || { echo $ERROE06 ; exit 0 ; } if [ "$BE_FOLDER" != "" ]; then test -d "$BE_FOLDER" || { echo $ERROR09 ; exit 0 ; } fi LOGFILE="$WORKDIR/$LOGFILE" } function start_server { if [ -s $PIDFILE ]; then echo $ERROR08 ; exit 0 ; fi > $LOGFILE ; echo "Cleaning bash log file" if [ "$ARMA_LOG" != "" ]; then > "$ARMA_LOG" echo "Cleaning Arma log file" fi # X-Server echo "Starting X server..." nohup $XSERVER $XSERVER_ARGS 1>>"$LOGFILE" 2>>"$LOGFILE" & echo $! >"$PIDFILE" sleep 4 export DISPLAY="$XSERVER_DISPLAY" # X11VNC Server if [ "$servervnc" == "true" ]; then echo "Starting X11VNC Server..." blackbox 1>>"$LOGFILE" 2>>"$LOGFILE" & $VNCSERVER $VNCSERVER_ARGS 1>>"$LOGFILE" 2>>"$LOGFILE" & sleep 4 fi # Steam if [ "$steamvnc" == "true" ]; then echo "Starting Steam..." cd "$STEAM_FOLDER" $WINE $STEAM_ARGS 1>>"$LOGFILE" 2>>"$LOGFILE" & else # Wine echo "Starting Wine Server..." cd "$ARMA_FOLDER" nohup $WINE $ARMA_ARGS 1>>"$LOGFILE" 2>>"$LOGFILE" & fi echo "Done...Check $LOGFILE for further messages..." } function stop_server { echo -n "Stopping Server..." while read pid; do kill $pid ;done <"$PIDFILE" ; > "$PIDFILE" && echo "OK" } function wrong_input { echo "Usage: $0 {start|startvnc|stop|restart|steamvnc}" exit 1 } # Main Application init case "$1" in start) start_server ;; stop) stop_server ;; restart) stop_server echo "Please wait..." sleep 10 start_server ;; startvnc) servervnc="true" start_server ;; steamvnc) servervnc="true" steamvnc="true" start_server ;; *) wrong_input ;; esac exit 0
  4. NoPlanB

    Dedicated server - status

    No, it just need time to convert the available windows binaries to linux.
  5. ...still open: http://forums.bistudio.com/showthread.php?148288-Dedicated-server-status&p=2474329&viewfull=1#post2474329
  6. NoPlanB

    Dedicated server - status

    From my point of view I can accept WINE as so called "interims solution" but what about Battleye? Today it does not work with WINE afaik. I am surprised no one talks about that fact. Running server without BE? No way...
  7. NoPlanB

    When could we expect ArmA 3 Linux server?

    WINE is for sure possible but BE does not work with it afaik.
  8. NoPlanB

    When could we expect ArmA 3 Linux server?

    Good question. I hope with the final Arma 3 release it will be available, especially including Battleye.
  9. NoPlanB

    AC-130X for Arma 3

    Great mod! Any update planned for the near future?
×