Worms Armageddon

Informations

Creator Message
LinuxScripter Anonymous

Warning

This installer is a beta script. It means that it might not work as expected

Informations

Platforms:
Downloads: 8026
Wine: 3.0

Feedbacks

Description

Small pink worms with an insane weapon arsenal battle it out on various 2D landscapes. Turn-based strategy game.

Source code

#!/bin/bash
# Date : (2010-04-08 10-00)
# Last revision : (2018-02-08 26:07)
# Wine version used : 1.3.3, 1.3.11, 1.3.17, 1.3.25, 1.3.26, 1.3.27, 2.0.1, 3.0
# Distribution used to test : Debian Testing x64, Ubuntu 17.04 x64, Ubuntu 18.04 x64
# Author : GNU_Raziel, LinuxScripter
# Licence : Retail
  
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="Worms Armageddon"
EDITOR="Team 17"
AUTHOR="LinuxScripter"
GAME_URL="http://wa.team17.com/"
PREFIX="WormsArmageddon"
WORKING_WINE_VERSION="3.0"
 
POL_SetupWindow_Init
POL_Debug_Init
  
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$PREFIX"
POL_Call POL_Function_SetResolution

POL_SetupWindow_message "If you are installing $TITLE from CD, this script will patch the instalation to the latest version. Keep in mind that when the patcher will ask you to apply fixes for Wine, choose No or else the display might be broken. Let the script choose the right registry tweaks."

POL_SetupWindow_InstallMethod "CD,STEAM"
  
if [ "$INSTALL_METHOD" == "CD" ]; then
    POL_SetupWindow_cdrom
    POL_SetupWindow_check_cdrom "clokspl.exe"
    POL_Wine start /unix "$CDROM/Setup.exe"
    POL_Wine_WaitExit "$CDROM/Setup.exe"
        cd "$POL_System_TmpDir"
        POL_Download "https://worms2d.info/files/WA_update-3.7.2.1_Installer.exe" "bcae1f1424c7b4c20c7b46d998448146"
        POL_Wine start /unix "WA_update-3.7.2.1_Installer.exe"
        POL_Wine_WaitExit "WA_update-3.7.2.1_Installer.exe"
        POL_Wine regedit.exe "$WINEPREFIX/drive_c/Team17/$TITLE/Tweaks/FrontendUseDesktopWindow_Enable.reg"
        POL_Wine regedit.exe "$WINEPREFIX/drive_c/Team17/$TITLE/Tweaks/LoadWormKitModules_Enabled.reg"
        POL_Download "https://steps.keybase.pub/wa/wk/wkSuperFrontendHD_full.7z" "6acb23b43ea3c938dc27c38557cfd4c8"
        unzip wkSuperFrontendHD_full.7z
        cp -r "$POL_System_TmpDir/graphics" "$WINEPREFIX/drive_c/Team17/$TITLE"
        cp "$POL_System_TmpDir/wkSuperFrontend.ini" "$WINEPREFIX/drive_c/Team17/$TITLE"
        cp "$POL_System_TmpDir/wkSuperFrontend.dll" "$WINEPREFIX/drive_c/Team17/$TITLE"
        
else
    POL_Call POL_Install_steam
        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
        POL_Wine "steam.exe" steam://install/217200
        POL_Wine_WaitBefore "$TITLE"
fi
  
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Shortcut "steam.exe" "Steam($TITLE)" "" "steam://rungameid/217200"
else
        POL_Shortcut "WA.exe" "Worms Armageddon" "" ""
fi

POL_System_TmpDelete  
POL_SetupWindow_Close
exit

Contributions

Filters:

Contribute
Member Message
fivitti Friday 11 November 2022 at 20:35
fivitti Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

I updated the script to apply the latest patch and allow it to install from CD distributed by CD-Project in the 2000s.

Differences

@@ -33,16 +33,16 @@
   
 if [ "$INSTALL_METHOD" == "CD" ]; then
     POL_SetupWindow_cdrom
-    POL_SetupWindow_check_cdrom "clokspl.exe"
+    POL_SetupWindow_check_cdrom "Setup.exe"
     POL_Wine start /unix "$CDROM/Setup.exe"
     POL_Wine_WaitExit "$CDROM/Setup.exe"
 	cd "$POL_System_TmpDir"
