Banished

Informations

Creator Message
foz

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 3691
Wine: 1.7.15

Feedbacks

Description

A city-building strategy video game, 2014.

The game focuses on careful resource management and survival as an isolated and growing society.

 

Wikipedia.

Source code

#!/bin/bash
# Date : (2014-07-12 11:00)
# Last revision : (2014-07-12 16:45)
# Wine version used : 1.7.15
# Distribution used to test : Ubuntu 14.04
# Author : Foz
# Licence : Retail
# Only For : http://www.playonlinux.com
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Banished"
PREFIX="Banished"
EDITOR="Shining Rock Software"
GAME_URL="http://www.shiningrocksoftware.com/"
AUTHOR="Foz"
STEAM_ID="242920"
WORKING_WINE_VERSION="1.7.15"
GAME_VMS="512"
 
# Starting the script
POL_SetupWindow_Init
 
# Starting debugging API
POL_Debug_Init

# Open dialogue box 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"

# Determine Architecture
POL_System_SetArch "x86"

# Downloading wine if necessary and creating prefix
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
# Choose between Steam and other Digital Download versions
POL_SetupWindow_InstallMethod "STEAM,LOCAL"
 
# Installing mandatory dependencies
POL_Call POL_Install_d3dx9
POL_Call POL_Install_xact

# Set Graphic Card information keys for wine
POL_Wine_SetVideoDriver

# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS
  
# Disable Steam In Game Overlay
POL_Wine_OverrideDLL "" "gameoverlayrenderer" # To disable the DLL
 
# Begin game installation
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Call POL_Install_steam
        # Mandatory pre-install fix for steam
        POL_Call POL_Install_steam_flags "$STEAM_ID"
        # Shortcut done before install for steam version
        POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/$STEAM_ID"
        # Steam install
        POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue')" "$TITLE"
        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
        POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID
        POL_Wine_WaitExit "$TITLE"
else
        # Asking then installing local copy of the game
        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"
        # Making shortcut
        rm "$HOME/Desktop/Banished 32-bit.lnk"
        POL_Shortcut "Application-x32.exe" "$TITLE" "$TITLE.png" ""
fi
 
POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribute
Member Message
PaxPlaysOnMac Sunday 10 January 2016 at 21:19
PaxPlaysOnMac Anonymous

Message

I use the Steam version on the Mid-2010 Macbook Pro 13', and it goes perfectly well :)

Core2Duo, 4Gb RAM, GeForce 320m 256Mb shared memory.

I'm using tthe custom Steam client (1.7.53 crossover_hack). Steam made the game install DirectX before first launch, it was quick and only once.

