Space Colony

Informations

Creator Message
LinuxScripter Anonymous

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 3120
Wine: 3.0.3

Feedbacks

Description

Space Colony is a game released in 2003 by Firaxis Studios, most known for their Stronghold series. In this game you manage a colony on a distant planet. The personel is made out of many inviduals - each of them have diffirent needs and personality. The game consists of the main campain that let's you meet some of the characters that work for the Blackwater Industries - a somewhat shady space mining and exploration organization that is known for hiring social mishaps who weren't able to find a more safe job. Then the campain splits into two branches - peaceful and military. Other modes include the Galaxy mode which consists of many scenarios on difirent worlds, Sandbox mode and user levels.

As an manager of such place you need to make sure your colonists are satisfied so they can work longer, construct biodomes and place beds, showers, mesa halls and other facilities inside them. You must also ensure people inside your base are getting along - some of them can be very anit-social and may offen start fights with others which will negativly affect their health. Manage extraction of the planet's natural resources and sell them for profit. Protect the colony from alien lifeforms that range from simple bugs and aggresivly fast growing plants to inteligent space invaders and inter-dimensional beings.

The game recived two updates:

  • version 1.1 fixes the repair station along with some other minor bugfixes
  • version 1.2 is commonly known as HD update. It increases the max screen resolution and improves the graphics.

It also got released on Steam with all the updates included.

Source code

#!/bin/bash
# Date : (2018-01-24 23-45)
# Last revision : (2018-11-02 12-31)
# Wine version used : 3.0.3
# Distribution used to test : Ubuntu 18.10 x64
# Script licence : GPL3
# Program licence : Retail
  
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Space Colony"
PREFIX="SpaceColony"
WORKING_WINE_VERSION="3.0.3"
AUTHOR="LinuxScripter"
EDITOR="Firefly Studios"
GAME_URL="http://www.spacecolonyhd.com/"
GOGID="space_colony_hd"
  
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"

POL_SetupWindows_message "$(eval_gettext 'The CD option is for an version of $TITLE that came on two CD-ROMs. DVD is for single disc.')" 
POL_SetupWindow_InstallMethod "DOWNLOAD,CD,STEAM,DVD"
if [ "$INSTALL_METHOD" == "DOWNLOAD" ]; then
        POL_Call POL_GoG_setup "$GOGID"
        POL_Call POL_GoG_install
elif [ "$INSTALL_METHOD" == "STEAM" ];then
        POL_Call POL_Install_steam
        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
        POL_Wine "steam.exe" steam://install/297920
        POL_Wine_WaitBefore "$TITLE"
elif [ "$INSTALL_METHOD" == "DVD" ]; then
        POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "Disk1/setup.inx"
        POL_Wine start /unix "$CDROM/Disk1/setup.exe"
        POL_Wine_WaitExit "setup.exe"
        cd "$POL_System_TmpDir"
        POL_Download "https://d1ztm8591kdhlc.cloudfront.net/hdpatches/Space_Colony_HD_Update.exe" "C821E5C7035B9B517823466F4CEDADD3"
        POL_Wine start /unix "Space_Colony_HD_Update.exe"
        POL_Wine_WaitExit "Space_Colony_HD_Update.exe"
else
        #CD-ROM 1
        POL_SetupWindow_message "$(eval_gettext 'Please insert CD 1.')"
        POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "Disk1/setup.inx"
        cd "$WINEPREFIX/dosdevices"
        rm "d::"
        ln -s "$CDROM" "d:"
        cd "$CDROM"
        POL_Wine "$CDROM/Disk1/setup.exe"
        POL_SetupWindow_message "$(eval_gettext 'When the game setup will ask for next disk\nclick on "Next".')"
        #CD-ROM 2
        POL_SetupWindow_message "$(eval_gettext 'Please insert CD 2.')"
        POL_SetupWindow_cdrom
        cd "$WINEPREFIX/dosdevices"
        rm "d:"
        ln -s "$CDROM" "d:"
        cd "$POL_System_TmpDir"
        POL_Download "https://d1ztm8591kdhlc.cloudfront.net/hdpatches/Space_Colony_HD_Update.exe" "C821E5C7035B9B517823466F4CEDADD3"
        POL_Wine start /unix "Space_Colony_HD_Update.exe"
        POL_Wine_WaitExit "Space_Colony_HD_Update.exe" 

