A lot of updates

Git-clone working
Wine Version options
This commit is contained in:
ChocoTaco 2019-11-28 20:39:10 -05:00
parent b1b04e4af4
commit ebffe80abf
23 changed files with 101 additions and 21 deletions

View file

@ -8,5 +8,4 @@ find ${BASEDIR} -name \*.dso -execdir /bin/rm {} \;
cd $WINEPREFIX/drive_c/Dynamix/Tribes2/GameData
xvfb-run -a -w 5 \
wine Tribes2.exe -dedicated
$WINEVER Tribes2.exe --backend=curses -dedicated -mod Classic 28000

View file

@ -10,7 +10,7 @@ SRVUSER=gameserv
INSBASE=/home/$SRVUSER/.wine/drive_c/Dynamix/
export TMPBASE=/tmp/tribes2
export WINEPREFIX=/home/$SRVUSER/.wine/
export REQUIREMENTS=(wine Xvfb)
export REQUIREMENTS=($WINEVER Xvfb)
# -- server requirements
function check_requirements {
@ -31,7 +31,7 @@ function check_requirements {
function get_files {
if [ ! -f "$TMPBASE/$1" ]
then
/usr/bin/wget --no-check-certificate -q "$2/$1" -O "$TMPBASE/$1"
/usr/bin/wget --no-check-certificate "$2/$1" -O "$TMPBASE/$1"
fi
}
@ -50,9 +50,13 @@ fi
# -- download files
get_files tribes2gsi.exe "https://www.the-construct.net/downloads/tribes2/" "$TMPBASE"
get_files TribesNext_rc2a.exe "https://www.tribesnext.com/files/" "$TMPBASE"
get_files TribesNext_RC2_LinuxVersion.zip "https://lutris.net/files/games/tribes-2/" "$TMPBASE"
get_files tribes2gsi.exe "https://www.the-construct.net/downloads/tribes2/" "$TMPBASE"
get_files TribesNext_rc2a.exe "https://www.tribesnext.com/files/" "$TMPBASE"
get_files ruby-1.9.0-2-i386-mswin32.zip "https://ftp.ruby-lang.org/pub/ruby/binaries/mswin32/unstable" "$TMPBASE"
get_files classic_v152.zip "https://tribes2stats.com/files/mods/" "$TMPBASE"
git clone "https://github.com/ChocoTaco1/TacoServer/" "$TMPBASE/TacoServer"
git clone "https://github.com/ChocoTaco1/TacoMaps/" "$TMPBASE/TacoMaps"
# -- some items require an headerless
export DISPLAY=:99
@ -64,7 +68,8 @@ sleep 1
# -- extract the main installer, the silent installer is a lie!
/usr/bin/wine $TMPBASE/tribes2gsi.exe /x Z:\\tmp\\tribes2\\game
echo "Installing tribes2gsi.exe..."
/usr/bin/$WINEVER $TMPBASE/tribes2gsi.exe /x Z:\\tmp\\tribes2\\game
# -- move all extract files into place
@ -246,10 +251,38 @@ then
fi
# -- install tribesnext silently
[ -f $TMPBASE/TribesNext_rc2a.exe ] && /usr/bin/wine $TMPBASE/TribesNext_rc2a.exe /S
echo "Installing TribesNext_rc2a.exe..."
[ -f $TMPBASE/TribesNext_rc2a.exe ] && /usr/bin/$WINEVER $TMPBASE/TribesNext_rc2a.exe /S
# -- extract updated linux version and replace the existing installation
[ -f $TMPBASE/TribesNext_RC2_LinuxVersion.zip ] && /usr/bin/unzip -o $TMPBASE/TribesNext_RC2_LinuxVersion.zip -d $INSBASE/Tribes2/GameData 2>&1 > /dev/null
# -- update Ruby v1.9.0-2
echo "Installing Ruby Interpreter v1.9.0-2..."
[ -f $TMPBASE/ruby-1.9.0-2-i386-mswin32.zip ] && /usr/bin/unzip -o $TMPBASE/ruby-1.9.0-2-i386-mswin32.zip -d $TMPBASE/ruby 2>&1 > /dev/null
if [ -f $TMPBASE/ruby-1.9.0-2-i386-mswin32.zip ]
then
cp -r $TMPBASE/ruby/bin/msvcrt-ruby190.dll $INSBASE/Tribes2/GameData/msvcrt-ruby190.dll
fi
exit 0
# -- update Classic mod to v1.5.2
echo "Installing Classic mod to v1.5.2..."
[ -f $TMPBASE/classic_v152.zip ] && /usr/bin/unzip -o $TMPBASE/classic_v152.zip -d $TMPBASE/classic 2>&1 > /dev/null
[ -f $TMPBASE/classic/classic_files_v152.zip ] && /usr/bin/unzip -o $TMPBASE/classic/classic_files_v152.zip -d $TMPBASE/classic 2>&1 > /dev/null
# -- move all extract files into place
if [ -f $TMPBASE/classic/classic_files_v152.zip ]
then
# /home/gameserv/.wine/drive_c/Dynamix/Tribes2/GameData/Classic
mv -f $TMPBASE/classic/base/zz_classic_client_v1.vl2 $INSBASE/Tribes2/GameData/base/zz_Classic_client_v1.vl2
cp -r $TMPBASE/classic/classic/. $INSBASE/Tribes2/GameData/Classic/.
fi
# -- install TacoServer
echo "Installing TacoServer..."
cp -r $TMPBASE/TacoServer/Classic/. $INSBASE/Tribes2/GameData/Classic/.
# -- install TacoMaps
echo "Installing TacoMaps..."
mkdir -p $INSBASE/Tribes2/GameData/Classic/Maps
cp -r $TMPBASE/TacoMaps/ $INSBASE/Tribes2/GameData/Classic/Maps/
exit 0