mirror of
https://github.com/ChocoTaco1/docker-tribesnext-server.git
synced 2026-02-13 03:33:34 +00:00
Native linux merge
This commit is contained in:
parent
cb2a715e07
commit
9cf759d0ac
13 changed files with 132 additions and 271 deletions
|
|
@ -1,18 +1,24 @@
|
|||
#!/bin/bash
|
||||
|
||||
export WINEPREFIX=/home/gameserv/.wine32
|
||||
export WINEARCH=win32
|
||||
BASEDIR=$WINEPREFIX/drive_c/Dynamix/Tribes2/GameData
|
||||
BASE_DIR=/home/gameserv/.loki/tribes2/
|
||||
|
||||
echo "Update Admin & Server Prefs..."
|
||||
/tmp/tribes2/cfg-admin-prefs
|
||||
echo "Finished!"
|
||||
|
||||
find ${BASEDIR} -name \*.dso -execdir /bin/rm {} \;
|
||||
cd ${BASE_DIR}
|
||||
|
||||
cd $WINEPREFIX/drive_c/Dynamix/Tribes2/GameData
|
||||
echo "Generating alphabetized AutoExec script index..."
|
||||
/tmp/tribes2/gen_autoexec_index "${BASE_DIR}Classic/scripts"
|
||||
echo "Finished!"
|
||||
|
||||
wine --version
|
||||
echo "Removing .dso files"
|
||||
find ${BASE_DIR} -name \*.dso -execdir /bin/rm {} \;
|
||||
|
||||
echo "Running the Tribes 2 server"
|
||||
xvfb-run -a -w 5 wine Tribes2d.exe -nologin -dedicated -mod Classic
|
||||
chmod +x ${BASE_DIR}tribes2d-lan.dynamic
|
||||
|
||||
# -- debug -- keep container running and dont launch the server
|
||||
#tail -f /dev/null
|
||||
|
||||
/tmp/tribes2/tn_heartbeat & taskset -c 0 ./tribes2d-lan.dynamic 28000 -nologin -dedicated -mod Classic
|
||||
Loading…
Add table
Add a link
Reference in a new issue