fi
 
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/297920"
else
        POL_Shortcut "Space Colony.exe" "$TITLE" "" "Game;StrategyGame;"
fi
 
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribute
Member Message
LinuxScripter Friday 2 November 2018 at 13:56
LinuxScripter Anonymous

Information

This update has been approved by the team.

Message

Added an experimental support for the version of the game which was apparently sold on France on two CD-ROMs.

Differences

@@ -0,0 +1,81 @@
+#!/bin/bash
+# Date : (2018-01-24 23-45)
+# Last revision : (2018-11-02 12-31)
+# Wine version used : 3.0.3
+# Distribution used to test : Ubuntu 18.10 x64
+# Script licence : GPL3
+# Program licence : Retail
+  
+[ -z "$PLAYONLINUX" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+ 
+TITLE="Space Colony"
+PREFIX="SpaceColony"
+WORKING_WINE_VERSION="3.0.3"
+AUTHOR="LinuxScripter"
+EDITOR="Firefly Studios"
+GAME_URL="http://www.spacecolonyhd.com/"
+GOGID="space_colony_hd"
+  
+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"
+
+POL_SetupWindows_message "$(eval_gettext 'The CD option is for an version of $TITLE that came on two CD-ROMs. DVD is for single disc.')" 
+POL_SetupWindow_InstallMethod "DOWNLOAD,CD,STEAM,DVD"
+if [ "$INSTALL_METHOD" == "DOWNLOAD" ]; then
+        POL_Call POL_GoG_setup "$GOGID"
+        POL_Call POL_GoG_install
+elif [ "$INSTALL_METHOD" == "STEAM" ];then
+        POL_Call POL_Install_steam
+        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
+        POL_Wine "steam.exe" steam://install/297920
+        POL_Wine_WaitBefore "$TITLE"
+elif [ "$INSTALL_METHOD" == "DVD" ]; then
+        POL_SetupWindow_cdrom
+        POL_SetupWindow_check_cdrom "Disk1/setup.inx"
+        POL_Wine start /unix "$CDROM/Disk1/setup.exe"
+        POL_Wine_WaitExit "setup.exe"
+        cd "$POL_System_TmpDir"
+        POL_Download "https://d1ztm8591kdhlc.cloudfront.net/hdpatches/Space_Colony_HD_Update.exe" "C821E5C7035B9B517823466F4CEDADD3"
+        POL_Wine start /unix "Space_Colony_HD_Update.exe"
+        POL_Wine_WaitExit "Space_Colony_HD_Update.exe"
+else
+        #CD-ROM 1
+        POL_SetupWindow_message "$(eval_gettext 'Please insert CD 1.')"
+        POL_SetupWindow_cdrom
+        POL_SetupWindow_check_cdrom "Disk1/setup.inx"
+        cd "$WINEPREFIX/dosdevices"
+        rm "d::"
+        ln -s "$CDROM" "d:"
+        cd "$CDROM"
+        POL_Wine "$CDROM/Disk1/setup.exe"
+        POL_SetupWindow_message "$(eval_gettext 'When the game setup will ask for next disk\nclick on "Next".')"
+        #CD-ROM 2
+        POL_SetupWindow_message "$(eval_gettext 'Please insert CD 2.')"
+        POL_SetupWindow_cdrom
+        cd "$WINEPREFIX/dosdevices"
+        rm "d:"
+        ln -s "$CDROM" "d:"
+        cd "$POL_System_TmpDir"
+        POL_Download "https://d1ztm8591kdhlc.cloudfront.net/hdpatches/Space_Colony_HD_Update.exe" "C821E5C7035B9B517823466F4CEDADD3"
+        POL_Wine start /unix "Space_Colony_HD_Update.exe"
+        POL_Wine_WaitExit "Space_Colony_HD_Update.exe" 
+
+fi
+ 
+if [ "$INSTALL_METHOD" == "STEAM" ]; then
+        POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/297920"
+else
+        POL_Shortcut "Space Colony.exe" "$TITLE" "" "Game;StrategyGame;"
+fi
+ 
+POL_System_TmpDelete
+POL_SetupWindow_Close
+exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2018-01-24 23-45)
# Last revision : (2018-11-02 12-31)
# Wine version used : 3.0.3
# Distribution used to test : Ubuntu 18.10 x64
# Script licence : GPL3
# Program licence : Retail
  
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Space Colony"
PREFIX="SpaceColony"
WORKING_WINE_VERSION="3.0.3"
AUTHOR="LinuxScripter"
EDITOR="Firefly Studios"
GAME_URL="http://www.spacecolonyhd.com/"
GOGID="space_colony_hd"
  
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"