The only thing I had to do is lower the resolution (I don't remember it, but it's just below the native 1280x800, must be around 1172x768 [I know it's not common]) and most details are on low. Not a huge deal to me, game looks more than okay.

But it works! Custom key bindings, keyboard inputs, saves, OSX app switching, closing computer and opening it again : all good!

Thanks PlayOnMac

Replies

foz Sunday 13 July 2014 at 11:13
foz

Message

Ok, this doesn't currently work on Mac 0SX (10.9.4).  

Screen flickering and pulsing.  Will try to work out fix soon.

Replies

Sunday 13 July 2014 at 12:14
Works fine in windowed mode, but not fullscreen.
Sunday 13 July 2014 at 12:39
Screen flickering seems to be a problem for all game
Sunday 13 July 2014 at 12:39
Try to alt+tab
Sunday 13 July 2014 at 13:23
I tried ALT+TAB & CMD+TAB, the flickering stopped and the graphics then started to sheer.
foz Saturday 12 July 2014 at 23:25
foz

Information

This update has been approved by the team.

Message

A couple of lines removed and redundant varibales sorted.

Differences

@@ -0,0 +1,81 @@
+#!/bin/bash
+# Date : (2014-07-12 11:00)
+# Last revision : (2014-07-12 16:45)
+# Wine version used : 1.7.15
+# Distribution used to test : Ubuntu 14.04
+# Author : Foz
+# Licence : Retail
+# Only For : http://www.playonlinux.com
+ 
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+ 
+TITLE="Banished"
+PREFIX="Banished"
+EDITOR="Shining Rock Software"
+GAME_URL="http://www.shiningrocksoftware.com/"
+AUTHOR="Foz"
+STEAM_ID="242920"
+WORKING_WINE_VERSION="1.7.15"
+GAME_VMS="512"
+ 
+# Starting the script
+POL_SetupWindow_Init
+ 
+# Starting debugging API
+POL_Debug_Init
+
+# Open dialogue box 
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
+ 
+# Setting prefix path
+POL_Wine_SelectPrefix "$PREFIX"
+
+# Determine Architecture
+POL_System_SetArch "x86"
+
+# Downloading wine if necessary and creating prefix
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+ 
+# Choose between Steam and other Digital Download versions
+POL_SetupWindow_InstallMethod "STEAM,LOCAL"
+ 
+# Installing mandatory dependencies
+POL_Call POL_Install_d3dx9
+POL_Call POL_Install_xact
+
+# Set Graphic Card information keys for wine
+POL_Wine_SetVideoDriver
+
+# Asking about memory size of graphic card
+POL_SetupWindow_VMS $GAME_VMS
+  
+# Disable Steam In Game Overlay
+POL_Wine_OverrideDLL "" "gameoverlayrenderer" # To disable the DLL
+ 
+# Begin game installation
+if [ "$INSTALL_METHOD" == "STEAM" ]; then
+	POL_Call POL_Install_steam
+        # Mandatory pre-install fix for steam
+        POL_Call POL_Install_steam_flags "$STEAM_ID"
+        # Shortcut done before install for steam version
+        POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/$STEAM_ID"
+        # Steam install
+        POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue')" "$TITLE"
+        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
+        POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID
+	POL_Wine_WaitExit "$TITLE"
+else
+        # Asking then installing local copy of the game
+        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"
+	# Making shortcut
+	rm "$HOME/Desktop/Banished 32-bit.lnk"
+        POL_Shortcut "Application-x32.exe" "$TITLE" "$TITLE.png" ""
+fi
+ 
+POL_SetupWindow_Close
+exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2014-07-12 11:00)
# Last revision : (2014-07-12 16:45)
# Wine version used : 1.7.15
# Distribution used to test : Ubuntu 14.04
# Author : Foz
# Licence : Retail
# Only For : http://www.playonlinux.com
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Banished"
PREFIX="Banished"
EDITOR="Shining Rock Software"
GAME_URL="http://www.shiningrocksoftware.com/"
AUTHOR="Foz"
STEAM_ID="242920"
WORKING_WINE_VERSION="1.7.15"
GAME_VMS="512"
 
# Starting the script
POL_SetupWindow_Init
 
# Starting debugging API
POL_Debug_Init

# Open dialogue box 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"

# Determine Architecture
POL_System_SetArch "x86"

# Downloading wine if necessary and creating prefix
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
# Choose between Steam and other Digital Download versions
POL_SetupWindow_InstallMethod "STEAM,LOCAL"
 
# Installing mandatory dependencies
POL_Call POL_Install_d3dx9
POL_Call POL_Install_xact

# Set Graphic Card information keys for wine
POL_Wine_SetVideoDriver

# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS
  
# Disable Steam In Game Overlay
POL_Wine_OverrideDLL "" "gameoverlayrenderer" # To disable the DLL
 
# Begin game installation
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Call POL_Install_steam
        # Mandatory pre-install fix for steam
        POL_Call POL_Install_steam_flags "$STEAM_ID"
        # Shortcut done before install for steam version
        POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/$STEAM_ID"
        # Steam install
        POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue')" "$TITLE"
        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
        POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID
        POL_Wine_WaitExit "$TITLE"
else
        # Asking then installing local copy of the game
        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"
        # Making shortcut
        rm "$HOME/Desktop/Banished 32-bit.lnk"
        POL_Shortcut "Application-x32.exe" "$TITLE" "$TITLE.png" ""
fi
 
POL_SetupWindow_Close
exit 0

Replies

foz Saturday 12 July 2014 at 18:15
foz

Message

I'm not sure if my adblocker stopped the section to add the source code, but after creating two entries, I don't want to keep creating mistakes, before I can work out the issues.

It would be nice for the system to allow you to review an entry before posting it.

Replies

foz Saturday 12 July 2014 at 18:10
foz

Warning

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

Differences

@@ -0,0 +1,85 @@
+#!/bin/bash
+# Date : (2014-07-12 11:00)
+# Last revision : (2014-07-12 16:45)
+# Wine version used : 1.7.15
+# Distribution used to test : Ubuntu 14.04
+# Author : Foz
+# Licence : Retail
+# Only For : http://www.playonlinux.com
+ 
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+ 
+TITLE="Banished"
+PREFIX="Banished"
+EDITOR="Shining Rock Software"
+GAME_URL="http://www.shiningrocksoftware.com/"
+AUTHOR="Foz"
+STEAM_ID="242920"
+WORKING_WINE_VERSION="1.7.15"
+GAME_VMS="512"
+ 
+# Starting the script
+POL_SetupWindow_Init
+ 
+# Starting debugging API
+POL_Debug_Init
+
+# Open dialogue box 
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
+ 
+# Setting prefix path
+POL_Wine_SelectPrefix "$PREFIX"
+
+# Determine Architecture
+POL_System_SetArch "x86"
+
+# Downloading wine if necessary and creating prefix
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+ 
+# Choose between Steam and other Digital Download versions
+POL_SetupWindow_InstallMethod "STEAM,LOCAL"
+ 
+# Installing mandatory dependencies
+POL_Call POL_Install_d3dx9
+POL_Call POL_Install_xact
+
+# Set Graphic Card information keys for wine
+POL_Wine_SetVideoDriver
+
+# Asking about memory size of graphic card
+POL_SetupWindow_VMS $GAME_VMS
+  
+# Disable Steam In Game Overlay
+POL_Wine_OverrideDLL "" "gameoverlayrenderer" # To disable the DLL
+
+# Mandatory pre-install fix for steam
+[ "$INSTALL_METHOD" == "STEAM" ] && { SHORTCUT_NAME="$TITLE"; }
+ 
+# Begin game installation
+if [ "$INSTALL_METHOD" == "STEAM" ]; then
+	POL_Call POL_Install_steam
+        # Mandatory pre-install fix for steam
+        POL_Call POL_Install_steam_flags "$STEAM_ID"
+        # Shortcut done before install for steam version
+        POL_Shortcut "steam.exe" "$SHORTCUT_NAME" "$TITLE.png" "steam://rungameid/$STEAM_ID"
+        POL_Shortcut "steam.exe" "Steam ($SHORTCUT_NAME)" "" ""
+        # Steam install
+        POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue')" "$TITLE"
+        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
+        POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID
+	POL_Wine_WaitExit "$TITLE"
+else
+        # Asking then installing local copy of the game
+        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"
+	# Making shortcut
+	rm "$HOME/Desktop/Banished 32-bit.lnk"
+        POL_Shortcut "Application-x32.exe" "$SHORTCUT_NAME" "$TITLE.png" ""
+fi
+ 
+POL_SetupWindow_Close
+exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2014-07-12 11:00)
# Last revision : (2014-07-12 16:45)
# Wine version used : 1.7.15
# Distribution used to test : Ubuntu 14.04
# Author : Foz
# Licence : Retail
# Only For : http://www.playonlinux.com
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Banished"
PREFIX="Banished"
EDITOR="Shining Rock Software"
GAME_URL="http://www.shiningrocksoftware.com/"
AUTHOR="Foz"
STEAM_ID="242920"
WORKING_WINE_VERSION="1.7.15"
GAME_VMS="512"
 
