GOG.com - Xenonauts

Informations

Creator Message
Okto Anonymous

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 6701
Wine: 1.7.34

Feedbacks

Description

A sci-fi strategy game made by Goldhawk Interactive.

Screenshots

MiniatureMiniature

Source code

#!/bin/bash
# Date : (2015-04-17 16-37)
# Wine version used : 1.7.34
# Distribution used to test : OpenSUSE 13.2
# Author : Benjamin Hardy
  
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="GOG.com - Xenonauts"
GOGID="xenonauts"
PREFIX="Xenonauts"
#Installer crashed when using 1.6.2, but ran well with 1.7.34
WINEVERSION="1.7.34"
SHORTCUT_NAME="Xenonauts"
 
 
POL_SetupWindow_Init
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "Goldhawk Interactive" "http://www.gog.com/gamecard/$GOGID" "Benjamin Hardy" "$PREFIX"
 
POL_SetupWindow_message "$(eval_gettext 'This installer requires the patch provided by gog.com. Please ensure it has been downloaded to a local drive before continuing.')" "$TITLE"
 
 
POL_Call POL_GoG_setup "$GOGID" "682443fa62f222891ee528900866b254"
 
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"
 
POL_Call POL_GoG_install
 
 
POL_SetupWindow_browse "$(eval_gettext 'Please select the patch file.')" "$TITLE"
POL_Wine_WaitBefore "$(eval_gettext 'Please wait, patch installation in progress.')" "$TITLE"
POL_Wine "$APP_ANSWER"
 
 
POL_SetupWindow_VMS "512"
 
POL_Wine_reboot
 
POL_Shortcut "Xenonauts.exe" "$SHORTCUT_NAME" "" "" "Game;StrategyGame"
POL_Shortcut_Document "$SHORTCUT_NAME" "$GOGROOT/Xenonauts/GameManual.pdf"
 
POL_SetupWindow_Close

exit 0

Contributions

Filters:

Contribute
Member Message
Okto Saturday 18 April 2015 at 11:57
Okto Anonymous

Message

Screenshots:

Top:

Left:

48x48:

22x22:

 

Replies

Okto Saturday 18 April 2015 at 8:31
Okto Anonymous

Information

This update has been approved by the team.

Message

added the exit 0
 

Differences

@@ -0,0 +1,48 @@
+#!/bin/bash
+# Date : (2015-04-17 16-37)
+# Wine version used : 1.7.34
+# Distribution used to test : OpenSUSE 13.2
+# Author : Benjamin Hardy
+  
+[ -z "$PLAYONLINUX" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+ 
+TITLE="GOG.com - Xenonauts"
+GOGID="xenonauts"
+PREFIX="Xenonauts"
+#Installer crashed when using 1.6.2, but ran well with 1.7.34
+WINEVERSION="1.7.34"
+SHORTCUT_NAME="Xenonauts"
+ 
+ 
+POL_SetupWindow_Init
+POL_Debug_Init
+ 
+POL_SetupWindow_presentation "$TITLE" "Goldhawk Interactive" "http://www.gog.com/gamecard/$GOGID" "Benjamin Hardy" "$PREFIX"
+ 
+POL_SetupWindow_message "$(eval_gettext 'This installer requires the patch provided by gog.com. Please ensure it has been downloaded to a local drive before continuing.')" "$TITLE"
+ 
+ 
+POL_Call POL_GoG_setup "$GOGID" "682443fa62f222891ee528900866b254"
+ 
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WINEVERSION"
+ 
+POL_Call POL_GoG_install
+ 
+ 
+POL_SetupWindow_browse "$(eval_gettext 'Please select the patch file.')" "$TITLE"
+POL_Wine_WaitBefore "$(eval_gettext 'Please wait, patch installation in progress.')" "$TITLE"
+POL_Wine "$APP_ANSWER"
+ 
+ 
+POL_SetupWindow_VMS "512"
+ 
+POL_Wine_reboot
+ 
+POL_Shortcut "Xenonauts.exe" "$SHORTCUT_NAME" "" "" "Game;StrategyGame"
+POL_Shortcut_Document "$SHORTCUT_NAME" "$GOGROOT/Xenonauts/GameManual.pdf"
+ 
+POL_SetupWindow_Close
+
+exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2015-04-17 16-37)
# Wine version used : 1.7.34
# Distribution used to test : OpenSUSE 13.2
# Author : Benjamin Hardy
  
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="GOG.com - Xenonauts"
GOGID="xenonauts"
PREFIX="Xenonauts"
#Installer crashed when using 1.6.2, but ran well with 1.7.34
WINEVERSION="1.7.34"
SHORTCUT_NAME="Xenonauts"
 
 
POL_SetupWindow_Init
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "Goldhawk Interactive" "http://www.gog.com/gamecard/$GOGID" "Benjamin Hardy" "$PREFIX"
 