POL_SetupWindows_message "$(eval_gettext 'The CD option is for an version of $TITLE that came on two CD-ROMs. DVD is for single disc.')" 
POL_SetupWindow_InstallMethod "DOWNLOAD,CD,STEAM,DVD"
if [ "$INSTALL_METHOD" == "DOWNLOAD" ]; then
        POL_Call POL_GoG_setup "$GOGID"
        POL_Call POL_GoG_install
elif [ "$INSTALL_METHOD" == "STEAM" ];then
        POL_Call POL_Install_steam
        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
        POL_Wine "steam.exe" steam://install/297920
        POL_Wine_WaitBefore "$TITLE"
elif [ "$INSTALL_METHOD" == "DVD" ]; then
        POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "Disk1/setup.inx"
        POL_Wine start /unix "$CDROM/Disk1/setup.exe"
        POL_Wine_WaitExit "setup.exe"
        cd "$POL_System_TmpDir"
        POL_Download "https://d1ztm8591kdhlc.cloudfront.net/hdpatches/Space_Colony_HD_Update.exe" "C821E5C7035B9B517823466F4CEDADD3"
        POL_Wine start /unix "Space_Colony_HD_Update.exe"
        POL_Wine_WaitExit "Space_Colony_HD_Update.exe"
else
        #CD-ROM 1
        POL_SetupWindow_message "$(eval_gettext 'Please insert CD 1.')"
        POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "Disk1/setup.inx"
        cd "$WINEPREFIX/dosdevices"
        rm "d::"
        ln -s "$CDROM" "d:"
        cd "$CDROM"
        POL_Wine "$CDROM/Disk1/setup.exe"
        POL_SetupWindow_message "$(eval_gettext 'When the game setup will ask for next disk\nclick on "Next".')"
        #CD-ROM 2
        POL_SetupWindow_message "$(eval_gettext 'Please insert CD 2.')"
        POL_SetupWindow_cdrom
        cd "$WINEPREFIX/dosdevices"
        rm "d:"
        ln -s "$CDROM" "d:"
        cd "$POL_System_TmpDir"
        POL_Download "https://d1ztm8591kdhlc.cloudfront.net/hdpatches/Space_Colony_HD_Update.exe" "C821E5C7035B9B517823466F4CEDADD3"
        POL_Wine start /unix "Space_Colony_HD_Update.exe"
        POL_Wine_WaitExit "Space_Colony_HD_Update.exe" 

fi
 
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/297920"
else
        POL_Shortcut "Space Colony.exe" "$TITLE" "" "Game;StrategyGame;"
fi
 
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Replies

Thursday 1 August 2019 at 23:41
Approved.
LinuxScripter Tuesday 6 February 2018 at 1:16
LinuxScripter Anonymous

Warning

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

Message

Replaced local with GOG installer. Gives me thr 403 Forbidden error but that's because I dont have GOG version fo this game. Also added the checksum to the patch link.

Differences

