Het forum

[Script] World of Tanks China Server Edition

Auteur Antwoorden
tim110011 Donderdag 17 Juli 2014 om 1:56
tim110011Anonymous

#!/bin/bash
# Date : (2014-07-15)
# Last revision : (2014-07-17 00-01)
# Wine version used : 1.7.22
# Distribution used to test : fedora 20 64
# Author : tim110011
# Licence : GPLv3
# PlayOnLinux: 4.2.4

# CHANGELOG
# [tim110011] (2014-07-15)
#   modified from offical playonlinux scritp by Robbz version (2014-05-08 00-01)

# This script is made for WOT china server players
# installer auto-download function NOT TESTED and is disabled
# use loacl installer method works
# use existing game client method NOT TESTED
# if you do not have the install files or a pre-installed client, please download the install files (10+GB) manually from http://wot.kongzhong.com/erji/ziliao/yxxz.html

[ "$PLAYONLINUX" = "" ] && exit
source "$PLAYONLINUX/lib/sources"

TITLE="坦克世界"
PREFIX="wot_chn"
WORKING_WINE_VERSION="1.7.22"
PUBLISHER="BigWorld Technology"
GAME_URL="http://wot.kongzhong.com/"
AUTHOR="tim110011"
SHORTCUT_NAME="坦克世界"
GAME_VMS="256" # http://wot.kongzhong.com/erji/ziliao/yxxz.html

# Setup
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
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"

# Components
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

# Asking about memory size of graphic card
POL_SetupWindow_VMS "$GAME_VMS"

#Select install method ( DOWNLOAD : download installer only ; LOCAL : run local installer ; STEAM : run local game client )
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  # set to true : Disable install file auto-download function
  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"
  POL_Browser "http://wot.kongzhong.com/erji/ziliao/yxxz.html"
  else
    # 0.9.1 cn FULL install packs
    SERVER1="http://wotdn.kongzhong.com/official/"
    # SERVER2="http://wotdn1.kongzhong.com/official/"
    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

 

tim110011 Maandag 4 Augustus 2014 om 14:38
tim110011Anonymous

 

#!/bin/bash
# this file is encoded with UTF-8

# Date : (2014-07-15)
# Last revision : (2014-08-04)
# Wine version used : 1.7.22
# Distribution used to test : fedora 20 64
# Author : tim110011
# Licence : GPLv3
# PlayOnLinux: 4.2.4

# THIS SCRIPT IS MADE FOR WORLD OF TANKS CHINA SERVER PLAYERS

# CHANGELOG
# [tim110011] (2014-07-15)
#   modified from offical scritp by Robbz version (2014-05-08)
# [tim110011] (2014-08-04)
#   modified "Components" according to offical scritp by Robbz version (2014-07-25)[Ground0]
#   rewrite most code

[ "$PLAYONLINUX" = "" ] && exit
source "$PLAYONLINUX/lib/sources"

TITLE="坦克世界-test"
PREFIX="wot_cn-test"
WORKING_WINE_VERSION="1.7.22"
PUBLISHER="BigWorld Technology"
GAME_URL="http://wot.kongzhong.com/"
AUTHOR="tim110011"
EXE_NAME="WOTLauncher.exe"
SHORTCUT_NAME="坦克世界-test"
GAME_VMS="256"

# Setup

POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "$PUBLISHER" "$GAME_URL" "$AUTHOR" "$PREFIX"

check_one "libtxc_dxtn" "libtxc_dxtn"
POL_SetupWindow_missing

# Ask player if he has installer
POL_SetupWindow_question "$(eval_gettext 'Attention:\n\n\n  1. Use existing installer please select YES.\n\n  2. Use existing game client please select YES,\nthen choose "Use Steam Store version" in the next step,\nthis will MOVE your existing game client to new wine prefix.\n\n  3. Otherwise please select NO to open installer download page,\ndownload ALL installer files MANUALLY then re-run this script.\n\n')" "USE EXISTING FILES?"
if [ "$APP_ANSWER" = "FALSE" ]
then
    POL_Wine_WaitBefore "$TITLE"
    POL_Browser "http://wot.kongzhong.com/erji/ziliao/yxxz.html"
    POL_Wine_WaitExit "$TITLE"
    POL_SetupWindow_Close
    exit
fi

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" # assign a version to avoid potential **** stack smashing detected *** error

# Components
POL_Call POL_Install_ie8

# Asking about memory size of graphic card
POL_SetupWindow_VMS "$GAME_VMS"

# Choose install method
POL_SetupWindow_InstallMethod "LOCAL,STEAM"
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
    POL_SetupWindow_browse "Select WoT.x.x.x_cn_setup.xxxxxxx.exe" "$TITLE"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine start /unix "$APP_ANSWER"
    POL_Wine_WaitExit "$TITLE"
elif [ "$INSTALL_METHOD" = "STEAM" ]
then
    POL_SetupWindow_browse "Select $EXE_NAME" "MOVE game to new wine prefix"
    EXE_DIR=$(dirname "$APP_ANSWER")
    mv "$EXE_DIR" "$WINEPREFIX/drive_c/"
    cd "$WINEPREFIX/drive_c/"
