Oxygen Not Included

Informatie

Creator Bericht
lahtis

Warning

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

Informatie

Platforms:
Downloads: 3770
Wine: 2.22

Feedbacks

Omschrijving

Oxygen Not Included (2017) is a space-colony simulation game. Manage your colonists and help them dig, build and maintain a subterranean asteroid base. Wikipedia.

This script can install the game from Steam but not from a local file.

Note: this game has a Linux native release.

Schermafdrukken

Miniature

Broncode

#!/bin/bash
# Date : (2017-11-17)
# Last revision : see changelog
# Distribution used to test : Ubuntu 14.04
# Author : lahtis
# Licence : retail
# PlayOnLinux: 4.2.12
#
# CHANGELOG
# [lahtis] (2017-11-17)
#   First script.
# [Dadu042] (2019-12-30)
#   Wine 2.19-staging -> 2.22
#   Add POL_RequiredVersion "4.0.0"
 
[-z "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
PREFIX="OxygenNotIncluded"
WINEVERSION="2.22"
TITLE="Oxygen Not Included"
EDITOR="Klei"
GAME_URL="https://www.klei.com/games/oxygen-not-included"
AUTHOR="lahtis"
 
#Initialization
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_Debug_Init
      
# Presentation
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"

# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x64"
POL_Wine_PrefixCreate "$WINEVERSION" 
GAME_VMS="512"
STEAM_ID="457140"
 
# Fix pulseaudio issue
which pulseaudio && Set_OS "win8"
  
# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS
 
# Installing mandatory dependencies
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"
POL_Shortcut "steam.exe" "Steam ($TITLE)" "" ""
 
POL_SetupWindow_message "$(eval_gettext 'Install $TITLE in Steam. Run the $TITLE when Steam is installed the game.')" "$TITLE"
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID
POL_Wine_WaitExit "$TITLE"
      
POL_SetupWindow_message "$(eval_gettext 'If the game crashes at startup, open a terminal and type:\necho 0|sudo tee /proc/sys/kernel/yama/ptrace_scope')"
 
POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribute
Member Bericht
Dadu042 Dinsdag 31 December 2019 om 11:00
Dadu042

Information

This update has been approved by the team.

Differences

@@ -17,7 +17,7 @@
 source "$PLAYONLINUX/lib/sources"
  
 PREFIX="OxygenNotIncluded"
-WINEVERSION="2.19-staging"
+WINEVERSION="2.22"
 TITLE="Oxygen Not Included"
 EDITOR="Klei"
 GAME_URL="https://www.klei.com/games/oxygen-not-included"

New source code

#!/bin/bash
# Date : (2017-11-17)
# Last revision : see changelog
# Distribution used to test : Ubuntu 14.04
# Author : lahtis
# Licence : retail
# PlayOnLinux: 4.2.12
#
# CHANGELOG
# [lahtis] (2017-11-17)
#   First script.
# [Dadu042] (2019-12-30)
#   Wine 2.19-staging -> 2.22
#   Add POL_RequiredVersion "4.0.0"
 
[-z "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
PREFIX="OxygenNotIncluded"
WINEVERSION="2.22"
TITLE="Oxygen Not Included"
EDITOR="Klei"
GAME_URL="https://www.klei.com/games/oxygen-not-included"
AUTHOR="lahtis"
 
#Initialization
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_Debug_Init
      
# Presentation
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"

# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x64"
POL_Wine_PrefixCreate "$WINEVERSION" 
GAME_VMS="512"
STEAM_ID="457140"
 
# Fix pulseaudio issue
which pulseaudio && Set_OS "win8"
  
# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS
 
# Installing mandatory dependencies
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"
POL_Shortcut "steam.exe" "Steam ($TITLE)" "" ""
 
POL_SetupWindow_message "$(eval_gettext 'Install $TITLE in Steam. Run the $TITLE when Steam is installed the game.')" "$TITLE"
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID
POL_Wine_WaitExit "$TITLE"
      
POL_SetupWindow_message "$(eval_gettext 'If the game crashes at startup, open a terminal and type:\necho 0|sudo tee /proc/sys/kernel/yama/ptrace_scope')"
 
POL_SetupWindow_Close
exit 0

Antwoorden

Dinsdag 31 December 2019 om 11:00
This script can install the game from Steam but not from a local file.

Aangepast door Dadu042

lahtis Zaterdag 18 November 2017 om 2:27
lahtis

Warning

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

Differences

@@ -0,0 +1,60 @@
+#!/bin/bash
+# Date : (2017-11-17)
+# Last revision : (2017-11-17)
+# Distribution used to test : Ubuntu 14.04
+# Author : lahtis
+# Licence : retail
+# PlayOnLinux: 4.2.12
+ 
+[-z "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+ 
+PREFIX="OxygenNotIncluded"
+WINEVERSION="2.19-staging"
+TITLE="Oxygen Not Included"
+EDITOR="Klei"
+GAME_URL="https://www.klei.com/games/oxygen-not-included"
+AUTHOR="lahtis"
+ 
+#Initialization
+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_Debug_Init
+      
+# Presentation
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
+ 
+# Create Prefix
+POL_Wine_SelectPrefix "$PREFIX"
+POL_System_SetArch "x64"
+POL_Wine_PrefixCreate "$WINEVERSION" 
+GAME_VMS="512"
+STEAM_ID="457140"
+ 
+# Fix pulseaudio issue
+which pulseaudio && Set_OS "win8"
+  
+# Asking about memory size of graphic card
+POL_SetupWindow_VMS $GAME_VMS
+ 
+# Installing mandatory dependencies
+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"
+POL_Shortcut "steam.exe" "Steam ($TITLE)" "" ""
+ 
+POL_SetupWindow_message "$(eval_gettext 'Install $TITLE in Steam. Run the $TITLE when Steam is installed the game.')" "$TITLE"
+cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
+POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID
+POL_Wine_WaitExit "$TITLE"
+      
+ POL_SetupWindow_message "$(eval_gettext 'If the game crashes at startup, open a terminal and type:\necho 0|sudo tee /proc/sys/kernel/yama/ptrace_scope')"
+ 
+POL_SetupWindow_Close
+ 
+exit 0

New source code

#!/bin/bash
# Date : (2017-11-17)
# Last revision : (2017-11-17)
# Distribution used to test : Ubuntu 14.04
# Author : lahtis
# Licence : retail
# PlayOnLinux: 4.2.12
 
[-z "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
PREFIX="OxygenNotIncluded"
WINEVERSION="2.19-staging"
TITLE="Oxygen Not Included"
EDITOR="Klei"
GAME_URL="https://www.klei.com/games/oxygen-not-included"
AUTHOR="lahtis"
 
#Initialization
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_Debug_Init
      
# Presentation
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x64"
POL_Wine_PrefixCreate "$WINEVERSION" 
GAME_VMS="512"
STEAM_ID="457140"
 
# Fix pulseaudio issue
which pulseaudio && Set_OS "win8"
  
# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS
 
# Installing mandatory dependencies
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"
POL_Shortcut "steam.exe" "Steam ($TITLE)" "" ""
 
POL_SetupWindow_message "$(eval_gettext 'Install $TITLE in Steam. Run the $TITLE when Steam is installed the game.')" "$TITLE"
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID
POL_Wine_WaitExit "$TITLE"
      
 POL_SetupWindow_message "$(eval_gettext 'If the game crashes at startup, open a terminal and type:\necho 0|sudo tee /proc/sys/kernel/yama/ptrace_scope')"
 
POL_SetupWindow_Close
 
exit 0

Antwoorden

Maandag 4 December 2017 om 7:12
Game has relased in Linux version of steam.

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