Stronghold Crusader

Informations

Creator Message
ertaiNL Anonymous

Warning

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

Informations

Platforms:
Downloads: 0
Wine: 1.6.2-scummvm_support

Feedbacks

Description

Stronghold Crusaders is a real time strategy game (2002). Its basically about building a castle, defending it against enemies and invading other castles. It also contains some non-combat missions.

Wikipedia.

Source code

#!/bin/bash
# Date : (2014-10-10 18:32)
# Last Revision : (2015-10-18 22:18)
# Wine Version used : 1.6.2-scummvm_support
# Distribution used to test : Ubuntu 15.04
# Author: ertaiNL
# Script license : GPL v2
# Programm license : Retail
# Depend :

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

TITLE="Stronghold Crusader"
PREFIX="StrongholdCrusader"
PUBLISHER="Firefly Studios"
PUBLISHER_URL="http://www.fireflyworlds.com/"
AUTHOR="ErtaiNL"
WORKING_WINE_VERSION="1.6.2-scummvm_support"
CD_PATH="Disk1"
CD_INSTALL_FILE="Setup.exe"
STARTUP_FILE="Stronghold Crusader.exe"

POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "$PUBLISHER" "$PUBLISHER_URL" "$AUTHOR" "$PREFIX"

POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "$CD_PATH/$STARTUP_FILE"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

# Check the disc again since the user could have removed it at this point
POL_SetupWindow_check_cdrom "$CD_PATH/$STARTUP_FILE"
POL_Wine "$CDROM/$CD_PATH/$CD_INSTALL_FILE"
POL_Wine_WaitExit "$TITLE"

POL_SetupWindow_message "$(eval_gettext 'NOTICE: If you get an error the first time you start Stronghold Crusader. Normally it works the second time.')" "$TITLE"

POL_Shortcut "$STARTUP_FILE" "$TITLE"

POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribute
Member Message
ertaiNL Monday 19 October 2015 at 23:47
ertaiNL Anonymous

Information

This update has been approved by the team.

Message

Improved the code as asked in the thread "Stronghold Crusader Original"

Differences

@@ -0,0 +1,45 @@
+#!/bin/bash
+# Date : (2014-10-10 18:32)
+# Last Revision : (2015-10-18 22:18)
+# Wine Version used : 1.6.2-scummvm_support
+# Distribution used to test : Ubuntu 15.04
+# Author: ertaiNL
+# Script license : GPL v2
+# Programm license : Retail
+# Depend :
+
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+
+TITLE="Stronghold Crusader"
+PREFIX="StrongholdCrusader"
+PUBLISHER="Firefly Studios"
+PUBLISHER_URL="http://www.fireflyworlds.com/"
+AUTHOR="ErtaiNL"
+WORKING_WINE_VERSION="1.6.2-scummvm_support"
+CD_PATH="Disk1"
+CD_INSTALL_FILE="Setup.exe"
+STARTUP_FILE="Stronghold Crusader.exe"
+
+POL_SetupWindow_Init
+POL_Debug_Init
+
+POL_SetupWindow_presentation "$TITLE" "$PUBLISHER" "$PUBLISHER_URL" "$AUTHOR" "$PREFIX"
+
+POL_SetupWindow_cdrom
+POL_SetupWindow_check_cdrom "$CD_PATH/$STARTUP_FILE"
+
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+
+# Check the disc again since the user could have removed it at this point
+POL_SetupWindow_check_cdrom "$CD_PATH/$STARTUP_FILE"
+POL_Wine "$CDROM/$CD_PATH/$CD_INSTALL_FILE"
+POL_Wine_WaitExit "$TITLE"
+
+POL_SetupWindow_message "$(eval_gettext 'NOTICE: If you get an error the first time you start Stronghold Crusader. Normally it works the second time.')" "$TITLE"
+
+POL_Shortcut "$STARTUP_FILE" "$TITLE"
+
+POL_SetupWindow_Close
+exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2014-10-10 18:32)
# Last Revision : (2015-10-18 22:18)
# Wine Version used : 1.6.2-scummvm_support
# Distribution used to test : Ubuntu 15.04
# Author: ertaiNL
# Script license : GPL v2
# Programm license : Retail
# Depend :

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