-	POL_Download "https://worms2d.info/files/WA_update-3.7.2.1_Installer.exe" "bcae1f1424c7b4c20c7b46d998448146"
+	POL_Download "https://worms2d.info/files/WA_update-3.8.1_%5BCD%5D_Installer.exe" "7373e157b5fd454fe20f581eb7ac665e"
 	POL_Wine start /unix "WA_update-3.7.2.1_Installer.exe"
 	POL_Wine_WaitExit "WA_update-3.7.2.1_Installer.exe"
 	POL_Wine regedit.exe "$WINEPREFIX/drive_c/Team17/$TITLE/Tweaks/FrontendUseDesktopWindow_Enable.reg"
 	POL_Wine regedit.exe "$WINEPREFIX/drive_c/Team17/$TITLE/Tweaks/LoadWormKitModules_Enabled.reg"
-	POL_Download "https://steps.keybase.pub/wa/wk/wkSuperFrontendHD_full.7z" "6acb23b43ea3c938dc27c38557cfd4c8"
+	POL_Download "https://steps.keybase.pub/wa/wk/wkSuperFrontendHD_full.7z" "eee4c4887c345d1e0c5de92cb05b708c"
 	unzip wkSuperFrontendHD_full.7z
 	cp -r "$POL_System_TmpDir/graphics" "$WINEPREFIX/drive_c/Team17/$TITLE"
 	cp "$POL_System_TmpDir/wkSuperFrontend.ini" "$WINEPREFIX/drive_c/Team17/$TITLE"

New source code

#!/bin/bash
# Date : (2010-04-08 10-00)
# Last revision : (2018-02-08 26:07)
# Wine version used : 1.3.3, 1.3.11, 1.3.17, 1.3.25, 1.3.26, 1.3.27, 2.0.1, 3.0
# Distribution used to test : Debian Testing x64, Ubuntu 17.04 x64, Ubuntu 18.04 x64
# Author : GNU_Raziel, LinuxScripter
# Licence : Retail
  
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="Worms Armageddon"
EDITOR="Team 17"
AUTHOR="LinuxScripter"
GAME_URL="http://wa.team17.com/"
PREFIX="WormsArmageddon"
WORKING_WINE_VERSION="3.0"
 
POL_SetupWindow_Init
POL_Debug_Init
  
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$PREFIX"
POL_Call POL_Function_SetResolution

POL_SetupWindow_message "If you are installing $TITLE from CD, this script will patch the instalation to the latest version. Keep in mind that when the patcher will ask you to apply fixes for Wine, choose No or else the display might be broken. Let the script choose the right registry tweaks."

POL_SetupWindow_InstallMethod "CD,STEAM"
  
if [ "$INSTALL_METHOD" == "CD" ]; then
    POL_SetupWindow_cdrom
    POL_SetupWindow_check_cdrom "Setup.exe"
    POL_Wine start /unix "$CDROM/Setup.exe"
    POL_Wine_WaitExit "$CDROM/Setup.exe"
        cd "$POL_System_TmpDir"
        POL_Download "https://worms2d.info/files/WA_update-3.8.1_%5BCD%5D_Installer.exe" "7373e157b5fd454fe20f581eb7ac665e"
        POL_Wine start /unix "WA_update-3.7.2.1_Installer.exe"
        POL_Wine_WaitExit "WA_update-3.7.2.1_Installer.exe"
        POL_Wine regedit.exe "$WINEPREFIX/drive_c/Team17/$TITLE/Tweaks/FrontendUseDesktopWindow_Enable.reg"
        POL_Wine regedit.exe "$WINEPREFIX/drive_c/Team17/$TITLE/Tweaks/LoadWormKitModules_Enabled.reg"
        POL_Download "https://steps.keybase.pub/wa/wk/wkSuperFrontendHD_full.7z" "eee4c4887c345d1e0c5de92cb05b708c"
        unzip wkSuperFrontendHD_full.7z
        cp -r "$POL_System_TmpDir/graphics" "$WINEPREFIX/drive_c/Team17/$TITLE"
        cp "$POL_System_TmpDir/wkSuperFrontend.ini" "$WINEPREFIX/drive_c/Team17/$TITLE"
        cp "$POL_System_TmpDir/wkSuperFrontend.dll" "$WINEPREFIX/drive_c/Team17/$TITLE"
        