@@ -0,0 +1,58 @@
+#!/bin/bash
+# Date : (2018-01-24 23-45)
+# Last revision : (2018-01-31 13-59)
+# Wine version used : 3.0
+# Distribution used to test : Ubuntu 18.04 x64
+# Script licence : GPL3
+# Program licence : Retail
+ 
+[ -z "$PLAYONLINUX" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+
+TITLE="Space Colony" 
+PREFIX="SpaceColony"
+WORKING_WINE_VERSION="3.0"
+AUTHOR="LinuxScripter"
+EDITOR="Firefly Studios"
+GAME_URL="http://www.spacecolonyhd.com/"
+GOGID="space_colony_hd"
+ 
+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"
+
+POL_SetupWindow_InstallMethod "DOWNLOAD,CD,STEAM"
+if [ "$INSTALL_METHOD" == "DOWNLOAD" ]; then
+	POL_Call POL_GoG_setup "$GOGID" 
+	POL_Call POL_GoG_install
+elif [ "$INSTALL_METHOD" == "STEAM" ];then
+	POL_Call POL_Install_steam
+	cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
+	POL_Wine "steam.exe" steam://install/297920
+	POL_Wine_WaitBefore "$TITLE"
+else
+	POL_SetupWindow_cdrom
+	POL_SetupWindow_check_cdrom "Disk1/setup.inx"
+	POL_Wine start /unix "$CDROM/Disk1/setup.exe"
+	POL_Wine_WaitExit "setup.exe"
+	cd "$POL_System_TmpDir"
+	POL_Download "https://d1ztm8591kdhlc.cloudfront.net/hdpatches/Space_Colony_HD_Update.exe" "C821E5C7035B9B517823466F4CEDADD3"
+	POL_Wine start /unix "Space_Colony_HD_Update.exe"
+	POL_Wine_WaitExit "Space_Colony_HD_Update.exe"
+fi
+
+if [ "$INSTALL_METHOD" == "STEAM" ]; then
+        POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/297920"
+else
+        POL_Shortcut "Space Colony.exe" "$TITLE" "" "Game;StrategyGame;"
+fi
+
+POL_System_TmpDelete 
+POL_SetupWindow_Close
+exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2018-01-24 23-45)
# Last revision : (2018-01-31 13-59)
# Wine version used : 3.0
# Distribution used to test : Ubuntu 18.04 x64
# Script licence : GPL3
# Program licence : Retail
 
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="Space Colony" 
PREFIX="SpaceColony"
WORKING_WINE_VERSION="3.0"
AUTHOR="LinuxScripter"
EDITOR="Firefly Studios"
GAME_URL="http://www.spacecolonyhd.com/"
GOGID="space_colony_hd"
 
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"

POL_SetupWindow_InstallMethod "DOWNLOAD,CD,STEAM"
if [ "$INSTALL_METHOD" == "DOWNLOAD" ]; then
        POL_Call POL_GoG_setup "$GOGID" 
        POL_Call POL_GoG_install
elif [ "$INSTALL_METHOD" == "STEAM" ];then
        POL_Call POL_Install_steam
        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
        POL_Wine "steam.exe" steam://install/297920
        POL_Wine_WaitBefore "$TITLE"
else
        POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "Disk1/setup.inx"
        POL_Wine start /unix "$CDROM/Disk1/setup.exe"
        POL_Wine_WaitExit "setup.exe"
        cd "$POL_System_TmpDir"
        POL_Download "https://d1ztm8591kdhlc.cloudfront.net/hdpatches/Space_Colony_HD_Update.exe" "C821E5C7035B9B517823466F4CEDADD3"
        POL_Wine start /unix "Space_Colony_HD_Update.exe"
        POL_Wine_WaitExit "Space_Colony_HD_Update.exe"
fi

if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/297920"
else
        POL_Shortcut "Space Colony.exe" "$TITLE" "" "Game;StrategyGame;"
fi

POL_System_TmpDelete 
POL_SetupWindow_Close
exit 0

Replies

Tuesday 6 February 2018 at 17:13
It's probably a bad gogid. And we required md5 checksum. Also gog installation required sometimes a lot of patch. Maybe you can drop the gog support for now. We usually use a different script for GOG games
Anonymous
Tuesday 6 February 2018 at 18:34
I think its good since it dosen't give the 404 not fount error. Actually I'm sure its the correct gogid since you can find space_colony_hd in the game's page on GOG (https://www.gog.com/game/space_colony_hd). You have to right-click and click on "show page's source". Not sure about the instalation but let's see if someone who owns this game on GOG reports something.
LinuxScripter Saturday 3 February 2018 at 23:47
LinuxScripter Anonymous

Warning

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

Message

It appears I copied an older script which had an old link to the patcher in the LOCAL section. Fixed.

Differences

