Banished

Informations

Créateur Messages
foz

Attention

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

Informations

Plate-formes :
Téléchargements : 7341
Wine: 2.22

Retours d'expérience

Description

A city-building strategy video game, 2014.

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

 

Wikipedia. PCGamingWiki.

Code source

#!/bin/bash
# Date : (2014-07-12 11:00)
# Last revision : see Changelog
# Wine version used : see Changelog
# Distribution used to test : KUbuntu 18.04
# Author : Foz
# Licence : Retail
# Only For : http://www.playonlinux.com
#
# TESTED (with succcess): 
#  - v1.0.0 standalone installer + Wine 2.22.
#  - v1.0.0 + patch v1.0.1 (note: still show v1.0.0 in the main menu).
#
#
# CHANGELOG
# Foz (2014-07-12)
#   First script.
# [Dadu042] (2019-07-30 13:02)
#   Wine 1.7.55 -> 2.22.
#   Add support for installing from .RAR or .ZIP files.
#
# KNOWN ISSUES
#  - v1.0.7 Build 170910 (Steam) + Wine 1.7.55, 2.22, 3.0.3, 4.0.1: crash when loading.
#  - v1.0.0 + patch v1.0.4 (BanishedPatch_Any_To_1.0.4.141103.zip) + Wine 2.22: once patched, when game launched a new window appear (buttons: Options, Video Options, Play), game freeze when 'Play' is clicked. Log last line: 'err:seh:setup_exception_record stack overflow'
#  - v1.0.0 + patch v1.0.3 (Banished_1.0.3_Beta_140531) + Wine 2.22, 3.0.3, 4.0.1: after the Loading animation, the screen goes black and only the mouse cursor is show. POL's error window: 'Fatal error in wined3d.dll'.


