GOG.com - Stronghold HD

Informations

Creator Message
TonyFlow

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 20353
Wine: 3.0.3

Feedbacks

Description

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

GOG now has installers for Mac

Source code

#!/bin/bash
# Date : (2013-05-27 22-00)
# Last revision : see changelog
# Wine version used : 
# Distribution used to test : Fedora 17, Debian Sid
# Author : TonyFlow
# Script licence : GPL v.2
# Program licence : Retail
# Depend :
#
# CHANGELOG
# [TonyFlow] (2013-05-27 22-00)
#   Initial script.
# [Pierre Etchemaite] (2013-12-29 11-28)
#   Script updated for GOG's installer v2 ?
# [Dadu042] (2020-04-19 17:30).
#   Wine 1.4.1 (outdated) -> 3.0.3 (not tested)

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

GOGID="stronghold"
PREFIX="Stronghold_gog"
WORKING_WINE_VERSION="3.0.3"

TITLE="GOG.com - Stronghold HD"
SHORTCUT_NAME="Stronghold HD"

POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"

POL_SetupWindow_Init
POL_SetupWindow_SetID 1721
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "FireFly Studios" "http://www.gog.com/gamecard/$GOGID" "TonyFlow" "$PREFIX"

POL_Call POL_GoG_setup "$GOGID" --alternate "setup_$GOGID" "2" "a26178ebca7865949d2458818464cd4e"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_Call POL_GoG_install

POL_Call POL_Install_directplay

# GoG work!
Set_OS winxp

POL_SetupWindow_VMS "64"

# Doesnt hurt ;)
POL_Wine_reboot

# Language selection for the manual shortcut
POL_SetupWindow_menu "$(eval_gettext 'What is your preferred language?')" "$(eval_gettext 'Language')" "en: English~fr: French~de: German~it: Italian~es: Spanish" "~"
MAN_LANG=$(echo "${APP_ANSWER}" | cut -d ':' -f 1)

# Configure the shortcut
GOGPATH="$GOGROOT/Stronghold HD"
POL_Shortcut "Stronghold.exe" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" "Game;StrategyGame;"
POL_Shortcut_Document "$SHORTCUT_NAME" "$GOGPATH/manual/manual_$MAN_LANG.pdf"

POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribute
Member Message
Dadu042 Sunday 19 April 2020 at 18:36
Dadu042

Information

This update has been approved by the team.

Differences

@@ -1,20 +1,27 @@
 #!/bin/bash
 # Date : (2013-05-27 22-00)
-# Last revision : (2013-12-29 11-28)
-# Wine version used : 1.4.1
+# Last revision : see changelog
+# Wine version used : 
 # Distribution used to test : Fedora 17, Debian Sid
 # Author : TonyFlow
-#   updated petch
 # Script licence : GPL v.2
 # Program licence : Retail
 # Depend :
+#
+# CHANGELOG
+# [TonyFlow] (2013-05-27 22-00)
+#   Initial script.
+# [Pierre Etchemaite] (2013-12-29 11-28)
+#   Script updated for GOG's installer v2 ?
+# [Dadu042] (2020-04-19 17:30).
+#   Wine 1.4.1 (outdated) -> 3.0.3 (not tested)
 
 [ -z "$PLAYONLINUX" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
 
 GOGID="stronghold"
 PREFIX="Stronghold_gog"
-WORKING_WINE_VERSION="1.4.1"
+WORKING_WINE_VERSION="3.0.3"
 
 TITLE="GOG.com - Stronghold HD"
 SHORTCUT_NAME="Stronghold HD"
@@ -54,4 +61,4 @@
 POL_Shortcut_Document "$SHORTCUT_NAME" "$GOGPATH/manual/manual_$MAN_LANG.pdf"
 
 POL_SetupWindow_Close
-exit 0
+exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2013-05-27 22-00)
# Last revision : see changelog
# Wine version used : 
# Distribution used to test : Fedora 17, Debian Sid
# Author : TonyFlow
# Script licence : GPL v.2
# Program licence : Retail
# Depend :
#
# CHANGELOG
# [TonyFlow] (2013-05-27 22-00)
#   Initial script.
# [Pierre Etchemaite] (2013-12-29 11-28)
#   Script updated for GOG's installer v2 ?
# [Dadu042] (2020-04-19 17:30).
#   Wine 1.4.1 (outdated) -> 3.0.3 (not tested)

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