@@ -0,0 +1,65 @@
+#!/bin/bash
+# Date : (2018-01-24 23-45)
+# Last revision : (2018-01-31 13-59)
+# Wine version used : 3.0
+# Distribution used to test : Ubuntu 18.04 x64
+# Script licence : GPL3
+# Program licence : Retail
+ 
+[ -z "$PLAYONLINUX" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+
+TITLE="Space Colony" 
+PREFIX="SpaceColony"
+WORKING_WINE_VERSION="3.0"
+AUTHOR="LinuxScripter"
+EDITOR="Firefly Studios"
+GAME_URL="http://www.spacecolonyhd.com/"
+ 
+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"
+
+POL_SetupWindow_InstallMethod "LOCAL,CD,STEAM"
+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"
+	POL_Download "https://d1ztm8591kdhlc.cloudfront.net/hdpatches/Space_Colony_HD_Update.exe"
+	POL_Wine start /unix "Space_Colony_HD_Update.exe"
+	POL_Wine_WaitExit "Space_Colony_HD_Update.exe"
+
+elif [ "$INSTALL_METHOD" == "STEAM" ];then
+	POL_Call POL_Install_steam
+	cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
+	POL_Wine "steam.exe" steam://install/297920
+	POL_Wine_WaitBefore "$TITLE"
+else
+	POL_SetupWindow_cdrom
+	POL_SetupWindow_check_cdrom "Disk1/setup.inx"
+	POL_Wine start /unix "$CDROM/Disk1/setup.exe"
+	POL_Wine_WaitExit "setup.exe"
+	cd "$POL_System_TmpDir"
+	POL_Download "https://d1ztm8591kdhlc.cloudfront.net/hdpatches/Space_Colony_HD_Update.exe"
+	POL_Wine start /unix "Space_Colony_HD_Update.exe"
+	POL_Wine_WaitExit "Space_Colony_HD_Update.exe"
+fi
+
+if [ "$INSTALL_METHOD" == "STEAM" ]; then
+        POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/297920"
+else
+        POL_Shortcut "Space Colony.exe" "$TITLE" "" "Game;StrategyGame;"
+fi
+
+POL_System_TmpDelete 
+POL_SetupWindow_Close
+exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2018-01-24 23-45)
# Last revision : (2018-01-31 13-59)
# Wine version used : 3.0
# Distribution used to test : Ubuntu 18.04 x64
# Script licence : GPL3
# Program licence : Retail
 
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="Space Colony" 
PREFIX="SpaceColony"
WORKING_WINE_VERSION="3.0"
AUTHOR="LinuxScripter"
EDITOR="Firefly Studios"
GAME_URL="http://www.spacecolonyhd.com/"
 
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"

POL_SetupWindow_InstallMethod "LOCAL,CD,STEAM"
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"
        POL_Download "https://d1ztm8591kdhlc.cloudfront.net/hdpatches/Space_Colony_HD_Update.exe"
        POL_Wine start /unix "Space_Colony_HD_Update.exe"
        POL_Wine_WaitExit "Space_Colony_HD_Update.exe"

elif [ "$INSTALL_METHOD" == "STEAM" ];then
        POL_Call POL_Install_steam
        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
        POL_Wine "steam.exe" steam://install/297920
        POL_Wine_WaitBefore "$TITLE"
else
        POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "Disk1/setup.inx"
        POL_Wine start /unix "$CDROM/Disk1/setup.exe"
        POL_Wine_WaitExit "setup.exe"
        cd "$POL_System_TmpDir"
        POL_Download "https://d1ztm8591kdhlc.cloudfront.net/hdpatches/Space_Colony_HD_Update.exe"
        POL_Wine start /unix "Space_Colony_HD_Update.exe"
        POL_Wine_WaitExit "Space_Colony_HD_Update.exe"
fi

if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/297920"
else
        POL_Shortcut "Space Colony.exe" "$TITLE" "" "Game;StrategyGame;"
fi

POL_System_TmpDelete 
POL_SetupWindow_Close
exit 0

Replies

Anonymous
Saturday 3 February 2018 at 23:48
BTW those are official links from the game's website.
Sunday 4 February 2018 at 17:44
game's website use cloudfront ?
Anonymous
Monday 5 February 2018 at 11:02
Yes. You can see here:
https://imgur.com/a/f135u
Monday 5 February 2018 at 15:24
I see only a GOG version and a steam edition. You can you have a local one ?
with POL_Download please indicate the MD5 checksum, the website give you that checksum ;)
Anonymous
Monday 5 February 2018 at 17:57
What do you mean? There is a cd version of Space Colony, Steam version and GOG version. I did not add GOG version simply because I dont have one - only the CD.
Monday 5 February 2018 at 18:02
Yea but why use LOCAL ? And GOG need special script sometime
Anonymous
Monday 5 February 2018 at 21:30
Used local because there is no GOG option in POL_SetupWindow_InstallMethod.
Monday 5 February 2018 at 21:49
Because GOG are usually in a special script. GOG is a bit tricky
Tuesday 6 February 2018 at 0:29
cd "$POL_System_TmpDir/$TITLE" is correct TMP patch.
LinuxScripter Saturday 3 February 2018 at 14:31
LinuxScripter Anonymous

Warning

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

Message

After testing I found out that version 3.0 of Wine allows to play this game with no problem without any extra dependencies. The CD version is outdated so the script will download the patch from the game's website.