else
    POL_Call POL_Install_steam
        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
        POL_Wine "steam.exe" steam://install/217200
        POL_Wine_WaitBefore "$TITLE"
fi
  
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Shortcut "steam.exe" "Steam($TITLE)" "" "steam://rungameid/217200"
else
        POL_Shortcut "WA.exe" "Worms Armageddon" "" ""
fi

POL_System_TmpDelete  
POL_SetupWindow_Close
exit

Replies

Edited by fivitti

LinuxScripter Thursday 8 February 2018 at 17:03
LinuxScripter Anonymous

Information

This update has been approved by the team.

Message

Added md5 checksums to both of the downloaded files.

Differences

@@ -0,0 +1,66 @@
+#!/bin/bash
+# Date : (2010-04-08 10-00)
+# Last revision : (2018-02-08 26:07)
+# Wine version used : 1.3.3, 1.3.11, 1.3.17, 1.3.25, 1.3.26, 1.3.27, 2.0.1, 3.0
+# Distribution used to test : Debian Testing x64, Ubuntu 17.04 x64, Ubuntu 18.04 x64
+# Author : GNU_Raziel, LinuxScripter
+# Licence : Retail
+  
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+  
+TITLE="Worms Armageddon"
+EDITOR="Team 17"
+AUTHOR="LinuxScripter"
+GAME_URL="http://wa.team17.com/"
+PREFIX="WormsArmageddon"
+WORKING_WINE_VERSION="3.0"
+ 
+POL_SetupWindow_Init
+POL_Debug_Init
+  
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
+ 
+POL_Wine_SelectPrefix "$PREFIX"
+POL_System_SetArch "x86"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+POL_System_TmpCreate "$PREFIX"
+POL_Call POL_Function_SetResolution
+
+POL_SetupWindow_message "If you are installing $TITLE from CD, this script will patch the instalation to the latest version. Keep in mind that when the patcher will ask you to apply fixes for Wine, choose No or else the display might be broken. Let the script choose the right registry tweaks."
+
+POL_SetupWindow_InstallMethod "CD,STEAM"
+  
+if [ "$INSTALL_METHOD" == "CD" ]; then
+    POL_SetupWindow_cdrom
+    POL_SetupWindow_check_cdrom "clokspl.exe"
+    POL_Wine start /unix "$CDROM/Setup.exe"
+    POL_Wine_WaitExit "$CDROM/Setup.exe"
+	cd "$POL_System_TmpDir"
+	POL_Download "https://worms2d.info/files/WA_update-3.7.2.1_Installer.exe" "bcae1f1424c7b4c20c7b46d998448146"
+	POL_Wine start /unix "WA_update-3.7.2.1_Installer.exe"
+	POL_Wine_WaitExit "WA_update-3.7.2.1_Installer.exe"
+	POL_Wine regedit.exe "$WINEPREFIX/drive_c/Team17/$TITLE/Tweaks/FrontendUseDesktopWindow_Enable.reg"
+	POL_Wine regedit.exe "$WINEPREFIX/drive_c/Team17/$TITLE/Tweaks/LoadWormKitModules_Enabled.reg"
+	POL_Download "https://steps.keybase.pub/wa/wk/wkSuperFrontendHD_full.7z" "6acb23b43ea3c938dc27c38557cfd4c8"
+	unzip wkSuperFrontendHD_full.7z
+	cp -r "$POL_System_TmpDir/graphics" "$WINEPREFIX/drive_c/Team17/$TITLE"
+	cp "$POL_System_TmpDir/wkSuperFrontend.ini" "$WINEPREFIX/drive_c/Team17/$TITLE"
+	cp "$POL_System_TmpDir/wkSuperFrontend.dll" "$WINEPREFIX/drive_c/Team17/$TITLE"
+	
+else
+    POL_Call POL_Install_steam
+	cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
+	POL_Wine "steam.exe" steam://install/217200
+	POL_Wine_WaitBefore "$TITLE"
+fi
+  
+if [ "$INSTALL_METHOD" == "STEAM" ]; then
+	POL_Shortcut "steam.exe" "Steam($TITLE)" "" "steam://rungameid/217200"
+else
+	POL_Shortcut "WA.exe" "Worms Armageddon" "" ""
+fi
+
+POL_System_TmpDelete  
+POL_SetupWindow_Close
+exit
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2010-04-08 10-00)
# Last revision : (2018-02-08 26:07)
# Wine version used : 1.3.3, 1.3.11, 1.3.17, 1.3.25, 1.3.26, 1.3.27, 2.0.1, 3.0
# Distribution used to test : Debian Testing x64, Ubuntu 17.04 x64, Ubuntu 18.04 x64
# Author : GNU_Raziel, LinuxScripter
# Licence : Retail
  
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="Worms Armageddon"
EDITOR="Team 17"
AUTHOR="LinuxScripter"
GAME_URL="http://wa.team17.com/"
PREFIX="WormsArmageddon"
WORKING_WINE_VERSION="3.0"
 