[ "$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="2.22"
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"

POL_RequiredVersion "4.0.0" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"

# 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"
  
# Installing mandatory dependencies
POL_Call POL_Install_d3dx9
POL_Call POL_Install_xact

# Choose between Steam and other Digital Download versions
POL_SetupWindow_InstallMethod "STEAM,LOCAL"

# 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"


elif [ "$INSTALL_METHOD" == "LOCAL" ]; then
 
        POL_SetupWindow_menu "$(eval_gettext 'What is the type of the file?.')" "$TITLE" "$(eval_gettext '.EXE')~$(eval_gettext '.ZIP')~$(eval_gettext '.RAR')" "~"

if [ "$APP_ANSWER" == ".EXE" ]; then

        # 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 "Banished-x32.exe" "$TITLE (Banished-x32)" "$TITLE.png" ""
        POL_Shortcut "Application-x32.exe" "$TITLE (Application-x32)" "$TITLE.png" ""
        
elif [ "$APP_ANSWER" == "$(eval_gettext '.ZIP')" ]; then
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the .ZIP file')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
        cd "$POL_System_TmpDir"
 
        POL_SetupWindow_wait_next_signal "$(eval_gettext 'Extracting the archive...')" "$TITLE"
        POL_System_unzip "$APP_ANSWER" -d "$WINEPREFIX/drive_c/"
        
        POL_Shortcut "Application-steam-x32.exe" "$TITLE" "$TITLE.png" ""
        
elif [ "$APP_ANSWER" == "$(eval_gettext '.RAR')" ]; then
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the .RAR file')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
        cd "$POL_System_TmpDir"
 
        POL_SetupWindow_wait_next_signal "$(eval_gettext 'Extracting the archive...')" "$TITLE"
        POL_System_unrar x "$APP_ANSWER" "$WINEPREFIX/drive_c/"
        
        POL_Shortcut "Application-steam-x32.exe" "$TITLE" "$TITLE.png" ""
fi
fi

# Set Graphic Card information keys for wine
POL_Wine_SetVideoDriver

# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS

POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribuer
Membre Messages
Dadu042 Samedi 2 Novembre 2019 à 23:23
Dadu042

Information

Cette mise à jour a été acceptée par l'équipe

Messages

I set this game to 'testing' because I can't make it run.

Differences

@@ -6,10 +6,11 @@
 # Author : Foz
 # Licence : Retail
 # Only For : http://www.playonlinux.com
-
+#
 # TESTED (with succcess): 
-# - v1.0.0 standalone installer + Wine 2.22.
-
+#  - v1.0.0 standalone installer + Wine 2.22.
+#  - v1.0.0 + patch v1.0.1 (note: still show v1.0.0 in the main menu).
+#
 #
 # CHANGELOG
 # Foz (2014-07-12)
@@ -20,7 +21,9 @@
 #
 # KNOWN ISSUES
 #  - v1.0.7 Build 170910 (Steam) + Wine 1.7.55, 2.22, 3.0.3, 4.0.1: crash when loading.
-#  - v1.0.0 + patch v1.0.4 (BanishedPatch_Any_To_1.0.4.141103.zip): once patched, when game launched a new window appear (buttons: Options, Video Options, Play), game freeze when 'Play' is clicked.
+#  - v1.0.0 + patch v1.0.4 (BanishedPatch_Any_To_1.0.4.141103.zip) + Wine 2.22: once patched, when game launched a new window appear (buttons: Options, Video Options, Play), game freeze when 'Play' is clicked. Log last line: 'err:seh:setup_exception_record stack overflow'
+#  - v1.0.0 + patch v1.0.3 (Banished_1.0.3_Beta_140531) + Wine 2.22, 3.0.3, 4.0.1: after the Loading animation, the screen goes black and only the mouse cursor is show. POL's error window: 'Fatal error in wined3d.dll'.
+
 
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
@@ -42,7 +45,9 @@
  
 # Open dialogue box 
 POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
-  
+
+POL_RequiredVersion "4.0.0" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"
+
 # Setting prefix path
 POL_Wine_SelectPrefix "$PREFIX"
  
@@ -125,4 +130,4 @@
 POL_SetupWindow_VMS $GAME_VMS
 
 POL_SetupWindow_Close
-exit 0
\ No newline at end of file
+exit 0

Nouveau code source

#!/bin/bash
# Date : (2014-07-12 11:00)
# Last revision : see Changelog
# Wine version used : see Changelog
# Distribution used to test : KUbuntu 18.04
# Author : Foz
# Licence : Retail
# Only For : http://www.playonlinux.com
#
# TESTED (with succcess): 
#  - v1.0.0 standalone installer + Wine 2.22.
#  - v1.0.0 + patch v1.0.1 (note: still show v1.0.0 in the main menu).
#
#
# CHANGELOG
# Foz (2014-07-12)
#   First script.
# [Dadu042] (2019-07-30 13:02)
#   Wine 1.7.55 -> 2.22.
#   Add support for installing from .RAR or .ZIP files.
#
# KNOWN ISSUES
#  - v1.0.7 Build 170910 (Steam) + Wine 1.7.55, 2.22, 3.0.3, 4.0.1: crash when loading.
#  - v1.0.0 + patch v1.0.4 (BanishedPatch_Any_To_1.0.4.141103.zip) + Wine 2.22: once patched, when game launched a new window appear (buttons: Options, Video Options, Play), game freeze when 'Play' is clicked. Log last line: 'err:seh:setup_exception_record stack overflow'
#  - v1.0.0 + patch v1.0.3 (Banished_1.0.3_Beta_140531) + Wine 2.22, 3.0.3, 4.0.1: after the Loading animation, the screen goes black and only the mouse cursor is show. POL's error window: 'Fatal error in wined3d.dll'.


[ "$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="2.22"
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"

POL_RequiredVersion "4.0.0" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"

# 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"
  
# Installing mandatory dependencies
POL_Call POL_Install_d3dx9
POL_Call POL_Install_xact

# Choose between Steam and other Digital Download versions
POL_SetupWindow_InstallMethod "STEAM,LOCAL"

# 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"


elif [ "$INSTALL_METHOD" == "LOCAL" ]; then
 
        POL_SetupWindow_menu "$(eval_gettext 'What is the type of the file?.')" "$TITLE" "$(eval_gettext '.EXE')~$(eval_gettext '.ZIP')~$(eval_gettext '.RAR')" "~"

if [ "$APP_ANSWER" == ".EXE" ]; then

        # 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 "Banished-x32.exe" "$TITLE (Banished-x32)" "$TITLE.png" ""
        POL_Shortcut "Application-x32.exe" "$TITLE (Application-x32)" "$TITLE.png" ""
        
elif [ "$APP_ANSWER" == "$(eval_gettext '.ZIP')" ]; then
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the .ZIP file')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
        cd "$POL_System_TmpDir"
 
        POL_SetupWindow_wait_next_signal "$(eval_gettext 'Extracting the archive...')" "$TITLE"
        POL_System_unzip "$APP_ANSWER" -d "$WINEPREFIX/drive_c/"
        
        POL_Shortcut "Application-steam-x32.exe" "$TITLE" "$TITLE.png" ""
        
elif [ "$APP_ANSWER" == "$(eval_gettext '.RAR')" ]; then
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the .RAR file')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
        cd "$POL_System_TmpDir"
 
        POL_SetupWindow_wait_next_signal "$(eval_gettext 'Extracting the archive...')" "$TITLE"
        POL_System_unrar x "$APP_ANSWER" "$WINEPREFIX/drive_c/"
        
        POL_Shortcut "Application-steam-x32.exe" "$TITLE" "$TITLE.png" ""
fi
fi

# Set Graphic Card information keys for wine
POL_Wine_SetVideoDriver

# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS

POL_SetupWindow_Close
exit 0

Réponses

Dadu042 Mardi 30 Juillet 2019 à 13:04
Dadu042

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Messages

See changelog.

Differences

@@ -56,15 +56,9 @@
 POL_Call POL_Install_d3dx9
 POL_Call POL_Install_xact
 
-# Set Graphic Card information keys for wine
-# POL_Wine_SetVideoDriver
-
 # Choose between Steam and other Digital Download versions
 POL_SetupWindow_InstallMethod "STEAM,LOCAL"
 
-# 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
   
@@ -124,5 +118,11 @@
 fi
 fi
 
+# Set Graphic Card information keys for wine
+POL_Wine_SetVideoDriver
+
+# Asking about memory size of graphic card
+POL_SetupWindow_VMS $GAME_VMS
+
 POL_SetupWindow_Close
 exit 0
\ No newline at end of file

Nouveau code source

#!/bin/bash
# Date : (2014-07-12 11:00)
# Last revision : see Changelog
# Wine version used : see Changelog
# Distribution used to test : KUbuntu 18.04
# Author : Foz
# Licence : Retail
# Only For : http://www.playonlinux.com

# TESTED (with succcess): 
# - v1.0.0 standalone installer + Wine 2.22.

#
# CHANGELOG
# Foz (2014-07-12)
#   First script.
# [Dadu042] (2019-07-30 13:02)
#   Wine 1.7.55 -> 2.22.
#   Add support for installing from .RAR or .ZIP files.
#
# KNOWN ISSUES
#  - v1.0.7 Build 170910 (Steam) + Wine 1.7.55, 2.22, 3.0.3, 4.0.1: crash when loading.
#  - v1.0.0 + patch v1.0.4 (BanishedPatch_Any_To_1.0.4.141103.zip): once patched, when game launched a new window appear (buttons: Options, Video Options, Play), game freeze when 'Play' is clicked.

[ "$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="2.22"
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"
  
# Installing mandatory dependencies
POL_Call POL_Install_d3dx9
POL_Call POL_Install_xact

# Choose between Steam and other Digital Download versions
POL_SetupWindow_InstallMethod "STEAM,LOCAL"

# 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"


elif [ "$INSTALL_METHOD" == "LOCAL" ]; then
 
        POL_SetupWindow_menu "$(eval_gettext 'What is the type of the file?.')" "$TITLE" "$(eval_gettext '.EXE')~$(eval_gettext '.ZIP')~$(eval_gettext '.RAR')" "~"

if [ "$APP_ANSWER" == ".EXE" ]; then

        # 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 "Banished-x32.exe" "$TITLE (Banished-x32)" "$TITLE.png" ""
        POL_Shortcut "Application-x32.exe" "$TITLE (Application-x32)" "$TITLE.png" ""
        
elif [ "$APP_ANSWER" == "$(eval_gettext '.ZIP')" ]; then
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the .ZIP file')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
        cd "$POL_System_TmpDir"
 
        POL_SetupWindow_wait_next_signal "$(eval_gettext 'Extracting the archive...')" "$TITLE"
        POL_System_unzip "$APP_ANSWER" -d "$WINEPREFIX/drive_c/"
        
        POL_Shortcut "Application-steam-x32.exe" "$TITLE" "$TITLE.png" ""
        
elif [ "$APP_ANSWER" == "$(eval_gettext '.RAR')" ]; then
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the .RAR file')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
        cd "$POL_System_TmpDir"
 
        POL_SetupWindow_wait_next_signal "$(eval_gettext 'Extracting the archive...')" "$TITLE"
        POL_System_unrar x "$APP_ANSWER" "$WINEPREFIX/drive_c/"
        
        POL_Shortcut "Application-steam-x32.exe" "$TITLE" "$TITLE.png" ""
fi
fi

# Set Graphic Card information keys for wine
POL_Wine_SetVideoDriver

# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS

POL_SetupWindow_Close
exit 0

Réponses

Anonymous
Mardi 30 Juillet 2019 à 16:19
I just tried this update, and it's the same problem.
It pulled down a new version of wine, and I walked it through installing from the Banished exe.  The Banished installer started and asked me for language preference, then the next dialog said that my system didn't meet the minimum requirements : https://paste.pics/1337be0aa513e86fc869893b36984a7f

 

After the above step, the GOG installer looks like it starts to install the game, but immediately exist and says it finished successfully, but it doesn't actually install anything.  Then I get this dialog : POL Crash, binary not found 'Banished-x32.exe' ( https://paste.pics/36c97323f258cd58261b1cc63db2bf8c ).
Anonymous
Mardi 30 Juillet 2019 à 16:40
The 32bit installer seems to have completed and the game works.

Edité par Dadu042

hemna Dimanche 28 Juillet 2019 à 16:30
hemna Anonymous

Messages

Tried several times to install the standalone 64bit app, but it doesn't work.   The game installer starts, you select the language, and then it complains that my system doesn't meet the minimum requirements.  Doesn't say why, or what they are.  I click the continue anyway, and the install looks like it starts to go, but then immediately says it's done.  The game isn't installed and playonmac can't find the app shortcut (because it didn't get installed), then playonmac fails out.

Réponses

Dimanche 28 Juillet 2019 à 23:00
The script currently only support 32 bits.: 


# Determine Architecture
POL_System_SetArch "x86"
PaxPlaysOnMac Dimanche 10 Janvier 2016 à 21:19
PaxPlaysOnMac Anonymous

Messages

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

Réponses

foz Dimanche 13 Juillet 2014 à 11:13
foz

Messages

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

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

Réponses

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

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Messages

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

Nouveau code source

#!/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

Réponses

foz Samedi 12 Juillet 2014 à 18:15
foz

Messages

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.

Réponses

foz Samedi 12 Juillet 2014 à 18:10
foz

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

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

Nouveau code source

#!/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

Réponses

Anonymous
Samedi 12 Juillet 2014 à 18:26
Good job! I think you can remove the line 66 and simplify the line 57
Samedi 12 Juillet 2014 à 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.
Anonymous
Samedi 12 Juillet 2014 à 18:59
You can remove it
Samedi 12 Juillet 2014 à 20:32
I have done here now, just need to know how to get it in to the OP.
Anonymous
Samedi 12 Juillet 2014 à 23:14
Just use the "contribute" link
Samedi 12 Juillet 2014 à 23:23
That only creates an update. Does a mod/admin move the source up eventually? All very new to this.

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