TITLE="Stronghold Crusader"
PREFIX="StrongholdCrusader"
PUBLISHER="Firefly Studios"
PUBLISHER_URL="http://www.fireflyworlds.com/"
AUTHOR="ErtaiNL"
WORKING_WINE_VERSION="1.6.2-scummvm_support"
CD_PATH="Disk1"
CD_INSTALL_FILE="Setup.exe"
STARTUP_FILE="Stronghold Crusader.exe"

POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "$PUBLISHER" "$PUBLISHER_URL" "$AUTHOR" "$PREFIX"

POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "$CD_PATH/$STARTUP_FILE"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

# Check the disc again since the user could have removed it at this point
POL_SetupWindow_check_cdrom "$CD_PATH/$STARTUP_FILE"
POL_Wine "$CDROM/$CD_PATH/$CD_INSTALL_FILE"
POL_Wine_WaitExit "$TITLE"

POL_SetupWindow_message "$(eval_gettext 'NOTICE: If you get an error the first time you start Stronghold Crusader. Normally it works the second time.')" "$TITLE"

POL_Shortcut "$STARTUP_FILE" "$TITLE"

POL_SetupWindow_Close
exit 0

Replies

Edited by petch

ertaiNL Friday 10 October 2014 at 0:10
ertaiNL Anonymous

Warning

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

Message

Forgot to add the script

Differences

@@ -0,0 +1,38 @@
+#!/bin/bash
+# Date : (2014-10-10 18:32)
+# Last Revision : (2014-10-10 22:07)
+# Wine Version used : 1.4.1
+# Distribution used to test : Ubuntu 14.04
+# Author: Ertai
+# Script license : GPL v2
+# Programm license : Retail
+# Depend :
+ 
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+ 
+TITLE="Stronghold Crusader"
+PREFIX="StrongholdCrusader"
+WORKING_WINE_VERSION="1.6.2-scummvm_support"
+CD_FILE_TO_CHECK="disk1/Stronghold Crusader.exe"
+CD_INSTALL_FILE="disk1/Setup.exe"
+
+POL_SetupWindow_Init
+ 
+POL_SetupWindow_presentation "$TITLE" "Firefly Studios" "http://www.fireflyworlds.com/" "Ertai" "$PREFIX"
+
+POL_SetupWindow_cdrom
+POL_SetupWindow_check_cdrom "$CD_FILE_TO_CHECK"
+
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+ 
+# Check the disc again since the user could have removed it at this point
+POL_SetupWindow_check_cdrom "$CD_FILE_TO_CHECK"
+POL_Wine start /unix "$CDROM/$CD_INSTALL_FILE"
+POL_Wine_WaitExit
+ 
+POL_Shortcut "Stronghold Crusader.exe" "Stronghold Crusader"
+ 
+POL_SetupWindow_Close
+exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2014-10-10 18:32)
# Last Revision : (2014-10-10 22:07)
# Wine Version used : 1.4.1
# Distribution used to test : Ubuntu 14.04
# Author: Ertai
# Script license : GPL v2
# Programm license : Retail
# Depend :
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Stronghold Crusader"
PREFIX="StrongholdCrusader"
WORKING_WINE_VERSION="1.6.2-scummvm_support"
CD_FILE_TO_CHECK="disk1/Stronghold Crusader.exe"
CD_INSTALL_FILE="disk1/Setup.exe"

POL_SetupWindow_Init
 
POL_SetupWindow_presentation "$TITLE" "Firefly Studios" "http://www.fireflyworlds.com/" "Ertai" "$PREFIX"

POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "$CD_FILE_TO_CHECK"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
# Check the disc again since the user could have removed it at this point
POL_SetupWindow_check_cdrom "$CD_FILE_TO_CHECK"
POL_Wine start /unix "$CDROM/$CD_INSTALL_FILE"
POL_Wine_WaitExit
 
POL_Shortcut "Stronghold Crusader.exe" "Stronghold Crusader"
 
POL_SetupWindow_Close
exit 0

Replies

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