POL_SetupWindow_Init
POL_Debug_Init
  
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$PREFIX"
POL_Call POL_Function_SetResolution

POL_SetupWindow_message "If you are installing $TITLE from CD, this script will patch the instalation to the latest version. Keep in mind that when the patcher will ask you to apply fixes for Wine, choose No or else the display might be broken. Let the script choose the right registry tweaks."

POL_SetupWindow_InstallMethod "CD,STEAM"
  
if [ "$INSTALL_METHOD" == "CD" ]; then
    POL_SetupWindow_cdrom
    POL_SetupWindow_check_cdrom "clokspl.exe"
    POL_Wine start /unix "$CDROM/Setup.exe"
    POL_Wine_WaitExit "$CDROM/Setup.exe"
        cd "$POL_System_TmpDir"
        POL_Download "https://worms2d.info/files/WA_update-3.7.2.1_Installer.exe" "bcae1f1424c7b4c20c7b46d998448146"
        POL_Wine start /unix "WA_update-3.7.2.1_Installer.exe"
        POL_Wine_WaitExit "WA_update-3.7.2.1_Installer.exe"
        POL_Wine regedit.exe "$WINEPREFIX/drive_c/Team17/$TITLE/Tweaks/FrontendUseDesktopWindow_Enable.reg"
        POL_Wine regedit.exe "$WINEPREFIX/drive_c/Team17/$TITLE/Tweaks/LoadWormKitModules_Enabled.reg"
        POL_Download "https://steps.keybase.pub/wa/wk/wkSuperFrontendHD_full.7z" "6acb23b43ea3c938dc27c38557cfd4c8"
        unzip wkSuperFrontendHD_full.7z
        cp -r "$POL_System_TmpDir/graphics" "$WINEPREFIX/drive_c/Team17/$TITLE"
        cp "$POL_System_TmpDir/wkSuperFrontend.ini" "$WINEPREFIX/drive_c/Team17/$TITLE"
        cp "$POL_System_TmpDir/wkSuperFrontend.dll" "$WINEPREFIX/drive_c/Team17/$TITLE"
        
else
    POL_Call POL_Install_steam
        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
        POL_Wine "steam.exe" steam://install/217200
        POL_Wine_WaitBefore "$TITLE"
fi
  
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Shortcut "steam.exe" "Steam($TITLE)" "" "steam://rungameid/217200"
else
        POL_Shortcut "WA.exe" "Worms Armageddon" "" ""
fi

POL_System_TmpDelete  
POL_SetupWindow_Close
exit

Replies

LinuxScripter Thursday 8 February 2018 at 16:28
LinuxScripter Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

This script will:

  1. Install the game from either CD or Steam (I dont have steam version but it seems it does not need any extra fixes. Please tell me if I am wrong).
  2. Download the latest patch (3.7.2.1).
  3. Download  and install the 3.0 update for the game (after that a blank Wine Notepad will show up. Close it and the self-extractor window).
  4. Install patch 3.7.2.1
  5. Load registry tweak FrontendUseDesktopWindow_Enable.reg (without it the screen will be 800x600 black window with the game sounds).
  6. Load registry tweak LoadWormKitModules_Enabled.reg (necesseary for wkSuperFrontendHD).
  7. Download and copy wkSuperFrontendHD_full to the game's directory (without it the game menu remains an 800x600 window and scales up to Wine's virtual desktop's resolution when chosing one of the game modes like quick match).

