Castle Strike

Informations

Creator Message
Dadu042
Moderator

Warning

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

Informations

Platforms:
Downloads: 499
Wine: 3.0

Feedbacks

Description

StrategyReal-TimeHistoric. 2004. Published by Data Becker.

Appdb.winehq.org 

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

Contributions

Filters:

Contribute
Member Message
Dadu042 Wednesday 18 December 2019 at 16:57
Dadu042
Moderator

Information

This update has been approved 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
Moderator

Warning

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

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

Replies

Thursday 28 March 2019 at 16:00
My CD-ROM is v1.1.