fi
POL_Shortcut "$EXE_NAME" "$SHORTCUT_NAME"

POL_SetupWindow_message "$(eval_gettext 'Suggestion:\n\n\n 1. Un-check the box for "Allow Torrent" in launcher option to avoid potential launcher crash.\n\n 2. if you experience graphic issue, try disable "triple buffer" option by edit preferences.xml MANUALLY, this file usuall locate in "c:/users/USERNAME/Application Data/Wargaming.net/WorldOfTanks/"')" "Thank you for using my $SHORTCUT_NAME install script! --$AUTHOR"

POL_SetupWindow_Close
exit
tim110011 Dinsdag 5 Augustus 2014 om 6:31
tim110011Anonymous

#!/bin/bash
# this file is encoded with UTF-8

# Date : (2014-07-15)
# Last revision : (2014-08-05)
# Wine version used : 1.7.22
# Distribution used to test : fedora 20 64
# Author : tim110011
# Licence : GPLv3
# PlayOnLinux: 4.2.4

# THIS SCRIPT IS MADE FOR WORLD OF TANKS CHINA SERVER PLAYERS

# CHANGELOG
# [tim110011] (2014-07-15)
#   modified from offical scritp by Robbz version (2014-05-08)
# [tim110011] (2014-08-04)
#   modified "Components" according to offical scritp by Robbz version (2014-07-25)[Ground0]
#   rewrite most code
# [tim110011] (2014-08-05)
#   minor text correction

[ "$PLAYONLINUX" = "" ] && exit
source "$PLAYONLINUX/lib/sources"

TITLE="坦克世界"
PREFIX="wot_cn"
WORKING_WINE_VERSION="1.7.22"
PUBLISHER="BigWorld Technology"
GAME_URL="http://wot.kongzhong.com/"
AUTHOR="tim110011"
EXE_NAME="WOTLauncher.exe"
SHORTCUT_NAME="坦克世界"
GAME_VMS="256"

# Setup

POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "$PUBLISHER" "$GAME_URL" "$AUTHOR" "$PREFIX"

check_one "libtxc_dxtn" "libtxc_dxtn"
POL_SetupWindow_missing

# Ask player if he has installer
POL_SetupWindow_question "$(eval_gettext 'Attention:\n\n\n  1. Use existing installer please select YES.\n\n  2. Use existing game client please select YES,\nthen choose "Use Steam Store version" in the next step,\nthis will MOVE your existing game client to new wine prefix.\n\n  3. Otherwise please select NO to open installer download page,\ndownload ALL installer files MANUALLY then re-run this script.\n\n')" "USE EXISTING FILES?"
if [ "$APP_ANSWER" = "FALSE" ]
then
    POL_Wine_WaitBefore "$TITLE"
    POL_Browser "http://wot.kongzhong.com/erji/ziliao/yxxz.html"
    POL_Wine_WaitExit "$TITLE"
    POL_SetupWindow_Close
    exit
fi

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" # assign a version to avoid potential **** stack smashing detected *** error

# Components
POL_Call POL_Install_ie8

# Asking about memory size of graphic card
POL_SetupWindow_VMS "$GAME_VMS"

# Choose install method
POL_SetupWindow_InstallMethod "LOCAL,STEAM"
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
    POL_SetupWindow_browse "Select WoT.x.x.x_cn_setup.xxxxxxx.exe" "$TITLE"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine start /unix "$APP_ANSWER"
    POL_Wine_WaitExit "$TITLE"
elif [ "$INSTALL_METHOD" = "STEAM" ]
then
    POL_SetupWindow_browse "Select $EXE_NAME" "MOVE game to new wine prefix"
    EXE_DIR=$(dirname "$APP_ANSWER")
    mv "$EXE_DIR" "$WINEPREFIX/drive_c/"
    cd "$WINEPREFIX/drive_c/"
fi
POL_Shortcut "$EXE_NAME" "$SHORTCUT_NAME"

POL_SetupWindow_message "$(eval_gettext 'Suggestion:\n\n\n 1. if you experience launcher crash, try un-check the box for "Allow Torrent" in launcher option.\n\n 2. if you experience graphic issue, try disable "triple buffer" option by edit preferences.xml MANUALLY, this file usually locate in "c:/users/USERNAME/Application Data/Wargaming.net/WorldOfTanks/"\n\n 3. if yu experience high CPU usage try terminate awesomium_process.exe or rename it to awesomium_process.exe.bak, this file usually locate in "c:/Games/World_of_Tanks/res/awesomium/", however this will disable "hotspot".')" "Thank you for using my $SHORTCUT_NAME install script! \n               --$AUTHOR"

POL_SetupWindow_Close
exit

 

tim110011 Vrijdag 5 September 2014 om 13:49
tim110011Anonymous

do not copy directly ,line75-79 should begin with [tab], not four [space]
#!/bin/bash
# This is a utf-8 file
# You should see an o with two dots over it here [ö]
# You should see a micro (u with a tail) here [µ]
# You should see a trademark symbol here [™]