Tested in quick match, deathmatch and Wormnet multiplayer.


 

Differences

@@ -0,0 +1,194 @@
+#!/bin/bash
+# Date : (2010-04-08 10-00)
+# Last revision : (2018-02-08 26:07)
+# Wine version used : 1.3.3, 1.3.11, 1.3.17, 1.3.25, 1.3.26, 1.3.27, 2.0.1, 3.0
+# Distribution used to test : Debian Testing x64, Ubuntu 17.04 x64, Ubuntu 18.04 x64
+# Author : GNU_Raziel, LinuxScripter
+# Licence : Retail
+  
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+  
+TITLE="Worms Armageddon"
+EDITOR="Team 17"
+AUTHOR="LinuxScripter"
+GAME_URL="http://wa.team17.com/"
+PREFIX="WormsArmageddon"
+WORKING_WINE_VERSION="3.0"
+ 
+POL_SetupWindow_Init
+POL_Debug_Init
+  
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
+ 
+POL_Wine_SelectPrefix "$PREFIX"
+POL_System_SetArch "x86"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+POL_System_TmpCreate "$PREFIX"
+POL_SetupWindow_message "$(eval_gettext 'This script required a virtual desktop, please select one smaller than your actual screen resolution.')" "$TITLE"
+ 
+POL_SetupWindow_menu_num "$(eval_gettext 'Desired virtual resolution')" "$TITLE" "480 x 320 (3:2)|1152 x 768 (3:2)|1280 x 854 (3:2)|1440 x 960 (3:2)|320 x 240 (4:3)|384 x 288 (4:3)|640 x 480 (4:3)|768 x 576 (4:3)|800 x 600 (4:3)|1152 x 864 (4:3)|1280 x 960 (4:3)|1400 x 1050 (4:3)|1440 x 1080 (4:3)|1600 x 1200 (4:3)|2048 x 1536 (4:3)|800 x 480 (5:3)|1280 x 768 (5:3)|1280 x 1024 (5:4)|2560 x 2048 (5:4)|854 x 480 (16:9)|1024 x 576 (16:9)|1280 x 720 (16:9)|1366 x 768 (16:9)|1600 x 900 (16:9)|1920 x 1080 (16:9)|2560 x 1440 (16:9)|3840 x 2160 (16:9)|320 x 200 (16:10)|1280 x 800 (16:10)|1440 x 900 (16:10)|1680 x 1050 (16:10)|1920 x 1200 (16:10)|2560 x 1600 (16:10)|2560 x 1080 (21:9)|3440 x 1440 (21:9)|2048 x 1080 (2K)|4096 x 2160 (4K)|352 x 288|1024 x 600" "|"
+ 
+case "$APP_ANSWER" in
+    0)
+        Set_Desktop "On" "480" "320"
+        ;;
+    1)
+        Set_Desktop "On" "1152" "768"
+        ;;
+    2)
+        Set_Desktop "On" "1280" "854"
+        ;;
+    3)
+        Set_Desktop "On" "1440" "960"
+        ;;
+    4)
+        Set_Desktop "On" "320" "240"
+        ;;
+    5)
+        Set_Desktop "On" "384" "288"
+        ;;
+    6)
+        Set_Desktop "On" "640" "480"
+        ;;
+    7)
+        Set_Desktop "On" "768" "576"
+        ;;
+    8)
+        Set_Desktop "On" "800" "600"
+        ;;
+    9)
+        Set_Desktop "On" "1152" "864"
+        ;;
+    10)
+        Set_Desktop "On" "1280" "960"
+        ;;
+    11)
+        Set_Desktop "On" "1400" "1050"
+        ;;
+    12)
+        Set_Desktop "On" "1440" "1080"
+        ;;
+    13)
+        Set_Desktop "On" "1600" "1200"
+        ;;
+    14)
+        Set_Desktop "On" "2048" "1536"
+        ;;
+    15)
+        Set_Desktop "On" "800" "480"
+        ;;
+    16)
+        Set_Desktop "On" "1280" "760"
+        ;;
+    17)
+        Set_Desktop "On" "1280" "1024"
+        ;;
+    18)
+        Set_Desktop "On" "2560" "2048"
+        ;;
+    19)
+        Set_Desktop "On" "854" "480"
+        ;;
+    20)
+        Set_Desktop "On" "1024" "576"
+        ;;
+    21)
+        Set_Desktop "On" "1280" "720"
+        ;;
+    22)
+        Set_Desktop "On" "1366" "768"
+        ;;
+    23)
+        Set_Desktop "On" "1600" "900"
+        ;;
+    24)
+        Set_Desktop "On" "1920" "1080"
+        ;;
+    25)
+        Set_Desktop "On" "2560" "1440"
+        ;;
+    26)
+        Set_Desktop "On" "3840" "2160"
+        ;;
+    27)
+        Set_Desktop "On" "320" "200"
+        ;;
+    28)
+        Set_Desktop "On" "1280" "800"
+        ;;
+    29)
+        Set_Desktop "On" "1440" "900"
+        ;;
+    30)
+        Set_Desktop "On" "1680" "1050"
+        ;;
+    31)
+        Set_Desktop "On" "1920" "1200"
+        ;;
+    32)
+        Set_Desktop "On" "2560" "1600"
+        ;;
+    33)
+        Set_Desktop "On" "2560" "1080"
+        ;;
+    34)
+        Set_Desktop "On" "3440" "1440"
+        ;;
+    35)
+        Set_Desktop "On" "2048" "1080"
+        ;;
+    36)
+        Set_Desktop "On" "4096" "2160"
+        ;;
+    37)
+        Set_Desktop "On" "352" "288"
+        ;;
+    38)
+        Set_Desktop "On" "1024" "600"
+        ;;
+    *)
+        echo "$(eval_gettext 'Using default resolution')"
+        Set_Desktop "On" "800" "600"
+        ;;
+esac
+ 
+POL_SetupWindow_message "$(eval_gettext 'You can change it at any time there:\nConfigure -> select virtual drive -> Wine tab -> Wine Configuration -> Graphics tab')" "$TITLE"
+
+POL_SetupWindow_message "If you are installing $TITLE from CD, this script will patch the instalation to the latest version. Keep in mind that when the patcher will ask you to apply fixes for Wine, choose No or else the display might be broken. Let the script choose the right registry tweaks."
+
+POL_SetupWindow_InstallMethod "CD,STEAM"
+  
+if [ "$INSTALL_METHOD" == "CD" ]; then
+    POL_SetupWindow_cdrom
+    POL_SetupWindow_check_cdrom "clokspl.exe"
+    POL_Wine start /unix "$CDROM/Setup.exe"
+    POL_Wine_WaitExit "$CDROM/Setup.exe"
+	cd "$POL_System_TmpDir"
+	POL_Download "https://worms2d.info/files/WA_update-3.7.2.1_Installer.exe"
+	POL_Wine start /unix "WA_update-3.7.2.1_Installer.exe"
+	POL_Wine_WaitExit "WA_update-3.7.2.1_Installer.exe"
+	POL_Wine regedit.exe "$WINEPREFIX/drive_c/Team17/$TITLE/Tweaks/FrontendUseDesktopWindow_Enable.reg"
+	POL_Wine regedit.exe "$WINEPREFIX/drive_c/Team17/$TITLE/Tweaks/LoadWormKitModules_Enabled.reg"
+	POL_Download "https://steps.keybase.pub/wa/wk/wkSuperFrontendHD_full.7z"
+	unzip wkSuperFrontendHD_full.7z
+	cp -r "$POL_System_TmpDir/graphics" "$WINEPREFIX/drive_c/Team17/$TITLE"
+	cp "$POL_System_TmpDir/wkSuperFrontend.ini" "$WINEPREFIX/drive_c/Team17/$TITLE"
+	cp "$POL_System_TmpDir/wkSuperFrontend.dll" "$WINEPREFIX/drive_c/Team17/$TITLE"
+	
+else
+    POL_Call POL_Install_steam
+	cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
+	POL_Wine "steam.exe" steam://install/217200
+	POL_Wine_WaitBefore "$TITLE"
+fi
+  
+if [ "$INSTALL_METHOD" == "STEAM" ]; then
+	POL_Shortcut "steam.exe" "Steam($TITLE)" "" "steam://rungameid/217200"
+else
+	POL_Shortcut "WA.exe" "Worms Armageddon" "" ""
+fi
+
+POL_System_TmpDelete  
+POL_SetupWindow_Close
+exit
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2010-04-08 10-00)
# Last revision : (2018-02-08 26:07)
# Wine version used : 1.3.3, 1.3.11, 1.3.17, 1.3.25, 1.3.26, 1.3.27, 2.0.1, 3.0
# Distribution used to test : Debian Testing x64, Ubuntu 17.04 x64, Ubuntu 18.04 x64
# Author : GNU_Raziel, LinuxScripter
# Licence : Retail
  
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="Worms Armageddon"
EDITOR="Team 17"
AUTHOR="LinuxScripter"
GAME_URL="http://wa.team17.com/"
PREFIX="WormsArmageddon"
WORKING_WINE_VERSION="3.0"
 