GOGID="stronghold"
PREFIX="Stronghold_gog"
WORKING_WINE_VERSION="3.0.3"

TITLE="GOG.com - Stronghold HD"
SHORTCUT_NAME="Stronghold HD"

POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"

POL_SetupWindow_Init
POL_SetupWindow_SetID 1721
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "FireFly Studios" "http://www.gog.com/gamecard/$GOGID" "TonyFlow" "$PREFIX"

POL_Call POL_GoG_setup "$GOGID" --alternate "setup_$GOGID" "2" "a26178ebca7865949d2458818464cd4e"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_Call POL_GoG_install

POL_Call POL_Install_directplay

# GoG work!
Set_OS winxp

POL_SetupWindow_VMS "64"

# Doesnt hurt ;)
POL_Wine_reboot

# Language selection for the manual shortcut
POL_SetupWindow_menu "$(eval_gettext 'What is your preferred language?')" "$(eval_gettext 'Language')" "en: English~fr: French~de: German~it: Italian~es: Spanish" "~"
MAN_LANG=$(echo "${APP_ANSWER}" | cut -d ':' -f 1)

# Configure the shortcut
GOGPATH="$GOGROOT/Stronghold HD"
POL_Shortcut "Stronghold.exe" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" "Game;StrategyGame;"
POL_Shortcut_Document "$SHORTCUT_NAME" "$GOGPATH/manual/manual_$MAN_LANG.pdf"

POL_SetupWindow_Close
exit 0

Replies

piratmartin Monday 20 February 2017 at 13:42
piratmartin Anonymous

Message

Install not create icons but command wine Stronghold.exe runs game. Game work.

Replies

Hoshpak Monday 18 August 2014 at 22:19
Hoshpak Anonymous

Warning

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

Message

Stronghold HD relies on DirectPlay for multiplayer games these don't work properly without the native dlls. Therefore I suggest adding POL_Install_directplay to the script.

Differences

@@ -34,6 +34,8 @@
 
 POL_Call POL_GoG_install
 
+POL_Call POL_Install_directplay
+
 # GoG work!
 Set_OS winxp
 

New source code

#!/bin/bash
# Date : (2013-05-27 22-00)
# Last revision : (2013-12-29 11-28)
# Wine version used : 1.4.1
# Distribution used to test : Fedora 17, Debian Sid
# Author : TonyFlow
#   updated petch
# Script licence : GPL v.2
# Program licence : Retail
# Depend :

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

GOGID="stronghold"
PREFIX="Stronghold_gog"
WORKING_WINE_VERSION="1.4.1"

TITLE="GOG.com - Stronghold HD"
SHORTCUT_NAME="Stronghold HD"

POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"

POL_SetupWindow_Init
POL_SetupWindow_SetID 1721
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "FireFly Studios" "http://www.gog.com/gamecard/$GOGID" "TonyFlow" "$PREFIX"

POL_Call POL_GoG_setup "$GOGID" --alternate "setup_$GOGID" "2" "a26178ebca7865949d2458818464cd4e"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_Call POL_GoG_install

POL_Call POL_Install_directplay

# GoG work!
Set_OS winxp

POL_SetupWindow_VMS "64"

# Doesnt hurt ;)
POL_Wine_reboot

# Language selection for the manual shortcut
POL_SetupWindow_menu "$(eval_gettext 'What is your preferred language?')" "$(eval_gettext 'Language')" "en: English~fr: French~de: German~it: Italian~es: Spanish" "~"
MAN_LANG=$(echo "${APP_ANSWER}" | cut -d ':' -f 1)

# Configure the shortcut
GOGPATH="$GOGROOT/Stronghold HD"
POL_Shortcut "Stronghold.exe" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" "Game;StrategyGame;"
POL_Shortcut_Document "$SHORTCUT_NAME" "$GOGPATH/manual/manual_$MAN_LANG.pdf"

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