#!/bin/bash
[
"$PLAYONLINUX"
=
""
] &&
exit
source
"$PLAYONLINUX/lib/sources"
TITLE=
"坦克世界"
PREFIX=
"wot_chn"
WORKING_WINE_VERSION=
"1.7.22"
PUBLISHER=
"BigWorld Technology"
AUTHOR=
"tim110011"
SHORTCUT_NAME=
"坦克世界"
GAME_VMS=
"256"
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation
"$TITLE"
"$PUBLISHER"
"$GAME_URL"
"$AUTHOR"
"$PREFIX"
POL_Wine_SelectPrefix
"$PREFIX"
POL_Wine_PrefixCreate
"$WORKING_WINE_VERSION"
POL_Call
POL_Install_vcrun2008
POL_Call
POL_Install_d3dx9_36
POL_Call
POL_Install_d3dcompiler_43
POL_Call
POL_Install_dxdiag
POL_Call
POL_Install_dxfullsetup
POL_Call
POL_Install_corefonts
POL_Call
POL_Install_msxml3
POL_Call
POL_Install_wininet
POL_Call
POL_Install_ie8
POL_SetupWindow_VMS
"$GAME_VMS"
POL_SetupWindow_message
"$(eval_gettext 'Attention:\n\n DO NOT RUN GAME ON A WINDOWS PARTITION\n\n to use an existing game client on LINUX,\n please choose "
Use Steam Store version
" in the next setp.')"
"$TITLE"
POL_SetupWindow_InstallMethod
"DOWNLOAD,LOCAL,STEAM"
if
[
"$INSTALL_METHOD"
=
"DOWNLOAD"
]
then
if
true
then
POL_SetupWindow_message
"$(eval_gettext 'DOWNLOAD SCRIPT DISABLED\n\n Please download ALL install files manually, then re-run this script, choose "
Use a setup
file
in
my computer
" to launch the installer.')"
"$TITLE"
else
INSTALLER=
"WoT.0.9.1_cn_setup.9143161.exe"
INSTALLER_MD5=
"0555659cc9bc93444d8ae587b84075ad"
FILE1=
"WoT.0.9.1_cn_setup.9143161-1.bin"
FILE1_MD5=
"635288452b8f5800737becee2005159c"
FILE2=
"WoT.0.9.1_cn_setup.9143161-2.bin"
FILE2_MD5=
"8be9848e25ad9b52dd6afa9e74e881a9"
FILE3=
"WoT.0.9.1_cn_setup.9143161-3.bin"
FILE3_MD5=
"8c990d7b3aea148df633e3c7b1050d57"
FILE4=
"WoT.0.9.1_cn_setup.9143161-4.bin"
FILE4_MD5=
"a64c51fbbc17324664d43a9d02d5ccdb"
FILE5=
"WoT.0.9.1_cn_setup.9143161-5.bin"
FILE5_MD5=
"99a2940a7f1309b026855699a9174208"
POL_Download
"$SERVER1$INSTALLER"
"INSTALLER_MD5"
POL_Download
"$SERVER1$FILE1"
"FILE1_MD5"
POL_Download
"$SERVER1$FILE2"
"FILE2_MD5"
POL_Download
"$SERVER1$FILE3"
"FILE3_MD5"
POL_Download
"$SERVER1$FILE4"
"FILE4_MD5"
POL_Download
"$SERVER1$FILE5"
"FILE5_MD5"
POL_SetupWindow_message
"$(eval_gettext 'Attention:After installation is complete, the patcher will load. After, go to the top right of the patcher and click the wrench, Then Un-check the box for "
Allow Torrent
", if this is not done the patcher will crash after 1 minuite. When finished with this, please close the patcher before logging in or finish updating to complete the installation. After this, you can run "
$TITLE
" when setup is done')"
"$TITLE"
POL_Wine
start
/unix
"$INSTALLER"
POL_Wine_WaitExit
"$TITLE"
fi
elif
[
"$INSTALL_METHOD"
=
"LOCAL"
]
then
POL_SetupWindow_message
"DO NOT RUN INSTALLER ON A WINDOWS PARTITION"
"$TITLE"
POL_SetupWindow_browse
"Select WoT.0.9.x_cn_setup.xxxxxxx.exe"
"$TITLE"
POL_SetupWindow_message
"$(eval_gettext 'Attention:After installation is complete, the patcher will load. After, go to the top right of the patcher and click the wrench, Then Un-check the box for "
Allow Torrent
", if this is not done the patcher will crash after 1 minuite. When finished with this, please close the patcher before logging in or finish updating to complete the installation. After this, you can run "
$TITLE
" when setup is done')"
"$TITLE"
POL_Wine
start
/unix
"$APP_ANSWER"
POL_Wine_WaitExit
"$TITLE"
elif
[
"$INSTALL_METHOD"
=
"STEAM"
]
then
POL_SetupWindow_message
"DO NOT RUN GAME ON A WINDOWS PARTITION"
"$TITLE"
POL_SetupWindow_browse
"Select WOTLauncher.exe"
"$TITLE"
LAUNCHER_DIR=$(
dirname
"$APP_ANSWER"
)
cd
"$WINEPREFIX/drive_c"
ln
-s
"$LAUNCHER_DIR"
POL_Wine
start
/unix
"$APP_ANSWER"
fi
POL_Shortcut
"WOTLauncher.exe"
"$SHORTCUT_NAME"
POL_SetupWindow_Close
exit