Castle Strike
Informations
| Creator | Message |
|---|---|
|
Dadu042
|
InformationThis installer has been approved by the team. InformationsPlatforms: Feedbacks1 0 DescriptionStrategy, Real-Time, Historic. 2004. Published by Data Becker. Wikipedia. Source code#!/bin/bash
# Date : (2019-03-28 10-04)
# Last revision : see changelog
# Wine version used :
# Distribution used to test : Ubuntu 19.10 amd64
# Script licence : GPL3
# Program licence : Retail
#
# CD-ROM french (v1.0 or v1.1 ?). Latest file: /Setup/data2.cab 16/02/2004.
#
#
# CHANGELOG
# [Dadu042] (2019-08-19)
# First script.
# [Dadu042] (2019-12-19)
# Little changes.
# [Dadu042] (2020-02-26)
# Fix VMS.
# Wine 4.4 -> 4.21
#
# KNOWN ISSUES:
# - Wine 4.4, 4.21, 5.0, 5.2: Anti copy protection prevent the game to start ('Please insert CD'). Fix: apply a NoCD.
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
TITLE="Castle Strike"
PREFIX="castle_strike"
WORKING_WINE_VERSION="4.21"
AUTHOR="Dadu042"
EDITOR="Data Becker"
GAME_URL="https://www.metacritic.com/game/pc/castle-strike"
Set_OS "winxp"
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
POL_Call POL_Function_NoCDWarning
POL_RequiredVersion "4.3.4" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$TITLE"
# POL_Call POL_Install_d3dx9
POL_SetupWindow_VMS "32"
# Set Graphic Card information keys for wine
POL_Wine_SetVideoDriver
# Do not install "GameSpy Arcade".
# In order to avoid: "Error_VGARESOLUTION - entry not found in the string table" when the setup.exe start (Wine 4.4).
POL_Call POL_Function_SetResolution
###############
# Go #
###############
POL_SetupWindow_InstallMethod "LOCAL,CD"
if [ "$INSTALL_METHOD" == "LOCAL" ]; then
cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
SETUP_EXE="$APP_ANSWER"
POL_Wine start /unix "$SETUP_EXE"
POL_Wine_WaitExit "$TITLE"
cd "$POL_System_TmpDir"
else
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "Setup/CaSt.ICO"
POL_Wine start /unix "$CDROM/Setup/setup.exe"
POL_Wine_WaitExit "setup.exe"
cd "$POL_System_TmpDir"
fi
POL_Shortcut "Castlestrike.exe" "$TITLE" "" "" "Game;StrategyGame;"
# French file name: Manuel.pdf
POL_Shortcut_Document "$TITLE" "Manuel.pdf"
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0 |
Contributions
Filters:
Contribute| Member | Message |
| Dadu042 | Wednesday 26 February 2020 at 21:40 |
|
Dadu042
|
InformationThis update has been approved by the team. Differences@@ -1,12 +1,11 @@
-#!/usr/bin/env playonlinux-bash
+#!/bin/bash
# Date : (2019-03-28 10-04)
-# Last revision : (2019-03-28 10-04)
-# Wine version used : 3.0
-# Distribution used to test : Ubuntu 18.04 x64
+# Last revision : see changelog
+# Wine version used :
+# Distribution used to test : Ubuntu 19.10 amd64
# Script licence : GPL3
# Program licence : Retail
#
-# Playonlinux version used : 4.3.4
# CD-ROM french (v1.0 or v1.1 ?). Latest file: /Setup/data2.cab 16/02/2004.
#
#
@@ -15,53 +14,59 @@
# First script.
# [Dadu042] (2019-12-19)
# Little changes.
+# [Dadu042] (2020-02-26)
+# Fix VMS.
+# Wine 4.4 -> 4.21
#
# KNOWN ISSUES:
-# - Wine 4.4: Anti copy protection prevent the game to start ('Please insert CD').
+# - Wine 4.4, 4.21, 5.0, 5.2: Anti copy protection prevent the game to start ('Please insert CD'). Fix: apply a NoCD.
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
-
+
TITLE="Castle Strike"
PREFIX="castle_strike"
-WORKING_WINE_VERSION="3.0"
+WORKING_WINE_VERSION="4.21"
AUTHOR="Dadu042"
EDITOR="Data Becker"
GAME_URL="https://www.metacritic.com/game/pc/castle-strike"
-
-Set_OS "WinXP"
-
+
+Set_OS "winxp"
+
POL_SetupWindow_Init
POL_Debug_Init
-
+
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
-POL_RequiredVersion "4.2.12" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"
-
+POL_Call POL_Function_NoCDWarning
+
+POL_RequiredVersion "4.3.4" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"
+
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$TITLE"
+
-POL_Call POL_Function_NoCDWarning
-
-POL_Call POL_Install_VideoDriver
+# POL_Call POL_Install_d3dx9
-POL_Call POL_SetupWindow_VMS "32"
-POL_Call POL_Install_d3dx9
+POL_SetupWindow_VMS "32"
+
+# Set Graphic Card information keys for wine
+POL_Wine_SetVideoDriver
# Do not install "GameSpy Arcade".
-
-# In order to avoid: "Error_VGARESOLUTION - entry not found in the string table" when the setup.exe start.
+
+# In order to avoid: "Error_VGARESOLUTION - entry not found in the string table" when the setup.exe start (Wine 4.4).
POL_Call POL_Function_SetResolution
-
+
###############
# Go #
###############
-
+
POL_SetupWindow_InstallMethod "LOCAL,CD"
-
+
if [ "$INSTALL_METHOD" == "LOCAL" ]; then
cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
@@ -76,13 +81,13 @@
POL_Wine_WaitExit "setup.exe"
cd "$POL_System_TmpDir"
fi
-
+
POL_Shortcut "Castlestrike.exe" "$TITLE" "" "" "Game;StrategyGame;"
-
+
# French file name: Manuel.pdf
POL_Shortcut_Document "$TITLE" "Manuel.pdf"
-
-
+
+
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0
\ No newline at end of file
New source code#!/bin/bash
# Date : (2019-03-28 10-04)
# Last revision : see changelog
# Wine version used :
# Distribution used to test : Ubuntu 19.10 amd64
# Script licence : GPL3
# Program licence : Retail
#
# CD-ROM french (v1.0 or v1.1 ?). Latest file: /Setup/data2.cab 16/02/2004.
#
#
# CHANGELOG
# [Dadu042] (2019-08-19)
# First script.
# [Dadu042] (2019-12-19)
# Little changes.
# [Dadu042] (2020-02-26)
# Fix VMS.
# Wine 4.4 -> 4.21
#
# KNOWN ISSUES:
# - Wine 4.4, 4.21, 5.0, 5.2: Anti copy protection prevent the game to start ('Please insert CD'). Fix: apply a NoCD.
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
TITLE="Castle Strike"
PREFIX="castle_strike"
WORKING_WINE_VERSION="4.21"
AUTHOR="Dadu042"
EDITOR="Data Becker"
GAME_URL="https://www.metacritic.com/game/pc/castle-strike"
Set_OS "winxp"
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
POL_Call POL_Function_NoCDWarning
POL_RequiredVersion "4.3.4" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$TITLE"
# POL_Call POL_Install_d3dx9
POL_SetupWindow_VMS "32"
# Set Graphic Card information keys for wine
POL_Wine_SetVideoDriver
# Do not install "GameSpy Arcade".
# In order to avoid: "Error_VGARESOLUTION - entry not found in the string table" when the setup.exe start (Wine 4.4).
POL_Call POL_Function_SetResolution
###############
# Go #
###############
POL_SetupWindow_InstallMethod "LOCAL,CD"
if [ "$INSTALL_METHOD" == "LOCAL" ]; then
cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
SETUP_EXE="$APP_ANSWER"
POL_Wine start /unix "$SETUP_EXE"
POL_Wine_WaitExit "$TITLE"
cd "$POL_System_TmpDir"
else
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "Setup/CaSt.ICO"
POL_Wine start /unix "$CDROM/Setup/setup.exe"
POL_Wine_WaitExit "setup.exe"
cd "$POL_System_TmpDir"
fi
POL_Shortcut "Castlestrike.exe" "$TITLE" "" "" "Game;StrategyGame;"
# French file name: Manuel.pdf
POL_Shortcut_Document "$TITLE" "Manuel.pdf"
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0 Replies |
| Dadu042 | Wednesday 18 December 2019 at 16:57 |
|
Dadu042
|
WarningThis update has not been approved yet by the team. Differences@@ -7,8 +7,18 @@
# Program licence : Retail
#
# Playonlinux version used : 4.3.4
-# CD-ROM french (v1.0 or v1.1 ?). Latest file: /Setup/data2.cab 16/02/2004.
-
+# CD-ROM french (v1.0 or v1.1 ?). Latest file: /Setup/data2.cab 16/02/2004.
+#
+#
+# CHANGELOG
+# [Dadu042] (2019-08-19)
+# First script.
+# [Dadu042] (2019-12-19)
+# Little changes.
+#
+# KNOWN ISSUES:
+# - Wine 4.4: Anti copy protection prevent the game to start ('Please insert CD').
+
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
@@ -25,24 +35,25 @@
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
+
+POL_RequiredVersion "4.2.12" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$TITLE"
-# Problem: Please insert CD (up to Wine 4.4...). Anti copy protection prevent the game to start.
POL_Call POL_Function_NoCDWarning
-POL_Call POL_SetupWindow_VMS "32"
-
POL_Call POL_Install_VideoDriver
+POL_Call POL_SetupWindow_VMS "32"
+
POL_Call POL_Install_d3dx9
-# Do not install "GameSpy Arcade".
+# Do not install "GameSpy Arcade".
-# In order to avoid: "Error_VGARESOLUTION - entry not found in the string table" when the setup.exe start.
+# In order to avoid: "Error_VGARESOLUTION - entry not found in the string table" when the setup.exe start.
POL_Call POL_Function_SetResolution
###############
@@ -66,8 +77,9 @@
cd "$POL_System_TmpDir"
fi
-POL_Shortcut "Castlestrike.exe" "$TITLE" ""
+POL_Shortcut "Castlestrike.exe" "$TITLE" "" "" "Game;StrategyGame;"
+# French file name: Manuel.pdf
POL_Shortcut_Document "$TITLE" "Manuel.pdf"
New source code#!/usr/bin/env playonlinux-bash
# Date : (2019-03-28 10-04)
# Last revision : (2019-03-28 10-04)
# Wine version used : 3.0
# Distribution used to test : Ubuntu 18.04 x64
# Script licence : GPL3
# Program licence : Retail
#
# Playonlinux version used : 4.3.4
# CD-ROM french (v1.0 or v1.1 ?). Latest file: /Setup/data2.cab 16/02/2004.
#
#
# CHANGELOG
# [Dadu042] (2019-08-19)
# First script.
# [Dadu042] (2019-12-19)
# Little changes.
#
# KNOWN ISSUES:
# - Wine 4.4: Anti copy protection prevent the game to start ('Please insert CD').
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
TITLE="Castle Strike"
PREFIX="castle_strike"
WORKING_WINE_VERSION="3.0"
AUTHOR="Dadu042"
EDITOR="Data Becker"
GAME_URL="https://www.metacritic.com/game/pc/castle-strike"
Set_OS "WinXP"
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
POL_RequiredVersion "4.2.12" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$TITLE"
POL_Call POL_Function_NoCDWarning
POL_Call POL_Install_VideoDriver
POL_Call POL_SetupWindow_VMS "32"
POL_Call POL_Install_d3dx9
# Do not install "GameSpy Arcade".
# In order to avoid: "Error_VGARESOLUTION - entry not found in the string table" when the setup.exe start.
POL_Call POL_Function_SetResolution
###############
# Go #
###############
POL_SetupWindow_InstallMethod "LOCAL,CD"
if [ "$INSTALL_METHOD" == "LOCAL" ]; then
cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
SETUP_EXE="$APP_ANSWER"
POL_Wine start /unix "$SETUP_EXE"
POL_Wine_WaitExit "$TITLE"
cd "$POL_System_TmpDir"
else
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "Setup/CaSt.ICO"
POL_Wine start /unix "$CDROM/Setup/setup.exe"
POL_Wine_WaitExit "setup.exe"
cd "$POL_System_TmpDir"
fi
POL_Shortcut "Castlestrike.exe" "$TITLE" "" "" "Game;StrategyGame;"
# French file name: Manuel.pdf
POL_Shortcut_Document "$TITLE" "Manuel.pdf"
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0 Replies |
| Dadu042 | Thursday 28 March 2019 at 11:26 |
|
Dadu042
|
WarningThis update has not been approved yet by the team. Differences@@ -0,0 +1,76 @@ +#!/usr/bin/env playonlinux-bash +# Date : (2019-03-28 10-04) +# Last revision : (2019-03-28 10-04) +# Wine version used : 3.0 +# Distribution used to test : Ubuntu 18.04 x64 +# Script licence : GPL3 +# Program licence : Retail +# +# Playonlinux version used : 4.3.4 +# CD-ROM french (v1.0 or v1.1 ?). Latest file: /Setup/data2.cab 16/02/2004. + +[ -z "$PLAYONLINUX" ] && exit 0 +source "$PLAYONLINUX/lib/sources" + +TITLE="Castle Strike" +PREFIX="castle_strike" +WORKING_WINE_VERSION="3.0" +AUTHOR="Dadu042" +EDITOR="Data Becker" +GAME_URL="https://www.metacritic.com/game/pc/castle-strike" + +Set_OS "WinXP" + +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 "$TITLE" + +# Problem: Please insert CD (up to Wine 4.4...). Anti copy protection prevent the game to start. +POL_Call POL_Function_NoCDWarning + +POL_Call POL_SetupWindow_VMS "32" + +POL_Call POL_Install_VideoDriver + +POL_Call POL_Install_d3dx9 + +# Do not install "GameSpy Arcade". + +# In order to avoid: "Error_VGARESOLUTION - entry not found in the string table" when the setup.exe start. +POL_Call POL_Function_SetResolution + +############### +# Go # +############### + +POL_SetupWindow_InstallMethod "LOCAL,CD" + +if [ "$INSTALL_METHOD" == "LOCAL" ]; then + cd "$HOME" + POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE" + SETUP_EXE="$APP_ANSWER" + POL_Wine start /unix "$SETUP_EXE" + POL_Wine_WaitExit "$TITLE" + cd "$POL_System_TmpDir" +else + POL_SetupWindow_cdrom + POL_SetupWindow_check_cdrom "Setup/CaSt.ICO" + POL_Wine start /unix "$CDROM/Setup/setup.exe" + POL_Wine_WaitExit "setup.exe" + cd "$POL_System_TmpDir" +fi + +POL_Shortcut "Castlestrike.exe" "$TITLE" "" + +POL_Shortcut_Document "$TITLE" "Manuel.pdf" + + +POL_System_TmpDelete +POL_SetupWindow_Close +exit 0 \ No newline at end of file New source code#!/usr/bin/env playonlinux-bash
# Date : (2019-03-28 10-04)
# Last revision : (2019-03-28 10-04)
# Wine version used : 3.0
# Distribution used to test : Ubuntu 18.04 x64
# Script licence : GPL3
# Program licence : Retail
#
# Playonlinux version used : 4.3.4
# CD-ROM french (v1.0 or v1.1 ?). Latest file: /Setup/data2.cab 16/02/2004.
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
TITLE="Castle Strike"
PREFIX="castle_strike"
WORKING_WINE_VERSION="3.0"
AUTHOR="Dadu042"
EDITOR="Data Becker"
GAME_URL="https://www.metacritic.com/game/pc/castle-strike"
Set_OS "WinXP"
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 "$TITLE"
# Problem: Please insert CD (up to Wine 4.4...). Anti copy protection prevent the game to start.
POL_Call POL_Function_NoCDWarning
POL_Call POL_SetupWindow_VMS "32"
POL_Call POL_Install_VideoDriver
POL_Call POL_Install_d3dx9
# Do not install "GameSpy Arcade".
# In order to avoid: "Error_VGARESOLUTION - entry not found in the string table" when the setup.exe start.
POL_Call POL_Function_SetResolution
###############
# Go #
###############
POL_SetupWindow_InstallMethod "LOCAL,CD"
if [ "$INSTALL_METHOD" == "LOCAL" ]; then
cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
SETUP_EXE="$APP_ANSWER"
POL_Wine start /unix "$SETUP_EXE"
POL_Wine_WaitExit "$TITLE"
cd "$POL_System_TmpDir"
else
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "Setup/CaSt.ICO"
POL_Wine start /unix "$CDROM/Setup/setup.exe"
POL_Wine_WaitExit "setup.exe"
cd "$POL_System_TmpDir"
fi
POL_Shortcut "Castlestrike.exe" "$TITLE" ""
POL_Shortcut_Document "$TITLE" "Manuel.pdf"
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0 RepliesThursday 28 March 2019 at 16:00
|
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
Install this program