POL_SetupWindow_Init
POL_Debug_Init
  
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$PREFIX"
POL_SetupWindow_message "$(eval_gettext 'This script required a virtual desktop, please select one smaller than your actual screen resolution.')" "$TITLE"
 
POL_SetupWindow_menu_num "$(eval_gettext 'Desired virtual resolution')" "$TITLE" "480 x 320 (3:2)|1152 x 768 (3:2)|1280 x 854 (3:2)|1440 x 960 (3:2)|320 x 240 (4:3)|384 x 288 (4:3)|640 x 480 (4:3)|768 x 576 (4:3)|800 x 600 (4:3)|1152 x 864 (4:3)|1280 x 960 (4:3)|1400 x 1050 (4:3)|1440 x 1080 (4:3)|1600 x 1200 (4:3)|2048 x 1536 (4:3)|800 x 480 (5:3)|1280 x 768 (5:3)|1280 x 1024 (5:4)|2560 x 2048 (5:4)|854 x 480 (16:9)|1024 x 576 (16:9)|1280 x 720 (16:9)|1366 x 768 (16:9)|1600 x 900 (16:9)|1920 x 1080 (16:9)|2560 x 1440 (16:9)|3840 x 2160 (16:9)|320 x 200 (16:10)|1280 x 800 (16:10)|1440 x 900 (16:10)|1680 x 1050 (16:10)|1920 x 1200 (16:10)|2560 x 1600 (16:10)|2560 x 1080 (21:9)|3440 x 1440 (21:9)|2048 x 1080 (2K)|4096 x 2160 (4K)|352 x 288|1024 x 600" "|"
 
