The forum

World of Tanks HD

Author Replies
beli3ver Sunday 28 February 2016 at 18:43
beli3verAnonymous

Hello,

I create the following script to install World of Tanks with the HD Client:

#!/bin/bash

# Date : (2016-02-25)
# Distribution used to test : Ubuntu 15.10
# Author : beli3ver
# Licence : GPLv3
# PlayOnLinux:  playonlinux-4.2.10
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="World Of Tanks HD"
PREFIX="WorldOfTanks HD"
WORKING_WINE_VERSION="1.7.44"
PUBLISHER="BigWorld Technology"
GAME_URL="http://worldoftanks.com/"
AUTHOR="beli3ver"
GAME_VMS="1024"
 
# Setup

POL_GetSetupImages
POL_SetupWindow_Init

POL_SetupWindow_SetID
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "$PUBLISHER" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
#Select which version
POL_SetupWindow_menu "$(eval_gettext 'Which region version of World of Tanks would you like to install? Note: Korea not supported on this installation.')" "$TITLE" "North America~Europe~Russia~Asia" "~"
[ "$APP_ANSWER" = "North America" ] && REGION="na"
[ "$APP_ANSWER" = "Europe" ] && REGION="eu"
[ "$APP_ANSWER" = "Russia" ] && REGION="ru"
[ "$APP_ANSWER" = "Asia" ] && REGION="asia"
 
# Download
POL_System_TmpCreate "$PREFIX"
cd "$POL_System_TmpDir"
POL_Download "http://redirect.wargaming.net/WoT/latest_web_install_$REGION"
POL_System_SetArch "amd64"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

# Components
POL_Call POL_Install_corefonts
POL_Call POL_Install_dxfullsetup
POL_Call POL_Install_tahoma
POL_Call POL_Install_tahoma2
POL_Call POL_Install_vcrun2013
POL_Call POL_Install_wine64b
POL_Call POL_Install_wininet
 
# Asking about memory size of graphic card
POL_SetupWindow_VMS "$GAME_VMS"

# Set to Windows 7
Set_OS "win7"
 
#Installation
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$POL_System_TmpDir/latest_web_install_$REGION"
 
# After installation, the patcher will be started asynchronously
# Kill it, we must disable Torrent download
wineserver -k
 
# Create Shortcuts
POL_Shortcut "WOTLauncher.exe" "$TITLE"
 
# Turn off Torrent updates
POL_Shortcut_InsertBeforeWine "$TITLE" 'sed -i.bak -e "s@<launcher_transport>3</launcher_transport>@<launcher_transport>2</launcher_transport>@" "$WINEPREFIX/drive_c/Games/World_of_Tanks/WoTLauncher.cfg"'

POL_System_TmpDelete
 
POL_SetupWindow_Close

exit 0
iHusky02 Thursday 17 November 2016 at 15:18
iHusky02Anonymous

How to use this script?

lukwa Sunday 1 January 2017 at 14:09
lukwaAnonymous

iHusky02 - Tools>local script

 

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com