# Starting the script
POL_SetupWindow_Init
 
# Starting debugging API
POL_Debug_Init

# Open dialogue box 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"

# Determine Architecture
POL_System_SetArch "x86"

# Downloading wine if necessary and creating prefix
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
# Choose between Steam and other Digital Download versions
POL_SetupWindow_InstallMethod "STEAM,LOCAL"
 
# Installing mandatory dependencies
POL_Call POL_Install_d3dx9
POL_Call POL_Install_xact

# Set Graphic Card information keys for wine
POL_Wine_SetVideoDriver

# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS
  
# Disable Steam In Game Overlay
POL_Wine_OverrideDLL "" "gameoverlayrenderer" # To disable the DLL

# Mandatory pre-install fix for steam
[ "$INSTALL_METHOD" == "STEAM" ] && { SHORTCUT_NAME="$TITLE"; }
 
# Begin game installation
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Call POL_Install_steam
        # Mandatory pre-install fix for steam
        POL_Call POL_Install_steam_flags "$STEAM_ID"
        # Shortcut done before install for steam version
        POL_Shortcut "steam.exe" "$SHORTCUT_NAME" "$TITLE.png" "steam://rungameid/$STEAM_ID"
        POL_Shortcut "steam.exe" "Steam ($SHORTCUT_NAME)" "" ""
        # Steam install
        POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue')" "$TITLE"
        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
        POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID
        POL_Wine_WaitExit "$TITLE"
else
        # Asking then installing local copy of the game
        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"
        # Making shortcut
        rm "$HOME/Desktop/Banished 32-bit.lnk"
        POL_Shortcut "Application-x32.exe" "$SHORTCUT_NAME" "$TITLE.png" ""
fi
 
POL_SetupWindow_Close
exit 0

Replies

Saturday 12 July 2014 at 18:26
Good job! I think you can remove the line 66 and simplify the line 57
Saturday 12 July 2014 at 18:58
First attempt, working from another script, but yep redundant variables in line 57. I wasn't sure on line 66, lots of scripts seem to have that in, but I removed it for myself.
Saturday 12 July 2014 at 18:59
You can remove it
Saturday 12 July 2014 at 20:32
I have done here now, just need to know how to get it in to the OP.
Saturday 12 July 2014 at 23:14
Just use the "contribute" link
Saturday 12 July 2014 at 23:23
That only creates an update. Does a mod/admin move the source up eventually? All very new to this.