case "$APP_ANSWER" in
    0)
        Set_Desktop "On" "480" "320"
        ;;
    1)
        Set_Desktop "On" "1152" "768"
        ;;
    2)
        Set_Desktop "On" "1280" "854"
        ;;
    3)
        Set_Desktop "On" "1440" "960"
        ;;
    4)
        Set_Desktop "On" "320" "240"
        ;;
    5)
        Set_Desktop "On" "384" "288"
        ;;
    6)
        Set_Desktop "On" "640" "480"
        ;;
    7)
        Set_Desktop "On" "768" "576"
        ;;
    8)
        Set_Desktop "On" "800" "600"
        ;;
    9)
        Set_Desktop "On" "1152" "864"
        ;;
    10)
        Set_Desktop "On" "1280" "960"
        ;;
    11)
        Set_Desktop "On" "1400" "1050"
        ;;
    12)
        Set_Desktop "On" "1440" "1080"
        ;;
    13)
        Set_Desktop "On" "1600" "1200"
        ;;
    14)
        Set_Desktop "On" "2048" "1536"
        ;;
    15)
        Set_Desktop "On" "800" "480"
        ;;
    16)
        Set_Desktop "On" "1280" "760"
        ;;
    17)
        Set_Desktop "On" "1280" "1024"
        ;;
    18)
        Set_Desktop "On" "2560" "2048"
        ;;
    19)
        Set_Desktop "On" "854" "480"
        ;;
    20)
        Set_Desktop "On" "1024" "576"
        ;;
    21)
        Set_Desktop "On" "1280" "720"
        ;;
    22)
        Set_Desktop "On" "1366" "768"
        ;;
    23)
        Set_Desktop "On" "1600" "900"
        ;;
    24)
        Set_Desktop "On" "1920" "1080"
        ;;
    25)
        Set_Desktop "On" "2560" "1440"
        ;;
    26)
        Set_Desktop "On" "3840" "2160"
        ;;
    27)
        Set_Desktop "On" "320" "200"
        ;;
    28)
        Set_Desktop "On" "1280" "800"
        ;;
    29)
        Set_Desktop "On" "1440" "900"
        ;;
    30)
        Set_Desktop "On" "1680" "1050"
        ;;
    31)
        Set_Desktop "On" "1920" "1200"
        ;;
    32)
        Set_Desktop "On" "2560" "1600"
        ;;
    33)
        Set_Desktop "On" "2560" "1080"
        ;;
    34)
        Set_Desktop "On" "3440" "1440"
        ;;
    35)
        Set_Desktop "On" "2048" "1080"
        ;;
    36)
        Set_Desktop "On" "4096" "2160"
        ;;
    37)
        Set_Desktop "On" "352" "288"
        ;;
    38)
        Set_Desktop "On" "1024" "600"
        ;;
    *)
        echo "$(eval_gettext 'Using default resolution')"
        Set_Desktop "On" "800" "600"
        ;;