# Date : (2014-07-15)
# Last revision : (2014-09-05)
# Wine version used : 1.7.24 (PlayOnLinux)
# Distribution used to test : fedora 20 64bit
# Author : tim110011
# Licence : GPLv3

# THIS SCRIPT IS MADE FOR WORLD OF TANKS CHINA SERVER PLAYERS

# CHANGELOG
# [tim110011] (2014-07-15)
#   modified from offical scritp by Robbz version (2014-05-08)
# [tim110011] (2014-08-04)
#   "Not needed installations removed" -- from offical scritp by Robbz version (2014-07-25)[Ground0]
#   rewrite most code
# [tim110011] (2014-08-05)
#   minor text correction
# [tim110011] (2014-09-05)
#   added d3dx9_36
#   added fake SimSun fonts
#   use native dll: msvcp110 msvcr110
#   updated to wine 1.7.24

[ "$PLAYONLINUX" = "" ] && exit
source "$PLAYONLINUX/lib/sources"

TITLE="坦克世界"
PREFIX="wot_cn"
WORKING_WINE_VERSION="1.7.24"
PUBLISHER="BigWorld Technology"
GAME_URL="http://wot.kongzhong.com/"
AUTHOR="tim110011"
SETUP_EXE="WoT.x.x.x_cn_setup.xxxxxxx.exe"
GAME_EXE="wotLauncher.exe"
SHORTCUT_NAME="坦克世界"
GAME_VMS="256"
    # fake fonts
FONT_ALIAS="SimSun"
FONT_NAME="WenQuanYi Micro Hei"
FONT_FAKE="/usr/share/fonts/wqy-microhei/wqy-microhei.ttc"

POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "$PUBLISHER" "$GAME_URL" "$AUTHOR" "$PREFIX"

# Ask player for installer
POL_SetupWindow_question "$(eval_gettext 'Attention:\n\n\n  1. Use existing installer please select YES.\n\n  2. Use existing game client please select YES,\nthen choose "Use Steam Store version" in the next step,\nthis will MOVE your game to new wine prefix.\n\n  3. Otherwise please select NO to open installer download page,\ndownload ALL installer files MANUALLY then re-run this script.\n\n')" "USE EXISTING FILES?"
if [ "$APP_ANSWER" = "FALSE" ]
then
    POL_Wine_WaitBefore "$TITLE"
    POL_Browser "http://wot.kongzhong.com/erji/ziliao/yxxz.html"
    POL_Wine_WaitExit "$TITLE"
    POL_SetupWindow_Close
    exit
fi

# configuration
check_one "libtxc_dxtn" "libtxc_dxtn"
POL_SetupWindow_missing
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" # assign a version to avoid potential **** stack smashing detected *** error
    # install fake font
if [ -e "$FONT_FAKE" ]
then
    cp "$FONT_FAKE" "$WINEPREFIX/drive_c/windows/Fonts/"
    cat <<- _EOF_ > "$POL_USER_ROOT/tmp/fakefonts.reg"
    REGEDIT4

    [HKEY_CURRENT_USER\Software\Wine\Fonts\Replacements]
    "$FONT_ALIAS"="$FONT_NAME"
    _EOF_
POL_Wine regedit "$POL_USER_ROOT/tmp/fakefonts.reg"
rm "$POL_USER_ROOT/tmp/fakefonts.reg"
fi

POL_Call POL_Install_d3dx9_36
POL_Call POL_Install_ie8 # devenum, dsound, dxdiag, IE8, mfc42 ; choose one to install winxp sp3
Set_OS "winxp" "sp3"
POL_Wine_OverrideDLL "native,builtin" "msvcp110"
POL_Wine_OverrideDLL "native,builtin" "msvcr110"
POL_SetupWindow_VMS "$GAME_VMS"

# install
POL_SetupWindow_InstallMethod "LOCAL,STEAM"
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
    POL_SetupWindow_browse "Select $SETUP_EXE" "$TITLE"
    POL_Wine start /unix "$APP_ANSWER"
    POL_Wine_WaitExit "$TITLE"
elif [ "$INSTALL_METHOD" = "STEAM" ]
then
    POL_SetupWindow_browse "Select $GAME_EXE" "MOVE game to new wine prefix"
    GAME_DIR=$(dirname "$APP_ANSWER")
    mv "$GAME_DIR" "$WINEPREFIX/drive_c/"
    cd "$WINEPREFIX/drive_c/"
fi
POL_Shortcut "$GAME_EXE" "$SHORTCUT_NAME"
POL_SetupWindow_message "$(eval_gettext 'SUGGESTION:\n\n\n 1. if you experience graphic issue, \n MANUALLY EDIT "c:/users/USERNAME/Application Data/Wargaming.net/WorldOfTanks/preferences.xml", \nchange the value of <tripleBuffering> to false\n\n 2. if you experience high CPU usage, \nRENAME "c:/Games/World_of_Tanks/res/awesomium/awesomium_process.exe" to awesomium_process.exe.bak')" "$TITLE"

POL_SetupWindow_Close
exit

Aangepast door tim110011