Differences

@@ -0,0 +1,66 @@
+#!/bin/bash
+# Date : (2018-01-24 23-45)
+# Last revision : (2018-01-31 13-59)
+# Wine version used : 3.0
+# Distribution used to test : Ubuntu 18.04 x64
+# Script licence : GPL3
+# Program licence : Retail
+ 
+[ -z "$PLAYONLINUX" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+
+TITLE="Space Colony" 
+PREFIX="SpaceColony"
+WORKING_WINE_VERSION="3.0"
+AUTHOR="LinuxScripter"
+EDITOR="Firefly Studios"
+GAME_URL="http://www.spacecolonyhd.com/"
+ 
+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"
+
+POL_SetupWindow_InstallMethod "LOCAL,CD,STEAM"
+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"
+	POL_Download "http://www.patches-scrolls.com/getfile.php?file=space_colony_hd_update.zip&mirror=1"
+	unzip space_colony_hd_update.zip
+	POL_Wine start /unix "Space_Colony_HD_Update.exe"
+	POL_Wine_WaitExit "Space_Colony_HD_Update.exe"
+
+elif [ "$INSTALL_METHOD" == "STEAM" ];then
+	POL_Call POL_Install_steam
+	cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
+	POL_Wine "steam.exe" steam://install/297920
+	POL_Wine_WaitBefore "$TITLE"
+else
+	POL_SetupWindow_cdrom
+	POL_SetupWindow_check_cdrom "Disk1/setup.inx"
+	POL_Wine start /unix "$CDROM/Disk1/setup.exe"
+	POL_Wine_WaitExit "setup.exe"
+	cd "$POL_System_TmpDir"
+	POL_Download "https://d1ztm8591kdhlc.cloudfront.net/hdpatches/Space_Colony_HD_Update.exe"
+	POL_Wine start /unix "Space_Colony_HD_Update.exe"
+	POL_Wine_WaitExit "Space_Colony_HD_Update.exe"
+fi
+
+if [ "$INSTALL_METHOD" == "STEAM" ]; then
+        POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/297920"
+else
+        POL_Shortcut "Space Colony.exe" "$TITLE" "" "Game;StrategyGame;"
+fi
+
+POL_System_TmpDelete 
+POL_SetupWindow_Close
+exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2018-01-24 23-45)
# Last revision : (2018-01-31 13-59)
# Wine version used : 3.0
# Distribution used to test : Ubuntu 18.04 x64
# Script licence : GPL3
# Program licence : Retail
 
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="Space Colony" 
PREFIX="SpaceColony"
WORKING_WINE_VERSION="3.0"
AUTHOR="LinuxScripter"
EDITOR="Firefly Studios"
GAME_URL="http://www.spacecolonyhd.com/"
 
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"

POL_SetupWindow_InstallMethod "LOCAL,CD,STEAM"
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"
        POL_Download "http://www.patches-scrolls.com/getfile.php?file=space_colony_hd_update.zip&mirror=1"
        unzip space_colony_hd_update.zip
        POL_Wine start /unix "Space_Colony_HD_Update.exe"
        POL_Wine_WaitExit "Space_Colony_HD_Update.exe"

elif [ "$INSTALL_METHOD" == "STEAM" ];then
        POL_Call POL_Install_steam
        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
        POL_Wine "steam.exe" steam://install/297920
        POL_Wine_WaitBefore "$TITLE"
else
        POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "Disk1/setup.inx"
        POL_Wine start /unix "$CDROM/Disk1/setup.exe"
        POL_Wine_WaitExit "setup.exe"
        cd "$POL_System_TmpDir"
        POL_Download "https://d1ztm8591kdhlc.cloudfront.net/hdpatches/Space_Colony_HD_Update.exe"
        POL_Wine start /unix "Space_Colony_HD_Update.exe"
        POL_Wine_WaitExit "Space_Colony_HD_Update.exe"
fi

if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/297920"
else
        POL_Shortcut "Space Colony.exe" "$TITLE" "" "Game;StrategyGame;"
fi

POL_System_TmpDelete 
POL_SetupWindow_Close
exit 0

Replies

Saturday 3 February 2018 at 19:03
No official patch URL ? Not sure about these one. Btw the first one seem not working
Anonymous
Saturday 3 February 2018 at 21:12
Crap I forgot to change that patch-scrols.de link to a more official one.

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