esac
 
POL_SetupWindow_message "$(eval_gettext 'You can change it at any time there:\nConfigure -> select virtual drive -> Wine tab -> Wine Configuration -> Graphics tab')" "$TITLE"

POL_SetupWindow_message "If you are installing $TITLE from CD, this script will patch the instalation to the latest version. Keep in mind that when the patcher will ask you to apply fixes for Wine, choose No or else the display might be broken. Let the script choose the right registry tweaks."

POL_SetupWindow_InstallMethod "CD,STEAM"
  
if [ "$INSTALL_METHOD" == "CD" ]; then
    POL_SetupWindow_cdrom
    POL_SetupWindow_check_cdrom "clokspl.exe"
    POL_Wine start /unix "$CDROM/Setup.exe"
    POL_Wine_WaitExit "$CDROM/Setup.exe"
        cd "$POL_System_TmpDir"
        POL_Download "https://worms2d.info/files/WA_update-3.7.2.1_Installer.exe"
        POL_Wine start /unix "WA_update-3.7.2.1_Installer.exe"
        POL_Wine_WaitExit "WA_update-3.7.2.1_Installer.exe"
        POL_Wine regedit.exe "$WINEPREFIX/drive_c/Team17/$TITLE/Tweaks/FrontendUseDesktopWindow_Enable.reg"
        POL_Wine regedit.exe "$WINEPREFIX/drive_c/Team17/$TITLE/Tweaks/LoadWormKitModules_Enabled.reg"
        POL_Download "https://steps.keybase.pub/wa/wk/wkSuperFrontendHD_full.7z"
        unzip wkSuperFrontendHD_full.7z
        cp -r "$POL_System_TmpDir/graphics" "$WINEPREFIX/drive_c/Team17/$TITLE"
        cp "$POL_System_TmpDir/wkSuperFrontend.ini" "$WINEPREFIX/drive_c/Team17/$TITLE"
        cp "$POL_System_TmpDir/wkSuperFrontend.dll" "$WINEPREFIX/drive_c/Team17/$TITLE"
        
else
    POL_Call POL_Install_steam
        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
        POL_Wine "steam.exe" steam://install/217200
        POL_Wine_WaitBefore "$TITLE"
fi
  
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Shortcut "steam.exe" "Steam($TITLE)" "" "steam://rungameid/217200"
else
        POL_Shortcut "WA.exe" "Worms Armageddon" "" ""
fi

POL_System_TmpDelete  
POL_SetupWindow_Close
exit

Replies

Anonymous
Thursday 8 February 2018 at 16:30
All the options are stored in HKEY_CURRENT_USER\Software\Team17SoftwareLTD\WormsArmageddon\Options
Thursday 8 February 2018 at 16:52
Replace by a POL_Call POL_Function_SetResolution
For the patch, it's ok but add a MD5 checksum to it
For the HD patch, I'm not sure about the website and you add DLL than cannot be checked. I'm not validating that sorry
Anonymous
Thursday 8 February 2018 at 17:08
The script is downloading SuperFrontendHD from a link at this website:https://worms2d.info/SuperFrontendHDIt's a legit dll. Checked it with VirusTotal:https://www.virustotal.com/#/file/acfadcb77a01a11b9e9613b9a74136310da080983590c8293413b60222d9d022/detection