Oxygen Not Included

Informations

Creator Message
lahtis

Warning

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

Informations

Platforms:
Downloads: 3493
Wine: 2.22

Feedbacks

Description

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.

Screenshots

Miniature

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

Contributions

Filters:

Contribute
Member Message
Dadu042 Tuesday 31 December 2019 at 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

Replies

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

Edited by Dadu042

lahtis Saturday 18 November 2017 at 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

Replies

Monday 4 December 2017 at 7:12
Game has relased in Linux version of steam.