Jesteś tutaj

Castle Strike

Informations

Creator Wiadmości
Dadu042
Moderator

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 486
Wine: 3.0

Feedbacks

Description

StrategyReal-TimeHistoric,

 

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

Contributions

Filters:

Contribute
Member Wiadmości
Dadu042 Thursday 28 March 2019 at 11:26
Dadu042
Moderator

Information

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

Odpowiedzi

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