POL_SetupWindow_message "$(eval_gettext 'This installer requires the patch provided by gog.com. Please ensure it has been downloaded to a local drive before continuing.')" "$TITLE"
 
 
POL_Call POL_GoG_setup "$GOGID" "682443fa62f222891ee528900866b254"
 
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"
 
POL_Call POL_GoG_install
 
 
POL_SetupWindow_browse "$(eval_gettext 'Please select the patch file.')" "$TITLE"
POL_Wine_WaitBefore "$(eval_gettext 'Please wait, patch installation in progress.')" "$TITLE"
POL_Wine "$APP_ANSWER"
 
 
POL_SetupWindow_VMS "512"
 
POL_Wine_reboot
 
POL_Shortcut "Xenonauts.exe" "$SHORTCUT_NAME" "" "" "Game;StrategyGame"
POL_Shortcut_Document "$SHORTCUT_NAME" "$GOGROOT/Xenonauts/GameManual.pdf"
 
POL_SetupWindow_Close

exit 0

Replies

Okto Friday 17 April 2015 at 22:18
Okto Anonymous

Warning

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

Differences

@@ -0,0 +1,46 @@
+#!/bin/bash
+# Date : (2015-04-17 16-37)
+# Wine version used : 1.7.34
+# Distribution used to test : OpenSUSE 13.2
+# Author : Benjamin Hardy
+ 
+[ -z "$PLAYONLINUX" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+
+TITLE="GOG.com - Xenonauts"
+GOGID="xenonauts"
+PREFIX="Xenonauts"
+#Installer crashed when using 1.6.2, but ran well with 1.7.34
+WINEVERSION="1.7.34"
+SHORTCUT_NAME="Xenonauts"
+
+
+POL_SetupWindow_Init 
+POL_Debug_Init
+
+POL_SetupWindow_presentation "$TITLE" "Goldhawk Interactive" "http://www.gog.com/gamecard/$GOGID" "Benjamin Hardy" "$PREFIX"
+
+POL_SetupWindow_message "$(eval_gettext 'This installer requires the patch provided by gog.com. Please ensure it has been downloaded to a local drive before continuing.')" "$TITLE"
+
+
+POL_Call POL_GoG_setup "$GOGID" "682443fa62f222891ee528900866b254"
+
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WINEVERSION"
+
+POL_Call POL_GoG_install
+
+
+POL_SetupWindow_browse "$(eval_gettext 'Please select the patch file.')" "$TITLE"
+POL_Wine_WaitBefore "$(eval_gettext 'Please wait, patch installation in progress.')" "$TITLE"
+POL_Wine "$APP_ANSWER"
+
+
+POL_SetupWindow_VMS "512"
+
+POL_Wine_reboot
+
+POL_Shortcut "Xenonauts.exe" "$SHORTCUT_NAME" "" "" "Game;StrategyGame"
+POL_Shortcut_Document "$SHORTCUT_NAME" "$GOGROOT/Xenonauts/GameManual.pdf"
+
+POL_SetupWindow_Close
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2015-04-17 16-37)
# Wine version used : 1.7.34
# Distribution used to test : OpenSUSE 13.2
# Author : Benjamin Hardy
 
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="GOG.com - Xenonauts"
GOGID="xenonauts"
PREFIX="Xenonauts"
#Installer crashed when using 1.6.2, but ran well with 1.7.34
WINEVERSION="1.7.34"
SHORTCUT_NAME="Xenonauts"


POL_SetupWindow_Init 
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Goldhawk Interactive" "http://www.gog.com/gamecard/$GOGID" "Benjamin Hardy" "$PREFIX"

POL_SetupWindow_message "$(eval_gettext 'This installer requires the patch provided by gog.com. Please ensure it has been downloaded to a local drive before continuing.')" "$TITLE"


POL_Call POL_GoG_setup "$GOGID" "682443fa62f222891ee528900866b254"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"

POL_Call POL_GoG_install


POL_SetupWindow_browse "$(eval_gettext 'Please select the patch file.')" "$TITLE"
POL_Wine_WaitBefore "$(eval_gettext 'Please wait, patch installation in progress.')" "$TITLE"
POL_Wine "$APP_ANSWER"


POL_SetupWindow_VMS "512"

POL_Wine_reboot

POL_Shortcut "Xenonauts.exe" "$SHORTCUT_NAME" "" "" "Game;StrategyGame"
POL_Shortcut_Document "$SHORTCUT_NAME" "$GOGROOT/Xenonauts/GameManual.pdf"

POL_SetupWindow_Close

Replies

Saturday 18 April 2015 at 2:35
It looks good to me, except that it needs an:

exit 0

at the end. I don't see any issues other than that, though. Petch knows GoG better than I, so let's wait until he checks it out.
Anonymous
Saturday 18 April 2015 at 8:28
Yes, that got lost in the copy and paste!